PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.4.5
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.4.5
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 5.6.6 5.6.7 All 152 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.5, at admin/partials/poll-maker-ays-polls-actions.php

7,542 lines 654.2 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 '%%current_poll_author_registered%%' =>esc_html__("Author's Registered Date of the current poll", "poll-maker"),
90 '%%admin_email%%' =>esc_html__("Admin Email", "poll-maker"),
91 '%%user_wordpress_roles%%' =>esc_html__("User's Wordpress Roles", "poll-maker"),
92 "%%user_wordpress_email%%" =>esc_html__("User's WordPress profile email", "poll-maker"),
93 '%%user_wordpress_website%%' =>esc_html__("User's Wordpress Website", "poll-maker"),
94 '%%user_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
95 '%%user_display_name%%' =>esc_html__("User's Display Name", "poll-maker"),
96 '%%user_nickname%%' =>esc_html__("User's Nick Name", "poll-maker"),
97 '%%user_ip_address%%' =>esc_html__("User's IP address", "poll-maker"),
98 '%%user_id%%' =>esc_html__("User's ID", "poll-maker"),
99 '%%user_registered%%' =>esc_html__("User's Registered Date", "poll-maker"),
100 '%%poll_pass_count%%' =>esc_html__("Polls pass count", "poll-maker"),
101 '%%passed_poll_count_per_user%%' =>esc_html__("Passed polls count per user", "poll-maker"),
102 '%%current_poll_page_link%%' =>esc_html__("Current polls posted link", "poll-maker"),
103 '%%post_title%%' =>esc_html__("Post Title", "poll-maker"),
104 '%%post_author_email%%' =>esc_html__("Post Author Email", "poll-maker"),
105 '%%post_author_display_name%%' =>esc_html__("Post Author Display Name", "poll-maker"),
106 '%%post_author_first_name%%' =>esc_html__("Post Author First Name", "poll-maker"),
107 '%%post_author_last_name%%' =>esc_html__("Post Author Last Name", "poll-maker"),
108 '%%post_author_nickname%%' =>esc_html__("Post Author Nickname", "poll-maker"),
109 '%%post_author_website_url%%' =>esc_html__("Post Author Website URL", "poll-maker"),
110 '%%post_author_roles%%' =>esc_html__("Post Author Roles", "poll-maker"),
111 '%%post_id%%' =>esc_html__("Post ID", "poll-maker"),
112 '%%site_title%%' =>esc_html__("Site Title", "poll-maker"),
113 '%%site_description%%' =>esc_html__("Site Description", "poll-maker"),
114 '%%home_page_url%%' =>esc_html__("Home Page", "poll-maker"),
115 );
116
117 $poll_message_vars_html = $this->ays_poll_generate_message_vars_html( $poll_message_vars );
118
119
120 $poll = array(
121 'title' => 'Default title',
122 'description' => '',
123 'categories' => array(),
124 'image' => '',
125 'question' => '',
126 'type' => 'choosing',
127 'view_type' => '',
128 'answers' => array(),
129 'show_title' => 1,
130 'styles' => '',
131 'custom_css' => '',
132 'theme_id' => 1,
133 );
134 $default_colors = array(
135 "main_color" => "#0C6291",
136 "text_color" => "#0C6291",
137 "icon_color" => "#0C6291",
138 "box_shadow_color" => "#000000",
139 "bg_color" => "#FBFEF9",
140 "answer_bg_color" => "#FBFEF9",
141 "answer_hover_color" => "#0C6291",
142 "title_bg_color" => "",
143 "border_color" => "#0C6291",
144 );
145 $default_options = array(
146 'randomize_answers' => 'off',
147 "icon_size" => 24,
148 "width" => 600,
149 "width_for_mobile" => '',
150 "btn_text" =>esc_html__('Vote', "poll-maker"),
151 "see_res_btn_text" =>esc_html__('See Results', "poll-maker"),
152 "border_style" => "ridge",
153 "border_radius" => 0,
154 "border_width" => 2,
155 "enable_box_shadow" => "",
156 "bg_image" => "",
157 "hide_results" => 0,
158 "hide_results_text" => "<p style='text-align: center'>" .esc_html__("Thanks for your answer!", "poll-maker") . "</p>",
159 "allow_not_vote" => 0,
160 "show_social" => 0,
161 "poll_show_social_ln" => "on",
162 "poll_show_social_fb" => "on",
163 "poll_show_social_tr" => "on",
164 "poll_show_social_vk" => "off",
165 "load_effect" => "load_gif",
166 "load_gif" => "plg_default",
167 'limit_users' => 0,
168 "limitation_message" => "<p style='text-align: center'>" .esc_html__("You have already voted", "poll-maker") . "</p>",
169 'redirect_url' => '',
170 'redirection_delay' => '',
171 'users_role' => '',
172 'enable_restriction_pass' => 0,
173 'restriction_pass_message' => "<p style='text-align: center'>" .esc_html__("You don't have permissions for passing the poll", "poll-maker") . "</p>",
174 'enable_logged_users' => 0,
175 'enable_logged_users_message' => "<p style='text-align: center'>" .esc_html__('You must sign in for passing the poll', "poll-maker") . "</p>",
176 'notify_email_on' => 0,
177 'notify_email' => '',
178 'result_sort_type' => 'none',
179 'redirect_after_submit' => 0,
180 'redirect_users' => 0,
181 'redirect_after_vote_url' => '',
182 'redirect_after_vote_delay' => '',
183 'published' => 1,
184 'enable_pass_count' => 'on',
185 'activeInterval' => '',
186 'create_date' => current_time( 'mysql' ),
187 'author' => $author,
188 'deactiveInterval' => '',
189 'enable_background_gradient' => 'off',
190 'background_gradient_color_1' => '#103251',
191 'background_gradient_color_2' => '#607593',
192 'poll_gradient_direction' => 'vertical',
193 'activeIntervalSec' => '',
194 'deactiveIntervalSec' => '',
195 'active_date_check' => '',
196 'active_date_message_soon' => "<p style='text-align: center'>" .esc_html__("The poll will be available soon!", "poll-maker") . "</p>",
197 'active_date_message' => "<p style='text-align: center'>" .esc_html__("The poll has expired!", "poll-maker") . "</p>",
198 'enable_restart_button' => 0,
199 'enable_vote_btn' => 1,
200 'show_votes_count' => 1,
201 'show_res_percent' => 1,
202 'poll_direction' => 'ltr',
203 'info_form' => 0,
204 'fields' => 'apm_name,apm_email,apm_phone',
205 'required_fields' => 'apm_email',
206 'info_form_title' => "<h5>" .esc_html__("Please fill out the form:", "poll-maker") . "</h5>",
207 'disable_answer_hover' => 0,
208 'enable_asnwers_sound' => 'off',
209 'poll_bg_image_position' => 'center center',
210 'poll_bg_img_in_finish_page' => 'off',
211 'ays_add_post_for_poll' => 'off',
212 'result_in_rgba' => 'off',
213 'answer_sort_type' => 'default',
214 'answer_font_size' => '16',
215 'poll_answer_font_size_mobile' => '16',
216 'show_passed_users' => 'off',
217 'logo_image' => '',
218 'dont_show_poll_cont' => 'off',
219 'show_votes_before_voting' => 'off',
220 'show_votes_before_voting_by' => 'by_count',
221 'see_result_button' => 'on',
222 'see_result_radio' => 'ays_see_result_button',
223 'loader_font_size' => '64',
224 'show_answers_numbering' => 'none',
225 'poll_box_shadow_x_offset' => 0,
226 'poll_box_shadow_y_offset' => 0,
227 'poll_box_shadow_z_offset' => 15,
228 'poll_question_size_pc' => 16,
229 'poll_question_size_mobile' => 16,
230 'poll_question_image_object_fit' => "cover",
231 'poll_title_font_size' => 20,
232 'poll_title_font_size_mobile' => 20,
233 'poll_title_alignment' => "center",
234 'poll_title_alignment_mobile' => "center",
235 'poll_text_type_length_enable' => "off",
236 'poll_text_type_limit_type' => "characters",
237 'poll_text_type_limit_length' => "",
238 'poll_text_type_limit_message' => "off",
239 'poll_text_type_placeholder' => "Your answer",
240 'poll_text_type_width' => "",
241 'poll_text_type_width_type' => "percent",
242 'poll_enable_password' => "off",
243 'poll_password' => "",
244 'poll_enable_password_visibility' => "off",
245 'poll_password_message' => 'Please enter password',
246 'poll_answer_enable_box_shadow' => "off",
247 'poll_answer_box_shadow_color' => "#000000",
248 'poll_answer_box_shadow_x_offset' => 0,
249 'poll_answer_box_shadow_y_offset' => 0,
250 'poll_answer_box_shadow_z_offset' => 10,
251 'poll_answer_border_radius' => 0,
252 'poll_enable_answer_image_after_voting' => "off",
253 'enable_poll_title_text_shadow' => 'off',
254 'poll_title_text_shadow' => 'rgba(255,255,255,0)',
255 'poll_title_text_shadow_x_offset' => 2,
256 'poll_title_text_shadow_y_offset' => 2,
257 'poll_title_text_shadow_z_offset' => 0,
258 'display_fields_labels' => 'off',
259 'autofill_user_data' => 'off',
260 'poll_create_author' => $user_id,
261 'poll_main_url' => '',
262 'poll_logo_url_new_tab' => 'off',
263 'show_chart_type' => 'google_bar_chart',
264 );
265
266 $settings_options = $this->settings_obj->ays_get_setting('options');
267 if($settings_options){
268 $settings_options = json_decode($settings_options, true);
269 }else{
270 $settings_options = array();
271 }
272 $loader_iamge_allow = array(
273 'span' => array(
274 'class' => array()
275 ),
276 'img' => array(
277 'src' => array(),
278 'class' => array()
279 )
280 );
281 switch ( $action ) {
282 case 'add':
283 $heading =esc_html__('Add new poll', "poll-maker");
284 $options = array_merge($default_options, $default_colors);
285 $loader_iamge = "<span class='display_none'><img src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
286 // Default category
287 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
288
289 $poll['categories'] = $poll_default_cat;
290
291 // Default type
292 $poll_default_type = isset($settings_options['default_type']) && $settings_options['default_type'] != '' ? esc_attr($settings_options['default_type']) : "choosing";
293 $poll['type'] = $poll_default_type;
294
295 $ays_check_post = '';
296 break;
297 case 'edit':
298 $heading =esc_html__('Edit poll', "poll-maker");
299 $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
300 $poll = $this->polls_obj->get_poll_by_id($id);
301 $post_id = !empty($poll) ? $poll['post_id'] : '';
302 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
303 $ays_poll_view_post_url = get_permalink($post_id);
304 $ays_poll_edit_post_url = get_edit_post_link($post_id);
305
306 if (empty($poll)) {
307 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
308 wp_safe_redirect($url);
309 }
310
311 $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
312 break;
313 default:
314 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
315 wp_safe_redirect($url);
316 break;
317 }
318 $enable_pass_count = $options['enable_pass_count'];
319 $categories = $this->polls_obj->get_categories();
320 global $wp_roles;
321 $ays_users_roles = $wp_roles->roles;
322
323 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
324 $this->polls_obj->add_or_edit_polls($_POST, $id);
325 }
326
327 if (isset($_POST['ays_apply_top']) || isset($_POST['ays_apply'])) {
328 $this->polls_obj->add_or_edit_polls($_POST, $id, "apply");
329 }
330
331 if (isset($_POST['ays_poll_cancel']) || isset($_POST['ays_poll_cancel_top']) ) {
332 unset($_GET['page']);
333 $url = remove_query_arg( array_keys($_GET) );
334 wp_redirect( $url );
335 }
336
337 $style = "display: none;";
338 $style_bg = "display: none;";
339 $style_bg_options = "display: none;";
340 $style_logo = "display: none;";
341 $style_logo_check = false;
342 if (isset($poll['image']) && !empty($poll['image'])) {
343
344 $style = "display: block;";
345 $image_text =esc_html__('Edit Image', "poll-maker");
346 }
347 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
348 $style_bg = "display: flex;";
349 $style_bg_options = "display: block;";
350 $image_text_bg =esc_html__('Edit Image', "poll-maker");
351 }
352 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
353 $style_logo = "display: block;";
354 $style_logo_check = true;
355 $image_text_logo =esc_html__('Edit Image', "poll-maker");
356 }
357
358 $published = $options['published'];
359
360
361 if (!empty($options['activeInterval']) && !empty($options['deactiveInterval'])) {
362 $activateTime = strtotime($options['activeInterval']);
363 $activePoll = date('Y-m-d', $activateTime);
364 $deactivateTime = strtotime($options['deactiveInterval']);
365 $deactivePoll = date('Y-m-d', $deactivateTime);
366 } else {
367 $activePoll = date('Y-m-d');
368 $deactivePoll = date('Y-m-d');
369 }
370
371 $activePollSec = isset($options['activeIntervalSec']) && !empty($options['activeIntervalSec']) ? $options['activeIntervalSec'] : '';
372 $deactivePollSec = isset($options['deactiveIntervalSec']) && !empty($options['deactiveIntervalSec']) ? $options['deactiveIntervalSec'] : '';
373
374 $activePoll = $activePoll . " " . $activePollSec;
375 $deactivePoll = $deactivePoll . " " . $deactivePollSec;
376
377 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
378
379 $all_fields = array(
380 array(
381 "name" =>esc_html__("Name", "poll-maker"),
382 "slug" => "apm_name",
383 ),
384 array(
385 "name" =>esc_html__("Email", "poll-maker"),
386 "slug" => "apm_email",
387 ),
388 array(
389 "name" =>esc_html__("Phone", "poll-maker"),
390 "slug" => "apm_phone",
391 ),
392 );
393
394
395 //INTEGRATIONS
396 $poll_settings = $this->settings_obj;
397
398 $asnwers_sound = (isset($settings_options['answers_sound']) && $settings_options['answers_sound'] != '') ? true : false;
399
400 $answer_default_count = (isset($settings_options['answer_default_count']) && $settings_options['answer_default_count'] != '') ? $settings_options['answer_default_count'] : 2;
401
402 $answers_sound_status = false;
403 if($asnwers_sound){
404 $answers_sound_status = true;
405 }
406
407 // WP Editor height
408 $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 ;
409
410 // Answers sound option
411 $options['enable_asnwers_sound'] = isset($options['enable_asnwers_sound']) ? $options['enable_asnwers_sound'] : 'off';
412 $enable_asnwers_sound = (isset($options['enable_asnwers_sound']) && $options['enable_asnwers_sound'] == "on") ? true : false;
413
414 $mailchimp_res = ($poll_settings->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $poll_settings->ays_get_setting('mailchimp');
415 $mailchimp = json_decode($mailchimp_res, true);
416 $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '';
417 $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '';
418 $mailchimp_lists = $mailchimp_api_key ? $this->ays_get_mailchimp_lists($mailchimp_username, $mailchimp_api_key) : array();
419 $mailchimp_select = array();
420 if (!empty($mailchimp_lists) && isset($mailchimp_lists['total_items']) && $mailchimp_lists['total_items'] > 0) {
421 foreach ( $mailchimp_lists['lists'] as $list ) {
422 $mailchimp_select[] = array(
423 'listId' => $list['id'],
424 'listName' => $list['name']
425 );
426 }
427 } else {
428 $mailchimp_select =esc_html__("There are no lists", "poll-maker");
429 }
430
431 // MailChimp
432 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
433 $mailchimp_list = (isset($options['mailchimp_list'])) ? $options['mailchimp_list'] : '';
434
435
436 $fields = !empty($options['fields']) ? explode(",", $options['fields']) : array();
437 $required_fields = !empty($options['required_fields']) ? explode(",", $options['required_fields']) : array();
438
439 // Show votes count
440 $options['show_votes_count'] = isset($options['show_votes_count']) ? $options['show_votes_count'] : 1;
441 $showvotescount = isset($options['show_votes_count']) && intval($options['show_votes_count']) == 1 ? true : false;
442
443 // Show result percent
444 $options['show_res_percent'] = isset($options['show_res_percent']) ? $options['show_res_percent'] : 1;
445 $show_res_percent = isset($options['show_res_percent']) && intval($options['show_res_percent']) == 1 ? true : false;
446
447 // Show result button after schedule
448 $options['show_result_btn_schedule'] = isset($options['show_result_btn_schedule']) ? $options['show_result_btn_schedule'] : 0;
449 $showresbtnschedule = isset($options['show_result_btn_schedule']) && intval($options['show_result_btn_schedule']) == 1 ? true : false;
450
451 $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';
452
453 $schedule_show_timer = isset($options['ays_poll_show_timer']) && intval($options['ays_poll_show_timer']) == 1 ? true : false;
454
455 $show_timer_type = isset($options['ays_show_timer_type']) && !empty($options['ays_show_timer_type'])? $options['ays_show_timer_type'] : 'countdown';
456
457 $show_bottom_timer = isset($options['show_bottom_timer']) && intval($options['show_bottom_timer']) == 1 ? true : false;
458
459 // Show login form for not logged in users
460 $options['show_login_form'] = isset($options['show_login_form']) ? $options['show_login_form'] : 'off';
461 $show_login_form = (isset($options['show_login_form'] ) && $options['show_login_form'] == "on") ? true : false;
462
463 // Redirect after voting
464 $options['redirect_users'] = isset($options['redirect_users']) ? $options['redirect_users'] : 0;
465 $redirect_users = (isset($options['redirect_users']) && $options['redirect_users'] == 1) ? true : false;
466
467 // Results notification by email
468 $options['notify_email_on'] = isset($options['notify_email_on']) ? $options['notify_email_on'] : 0;
469 $notify_email_on = (isset($options['notify_email_on']) && $options['notify_email_on'] == 1) ? true : false;
470
471 // Background gradient
472 $options['enable_background_gradient'] = (!isset($options['enable_background_gradient'])) ? 'off' : $options['enable_background_gradient'];
473 $enable_background_gradient = (isset($options['enable_background_gradient']) && $options['enable_background_gradient'] == 'on') ? true : false;
474
475 $background_gradient_color_1 = (isset($options['background_gradient_color_1']) && $options['background_gradient_color_1'] != '' && $enable_background_gradient) ? $options['background_gradient_color_1'] : '#103251';
476 $background_gradient_color_2 = (isset($options['background_gradient_color_2']) && $options['background_gradient_color_2'] != '' && $enable_background_gradient) ? $options['background_gradient_color_2'] : '#607593';
477 $poll_gradient_direction = (isset($options['poll_gradient_direction']) && $options['poll_gradient_direction'] != '') ? $options['poll_gradient_direction'] : 'vertical';
478
479
480 // Redirect after submit
481 $options['redirect_after_submit'] = (!isset($options['redirect_after_submit'])) ? 0 : $options['redirect_after_submit'];
482 $redirect_after_submit = (isset($options['redirect_after_submit']) && $options['redirect_after_submit'] == 1) ? true : false;
483 $submit_redirect_url = isset($options['ays_submit_redirect_url']) ? $options['ays_submit_redirect_url'] : '';
484 // $submit_redirect_delay = isset($options['submit_redirect_delay']) ? $options['submit_redirect_delay'] : '';
485
486 $users_role = (isset($options['users_role']) && $options['users_role'] != "") ? json_decode($options['users_role'], true) : array();
487
488 $options['enable_answer_style'] = isset($options['enable_answer_style']) ? $options['enable_answer_style'] : 'on';
489
490 // $poll_create_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : "0000-00-00 00:00:00";
491
492 $change_creation_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : current_time( 'mysql' );
493
494
495 // Bg image positioning
496 $poll_bg_image_position = (isset($options['poll_bg_image_position']) && $options['poll_bg_image_position'] != '') ? $options['poll_bg_image_position'] : "center center";
497
498 $poll_bg_img_in_finish_page = (isset($options['poll_bg_img_in_finish_page']) && $options['poll_bg_img_in_finish_page'] == "on") ? true : false;
499
500 if(isset($options['author']) && $options['author'] != 'null'){
501 if ( ! is_array( $options['author'] ) ) {
502 $options['author'] = json_decode($options['author'], true);
503 $poll_author = $options['author'];
504 } else {
505 $poll_author = array_map( 'stripslashes', $options['author'] );
506 }
507 } else {
508 $poll_author = array('name' => 'Unknown');
509 }
510
511 $show_create_date = (isset($options['show_create_date']) && $options['show_create_date'] == 1) ? true : false;
512 $show_author = (isset($options['show_author']) && $options['show_author'] == 1) ? true : false;
513
514 $custom_class = (isset($options['custom_class']) && $options['custom_class'] != "") ? $options['custom_class'] : '';
515
516 // Results bar in RGBA
517 $options['result_in_rgba'] = isset($options['result_in_rgba']) ? $options['result_in_rgba'] : 'off';
518 $result_in_rgba = (isset($options['result_in_rgba']) && $options['result_in_rgba'] == "on") ? true : false;
519
520 // Enable View more button
521 $options['enable_view_more_button'] = isset($options['enable_view_more_button']) ? $options['enable_view_more_button'] : 'off';
522 $enable_view_more_button = (isset($options['enable_view_more_button']) && $options['enable_view_more_button'] == 'on' ) ? true : false;
523 $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;
524
525
526 // Poll Min Height
527 $poll_min_height = (isset($options['poll_min_height']) && $options['poll_min_height'] != '') ? absint(intval($options['poll_min_height'])) : '';
528
529 // Poll answer font size
530 $poll_answer_font_size = (isset($options['answer_font_size']) && $options['answer_font_size'] != '') ? esc_html($options['answer_font_size']) : '15';
531
532 // Poll answers font size on mobile
533 $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';
534
535 // Poll show passed users
536 $poll_show_passed_users = isset($options['show_passed_users']) ? esc_html($options['show_passed_users']) : 'off';
537 $poll_show_passed_users_checked = isset($poll_show_passed_users) && $poll_show_passed_users == 'on' ? 'checked' : '';
538 $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;
539
540 // Poll Logo image
541 $poll_logo_image = isset($options['logo_image']) && $options['logo_image'] != '' ? esc_url($options['logo_image']) : '';
542 $poll_check_logo = isset($poll_logo_image) && $poll_logo_image != '' ? true : false;
543 $poll_logo_img = $poll_check_logo ? 'ays_logo_image_on' : 'display_none';
544 $poll_logo_for_live_container = $poll_check_logo ? 'ays_logo_cont_image_on' : '';
545
546 //
547
548 $checking_answer_hover_live = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
549
550 // Poll schedule container on/off
551 $poll_check_exp_cont = (isset($options['dont_show_poll_cont']) && $options['dont_show_poll_cont'] == 'on') ? 'checked' : '';
552
553 // Poll see results button in limitations
554 $poll_see_result_button = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? 'checked' : '';
555 $poll_see_result_button_check = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? true : false;
556 $poll_see_result_button_cont = (isset($options['see_result_button']) && $options['see_result_button'] != 'on') ? 'ays_poll_display_none' : '';
557 $poll_see_result_radio = (isset($options['see_result_radio']) && $options['see_result_radio'] != '') ? esc_attr($options['see_result_radio']) : 'ays_see_result_button';
558 $poll_see_result_botton_show = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_button' ? 'checked' : '';
559 $poll_see_result_immediately = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_immediately' ? 'checked' : '';
560
561 // Loader font size
562 $poll_loader_font_size = (isset($options['loader_font_size']) && $options['loader_font_size'] != '') ? esc_attr($options['loader_font_size']) : '64';
563 $poll_loader_size_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "display_none";
564 $poll_loader_size_line_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "ays_hr_display_none";
565
566 // Show answers numbering
567 $show_answers_numbering = (isset($options['show_answers_numbering']) && sanitize_text_field( $options['show_answers_numbering'] ) != '') ? sanitize_text_field( $options['show_answers_numbering'] ) : 'none';
568
569 // Default border color
570 $main_color = isset($options['main_color']) && $options['main_color'] != "" ? $options['main_color'] : $default_colors['main_color'];
571 $default_border = isset($options['border_color']) && $options['border_color'] != "" ? $options['border_color'] : $main_color;
572
573 // Poll load effect message
574 $poll_effect_message = isset($options['effect_message']) && $options['effect_message'] != "" ? $options['effect_message'] : "";
575
576 // Poll title
577 $poll_title = isset($poll['title']) && $poll['title'] != "" ? stripslashes(htmlentities($poll['title'])) : "Default title";
578
579 // Box shadow coords
580 // Box Shadow X offset
581 $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;
582
583 // Box Shadow Y offset
584 $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;
585
586 // Box Shadow Z offset
587 $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;
588
589 // Poll Vote Reason
590 $poll_vote_reason = (isset($options['poll_vote_reason']) && $options['poll_vote_reason'] == 'on' ) ? "checked" : "";
591
592 // Allow multivote
593 $poll_allow_multivote = isset($options['poll_allow_multivote']) && $options['poll_allow_multivote'] == 'on' ? "checked" : "";
594 // Enable multivote answer
595 $poll_enable_multivote_answer = $poll_allow_multivote == "checked" ? true : false;
596
597 // Minimum count for multivote answer
598 $poll_multivote_min_count = (isset($options['multivote_answer_min_count']) && $options['multivote_answer_min_count'] != '') ? intval(esc_attr($options['multivote_answer_min_count'])) : '1';
599
600 // Count for multivote answer
601 $poll_multivote_answer_count = (isset($options['poll_allow_multivote_count']) && $options['poll_allow_multivote_count'] != '') ? intval(esc_attr($options['poll_allow_multivote_count'])) : '1';
602
603 // Allow collect user info
604 $poll_allow_collecting_users_data = (isset($options['poll_allow_collecting_users_data']) && $options['poll_allow_collecting_users_data'] == 'on') ? "checked" : "";
605
606 // Show answers icon
607 $poll_answer_icon_check = (isset($options['poll_answer_icon_check']) && $options['poll_answer_icon_check'] == 'on') ? true : false;
608 // Poll answer icon
609 $poll_answer_icon = isset($options['poll_answer_icon']) ? $options['poll_answer_icon'] : 'radio';
610
611 // Every Answer redirect delay
612 $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']) : "";
613
614 // Enable answer redirect delay
615 $poll_enable_answer_redirect_delay = isset($options['poll_enable_answer_redirect_delay']) && $options['poll_enable_answer_redirect_delay'] == "on" ? true : false;
616
617 // Show Answers image after voting
618 $poll_enable_answer_image_after_voting = isset($options['poll_enable_answer_image_after_voting']) && $options['poll_enable_answer_image_after_voting'] == "on" ? true : false;
619
620 // Poll logo image url
621 $poll_logo_image_url = isset($options['poll_logo_url']) && $options['poll_logo_url'] != "" ? esc_attr($options['poll_logo_url']) : "";
622
623 // Check if the poll logo URL is enabled
624 $poll_logo_image_url_check = isset($options['poll_enable_logo_url']) && $options['poll_enable_logo_url'] == "on" ? true : false;
625
626 // Poll question font size
627 $poll_question_font_size_pc = isset($options['poll_question_size_pc']) && $options['poll_question_size_pc'] != "" ? esc_attr($options['poll_question_size_pc']) : 16;
628
629 // Poll question font size for mobile
630 $poll_question_font_size_mobile = isset($options['poll_question_size_mobile']) && $options['poll_question_size_mobile'] != "" ? esc_attr($options['poll_question_size_mobile']) : 16;
631
632 // Poll question image height
633 $poll_question_image_height = isset($options['poll_question_image_height']) && $options['poll_question_image_height'] != "" ? esc_attr($options['poll_question_image_height']) : "";
634
635 // Poll container max-width for mobile
636 $poll_mobile_max_width = (isset($options['poll_mobile_max_width']) && $options['poll_mobile_max_width'] != "") ? esc_attr($options['poll_mobile_max_width']) : '';
637
638 // ==== BUTTON STYLES START ====
639 // Buttons font size
640 $poll_buttons_font_size = (isset($options['poll_buttons_font_size']) && $options['poll_buttons_font_size'] != "") ? esc_attr($options['poll_buttons_font_size']) : '17';
641
642 // Buttons text color
643 $poll_button_text_color = (isset($options['button_text_color']) && $options['button_text_color'] != "") ? $options['button_text_color'] : $options['bg_color'];
644
645 // Buttons background color
646 $poll_button_bg_color = (isset($options['button_bg_color']) && $options['button_bg_color'] != "") ? $options['button_bg_color'] : $main_color;
647
648 // Buttons mobile font size
649 $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';
650
651 // Buttons Left / Right padding
652 $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';
653
654 // Buttons Top / Bottom padding
655 $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';
656
657 // Buttons border radius
658 $poll_buttons_border_radius = (isset($options['poll_buttons_border_radius']) && $options['poll_buttons_border_radius'] != "") ? esc_attr($options['poll_buttons_border_radius']) : '3';
659
660 // Buttons Width
661 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
662
663 // Buttons mobile width
664 $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;
665
666 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
667 // ==== BUTTON STYLES END ====
668
669 // ==== Allow Answer options ====
670 // Allow custom answer
671 $poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : "";
672 // Require admin approval
673 $poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : "";
674
675 // ==== ====
676
677 // Poll answer view type
678 $poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list";
679
680 // Poll answer image height
681 $poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150";
682
683 // Poll answer image height for mobile
684 $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";
685
686 // Poll answer image border radius
687 $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;
688
689 // Poll question image object fit
690 $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";
691
692 // Poll answer image object fit
693 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
694
695 // Poll answer padding
696 $poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10";
697
698 // Poll 1 column in mobile
699 $options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on';
700 $answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false;
701
702 // Poll answer gap
703 $poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10";
704
705 // Poll title font size
706 $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";
707
708 // Poll title font size for mobile
709 $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";
710
711 // Poll title alignment
712 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
713
714 // Poll title alignment mobile
715 $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;
716
717 // Poll view type
718 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
719
720
721 $options['show_votes_before_voting'] = isset($options['show_votes_before_voting']) ? $options['show_votes_before_voting'] : 'off';
722 $show_votes_before_voting = (isset($options['show_votes_before_voting']) && $options['show_votes_before_voting'] == 'on') ? true : false;
723 $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';
724
725
726
727 // ===== Poll text type options start =====
728 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
729 $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";
730 $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']) : "";
731 $poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false;
732 $poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : "";
733 $poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : "";
734 $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";
735 // ===== Poll text type options end =====
736
737 $poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false;
738 // Enable toggle password visibility
739 $options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off';
740 $poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false;
741 $poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : "";
742 $poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password";
743
744 // == Poll answer box shadow ==
745 // Poll answer box shadow enable
746 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
747 // Poll answer box shadow color
748 $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";
749 // answer hover color
750 $answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color'];
751 // answer bg color
752 $answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)";
753 // Poll answer box shadow parameters
754 $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;
755
756 $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;
757
758 $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;
759
760 // Poll answer box shadow color
761 $poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0;
762
763 $poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false;
764 $poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : '';
765 $poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false;
766 $poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false;
767 $poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false;
768 $poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false;
769
770 // Title text shadow
771 $options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off';
772
773 $enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false;
774
775 $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)';
776
777 $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;
778
779 $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;
780
781 $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;
782
783 // Display form fields labels
784 $options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off';
785 $display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false;
786
787 // Autofill user data
788 $options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off';
789 $autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false;
790
791 // Change the author of the current poll
792 $change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id;
793 $get_current_poll_author_data = get_userdata($change_poll_create_author);
794
795 // Poll main url
796 $poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : '';
797
798 //Open logo URL in new tab
799 $poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : "";
800
801 //Poll Logo title
802 $poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : '';
803
804 //Poll mobile width
805 $width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : '';
806
807 // Social Media links
808 $enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false;
809 $social_links = (isset($options['social_links'])) ? $options['social_links'] : array(
810 'linkedin_link' => '',
811 'facebook_link' => '',
812 'twitter_link' => '',
813 'vkontakte_link' => '',
814 'instagram_link' => '',
815 'youtube_link' => '',
816 'tiktok_link' => '',
817 );
818 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
819 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
820 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
821 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
822 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
823 $tiktok_link = isset($social_links['tiktok_link']) && $social_links['tiktok_link'] != '' ? $social_links['tiktok_link'] : '';
824 $instagram_link = isset($social_links['instagram_link']) && $social_links['instagram_link'] != '' ? $social_links['instagram_link'] : '';
825 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
826
827 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
828 $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;
829
830 $next_poll_id = "";
831 $prev_poll_id = '';
832 if ( isset( $id ) && !is_null( $id ) ) {
833 $next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" );
834 $next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null;
835
836 $prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" );
837 $prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null;
838
839 }
840
841 $get_all_polls = Poll_Maker_Data::get_all_polls();
842
843 ?>
844 <!--LIVE PREVIEW STYLES-->
845 <?php
846 $emoji = array(
847 "<i class='ays_poll_far ays_poll_fa-dizzy'></i>",
848 "<i class='ays_poll_far ays_poll_fa-smile'></i>",
849 "<i class='ays_poll_far ays_poll_fa-meh'></i>",
850 "<i class='ays_poll_far ays_poll_fa-frown'></i>",
851 "<i class='ays_poll_far ays_poll_fa-tired'></i>",
852 ); ?>
853 <style>
854 /*save changing properties of poll in the css-variables*/
855 :root {
856 /*colors*/
857 --theme-main-color: <?php echo esc_attr($options['main_color']); ?>;
858 --theme-bg-color: <?php echo esc_attr($options['bg_color']); ?>;
859 --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']); ?>;
860 --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']); ?>;
861 --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']); ?>;
862 --theme-text-color: <?php echo esc_attr($options['text_color']); ?>;
863 --theme-button-text-color: <?php echo esc_attr($options['bg_color']); ?>;
864 --theme-icon-color: <?php echo esc_attr($options['icon_color']); ?>;
865 /*options*/
866 --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
867 --poll-border-style: <?php echo esc_attr($options['border_style']); ?>;
868 --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
869 --poll-border-width: <?php echo absint($options['border_width']); ?>px;
870 --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' : ''; ?>;
871 --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . esc_url($options['bg_image']) . ")" : "unset"; ?>;
872 --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
873 --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
874 --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
875
876 }
877
878
879 input[type='button'].ays-poll-btn{
880 font-size: <?php echo esc_attr($poll_buttons_font_size); ?>px;
881 padding: <?php echo esc_attr($poll_buttons_top_bottom_padding). "px ". esc_attr($poll_buttons_left_right_padding). "px"; ?>;
882 border-radius: <?php echo esc_attr($poll_buttons_border_radius); ?>px;
883 width: <?php echo esc_attr($poll_buttons_width); ?>px;
884 }
885
886 @media (max-width: 768px) {
887 input[type='button'].ays-poll-btn{
888 width: <?php echo esc_attr($poll_buttons_mobile_width); ?>px;
889 }
890 }
891 </style>
892 <!--LIVE PREVIEW STYLES END-->
893 <div class="wrap">
894 <div class="ays-poll-heading-box">
895 <div class="ays-poll-wordpress-user-manual-box">
896 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
897 <i class="ays_poll_fas ays_fa_file_text"></i>
898 <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__("View Documentation", "poll-maker"); ?></span>
899 </a>
900 </div>
901 </div>
902 <div class="container-fluid">
903 <form class="ays-poll-form" id="ays-poll-form" method="post">
904 <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo esc_attr($active_tab); ?>"/>
905 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
906 <input type="hidden" name="ays_poll_author" value="<?php echo esc_attr(json_encode($poll_author)); ?>">
907 <input type="hidden" id="poll_choose_type_first" value="<?php echo esc_attr($poll['type']); ?>" >
908 <h1 class="wp-heading-inline">
909 <?php
910 echo esc_html($heading);
911 ?>
912 </h1>
913 <div>
914 <div class="ays-poll-subtitle-main-box">
915 <p class="ays-subtitle ays-poll-open-list">
916 <strong class="ays_poll_title_in_top"><?php echo esc_html($poll['title']); ?></strong>
917 <?php if(isset($id) && count($get_all_polls) > 1):?>
918 <img class="ays-poll-open-polls-list" src="<?php echo esc_url( POLL_MAKER_AYS_ADMIN_URL ) .'/images/icons/list-icon.svg'; ?>">
919 <?php endif; ?>
920 </p>
921 <?php if(isset($id) && count($get_all_polls) > 1):?>
922 <div class="ays-poll-polls-data">
923 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
924 <?php ?>
925 <label class="ays-poll-message-vars-each-data-label">
926 <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">
927 <div class="ays-poll-polls-each-data">
928 <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo esc_attr($var); ?>">
929 <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>
930 </div>
931 </label>
932 <?php endforeach ?>
933 </div>
934 <?php endif; ?>
935 </div>
936 <?php if($id !== null): ?>
937 <div class="row">
938 <div class="col-sm-3">
939 <label> <?php echo esc_html__( "Shortcode text for editor", "poll-maker" ); ?> </label>
940 </div>
941 <div class="col-sm-9">
942 <p style="font-size:14px; font-style:italic;">
943 <?php echo esc_html__("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
944 <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>
945 <?php echo " " .esc_html__( "and paste it at the desired place in the editor.", "poll-maker"); ?>
946 </p>
947 </div>
948 </div>
949 <?php endif;?>
950 </div>
951 <hr>
952 <div class='ays-all-container'>
953 <div class='ays-all-sub-container'>
954 <div class="ays-top-menu-wrapper">
955 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
956 <div class="ays-top-menu">
957 <div class="nav-tab-wrapper ays-top-tab-wrapper">
958 <a href="#tab1" data-title="General"
959 class="nav-tab <?php echo $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
960 <?php echo esc_html__('General', "poll-maker"); ?>
961 </a>
962 <a href="#tab2" data-title="Styles"
963 class="nav-tab <?php echo $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
964 <?php echo esc_html__('Styles', "poll-maker"); ?>
965 </a>
966 <a href="#tab3" data-title="Settings"
967 class="nav-tab <?php echo $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
968 <?php echo esc_html__('Settings', "poll-maker"); ?>
969 </a>
970 <a href="#tab8" data-title="Results Settings"
971 class="nav-tab <?php echo $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
972 <?php echo esc_html__('Results Settings', "poll-maker"); ?>
973 </a>
974 <a href="#tab4" data-title="Limitations"
975 class="nav-tab <?php echo $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
976 <?php echo esc_html__("Limitations", "poll-maker"); ?>
977 </a>
978 <a href="#tab5" data-title="Userdata"
979 class="nav-tab <?php echo $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
980 <?php echo esc_html__('User Data', "poll-maker"); ?>
981 </a>
982 <a href="#tab6" data-title="Email"
983 class="nav-tab <?php echo $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
984 <?php echo esc_html__('Email', "poll-maker"); ?>
985 </a>
986 <a href="#tab7" data-title="Integrations"
987 class="nav-tab <?php echo $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
988 <?php echo esc_html__('Integrations', "poll-maker"); ?>
989 </a>
990 </div>
991 <div class='top-menu-buttons-container'>
992 <?php
993 echo wp_kses($loader_iamge, $loader_iamge_allow);
994 $save_attributes = array(
995 'id' => 'ays-button-top-apply',
996 'title' => 'Ctrl + s',
997 'data-toggle' => 'tooltip',
998 'data-delay'=> '{"show":"1000"}'
999 );
1000 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
1001 $save_close_attributes = array('id' => 'ays-button-top');
1002 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);
1003 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
1004 ?>
1005 </div>
1006 </div>
1007 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
1008 </div>
1009 <div id="tab1" class="ays-poll-tab-content <?php echo $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
1010 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
1011 <p class="ays-subtitle" style="margin-bottom:0;">
1012 <?php echo esc_html__('General options', "poll-maker"); ?>
1013 </p>
1014 <?php if ($poll_main_url != ''): ?>
1015 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
1016 <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;">
1017 <i class="fa fa-eye" aria-hidden="true"></i>
1018 <span style="margin-left: 5px;"><?php echo esc_html__( 'View', "poll-maker" ); ?></span>
1019 </a>
1020 </div>
1021 <?php endif; ?>
1022 </div>
1023 <hr>
1024 <div class="form-group row">
1025 <div class="col-sm-3">
1026 <label for='ays-poll-title'>
1027 <?php echo esc_html__('Title', "poll-maker"); ?>
1028 <a class="ays_help" data-toggle="tooltip"
1029 data-placement="top"
1030 title="<?php echo esc_html__("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
1031 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1032 </a>
1033 </label>
1034 </div>
1035 <div class="col-sm-9 ays_divider_left">
1036 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
1037 data-required="false" value="<?php echo esc_attr($poll_title); ?>"/>
1038 </div>
1039 </div>
1040 <hr>
1041 <div class="form-group row" style="display: flex;">
1042 <div class="col-sm-3">
1043 <label for='ays-poll-question'>
1044 <?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"); ?>">
1045 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1046 </a>
1047 <a href="javascript:void(0)" class="add-question-image button">
1048 <?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"); ?>">
1049 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1050 </a></a>
1051 </label>
1052 <div class="ays-poll-question-image-container" style="<?php echo esc_attr($style); ?>">
1053 <span class="ays-remove-question-img"></span>
1054 <img src="<?php echo $poll['image']; ?>" id="ays-poll-img"/>
1055 <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?php echo $poll['image']; ?>"/>
1056 </div>
1057 </div>
1058 <div class="col-sm-9">
1059 <?php
1060 $content = stripslashes($poll["question"]);
1061 $editor_id = 'ays-poll-question';
1062 $settings = array(
1063 'editor_height' => $poll_wp_editor_height,
1064 'textarea_name' => 'ays_poll_question',
1065 'editor_class' => 'ays-textarea',
1066 'media_buttons' => true,
1067 'tinymce' => array(
1068 "init_instance_callback" => "function(editor) {
1069 editor.on('Change', function(e) {
1070 document.querySelector('.box-apm .ays_question').innerHTML = e.level.content;
1071 });
1072 }",
1073 )
1074 );
1075 wp_editor($content, $editor_id, $settings);
1076 ?>
1077 </div>
1078 </div>
1079 <hr>
1080
1081 <?php if ($poll['type'] == 'choosing') : ?>
1082 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
1083 <div class="col-sm-3">
1084 <label for="ays-poll-answer" >
1085 <?php echo esc_html__('Options', "poll-maker"); ?>
1086 </label>
1087 </div>
1088 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1089 <div>
1090 <div class='add-option-top-container'>
1091 <a class="ays-add-answer ays-click-once" id='add-answer'>
1092 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1093 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1094 </a>
1095 </div>
1096 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1097 <thead>
1098 <tr class="ui-state-default">
1099 <th class="th-150"><?php echo esc_html__('Ordering', "poll-maker"); ?></th>
1100 <th style="width: 100vw;"><?php echo esc_html__('Option', "poll-maker"); ?></th>
1101 <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>
1102 <th class="th-150 only_pro"><?php echo esc_html__('Image', "poll-maker"); ?></th>
1103 <th class="th-150"><?php echo esc_html__('Delete', "poll-maker"); ?></th>
1104 </tr>
1105 </thead>
1106 <tbody class="">
1107 <?php
1108 $answers = $poll['answers'];
1109 $answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count;
1110 $loop_iteration = 0;
1111 $rows_count = count($answers);
1112 $ays_key_enter = "";
1113 $user_add_html = '';
1114 $user_add_html_allow = array(
1115 'input' => array(
1116 'type' => array(),
1117 'class' => array(),
1118 'style' => array(),
1119 'title' => array(),
1120 'checked' => array()
1121 )
1122 );
1123 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1124 foreach ($answers as $index => $answer) {
1125 $user_add_html = '';
1126 $class = (($index + 1) % 2 == 0) ? "even" : "";
1127 $answer_val = stripslashes(htmlentities($answer["answer"]));
1128 $answer_id = $answer["id"];
1129 $answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;';
1130 $answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img'];
1131 $answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : '';
1132 $user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false;
1133 $show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false;
1134
1135 if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on")
1136 && (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) {
1137 $disable_show_user_added = '';
1138 }else{
1139 $disable_show_user_added = 'display: none;';
1140 }
1141
1142 $show_user_added_checkbox = '';
1143 if ($show_user_added == 1) {
1144 $show_user_added_checkbox = 'checked';
1145 }
1146 if ( $user_added ) {
1147 $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 .' />';
1148 }
1149
1150 if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){
1151 $check_show_user_added = "1";
1152 }elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) {
1153 $check_show_user_added = "0";
1154 }else{
1155 $check_show_user_added = "1";
1156 }
1157
1158 if($loop_iteration == $rows_count - 1){
1159 $ays_key_enter = "ays_poll_enter_key";
1160 }
1161 $loop_iteration++;
1162 ?>
1163 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($class); ?>">
1164 <td class="ays-sort">
1165 <div class='ays_poll_move_arrows'></div>
1166 <td>
1167 <div class="ays_poll_display_flex">
1168 <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) ?>" />
1169 <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); ?>">
1170 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1171 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_attr($answer_id); ?>">
1172 </div>
1173 </td>
1174 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1175 <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); ?>"/>
1176 </td>
1177 <td>
1178 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1179 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1180 </label>
1181 <div class="ays-poll-answer-image-container" style="<?php echo esc_attr($answer_img_class); ?>">
1182 <span class="ays-poll-remove-answer-img"></span>
1183 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1184 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1185 </div>
1186 </td>
1187 <td>
1188 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($index);?>" data-lid="<?php echo esc_attr($index);?>">
1189 </a>
1190 </td>
1191 </tr>
1192 <?php
1193 }
1194 ?>
1195 <?php
1196 else:
1197 for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) :
1198 if($loop_iteration == intval($answer_default_count) - 1){
1199 $ays_key_enter = "ays_poll_enter_key";
1200 }
1201 $loop_iteration++;
1202 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1203 ?>
1204 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($ays_even_or_not); ?>">
1205 <td class="ays-sort">
1206 <div class='ays_poll_move_arrows'></div>
1207 </td>
1208 <td class="ays-choosing-answer-container">
1209 <div class="ays_poll_display_flex">
1210 <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)); ?>">
1211 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1212 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($dac_i);?>" value="0">
1213 </div>
1214 </td>
1215 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1216 <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=""/>
1217 </td>
1218 <td>
1219 <label class='ays-label' for='ays-answer'>
1220 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
1221 </label>
1222 <div class="ays-poll-answer-image-container" style="display:none;">
1223 <span class="ays-poll-remove-answer-img"></span>
1224 <img src="" class="ays-poll-answer-img"/>
1225 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/>
1226 </div>
1227 </td>
1228
1229 <td>
1230 <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);?>">
1231 </a>
1232 </td>
1233 </tr>
1234 <?php
1235 endfor;
1236 endif;
1237 ?>
1238 </tbody>
1239 </table>
1240 <div class='add-option-top-container'>
1241 <a class="ays-add-answer" id='add-answer'>
1242 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1243 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1244 </a>
1245 </div>
1246 <input type="hidden" id="ays_poll_answers_count" value="<?php echo esc_attr($answers_count); ?>">
1247 <input type="hidden" id="ays_answer_checker" value="<?php echo esc_attr($checking_answer_hover_live); ?>">
1248 </div>
1249
1250 </div>
1251 </div>
1252 <?php endif; ?>
1253 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1254 <div class="form-group row" style="display: flex;">
1255 <div class="col-sm-3">
1256 <label for="ays-poll-answer" >
1257 <?php echo esc_html__('Option Settings', "poll-maker")?>
1258 </label>
1259 </div>
1260 <div class="col-sm-9">
1261 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
1262 <div class="col-sm-12">
1263 <div class="form-group row">
1264 <div class="col-1">
1265 <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' : '' ?>/>
1266 </div>
1267 <div class="col-4 unset-padding-left">
1268 <label for="ays_redirect_after_submit" >
1269 <?php echo esc_html__('Answer Redirection', "poll-maker")?>
1270 <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")?>">
1271 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1272 </a>
1273 </label>
1274 </div>
1275 </div>
1276 </div>
1277 </div>
1278 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1279 <div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent">
1280 <div class="col-sm-12">
1281 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1282 <div class="col-1">
1283 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1284 value="on" <?php echo esc_attr($poll_allow_answer) ?>>
1285 </div>
1286 <div class="col-4 unset-padding-left">
1287 <label for="ays_poll_allow_add_answers">
1288 <?php echo esc_html__('Allow custom answer', "poll-maker"); ?>
1289 <a class="ays_help" data-toggle="tooltip"
1290 data-placement="top"
1291 title="<?php echo esc_html__("Allow users to add their custom answer.", "poll-maker"); ?>">
1292 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1293 </a>
1294 </label>
1295 </div>
1296 <div class="col-7 allow_add_answers_not_show_up_container">
1297 <div class="ays_toggle_target" <?php echo esc_attr($poll_allow_answer) ? '' : 'style="display:none;"'; ?>>
1298 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1299 <div class="col-2 ays_divider_left">
1300 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1301 value="on" <?php echo esc_attr($poll_allow_answer_require) ?> />
1302 </div>
1303 <div class="col-10">
1304 <label for="ays_poll_allow_answer_require">
1305 <?php echo esc_html__('Require admin approval', "poll-maker"); ?>
1306 <a class="ays_help" data-toggle="tooltip"
1307 data-placement="top"
1308 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"); ?>">
1309 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1310 </a>
1311 </label>
1312 </div>
1313 <?php
1314 $poll_answers = $poll['answers'];
1315 $is_user_added_exist = 0;
1316 foreach ($poll_answers as $index => $answer) {
1317 if($answer['user_added'] == 1) {
1318 $is_user_added_exist++;
1319 }
1320 }
1321 if($is_user_added_exist > 0):
1322 ?>
1323 <div class="col-12 row ays_toggle_target" <?php echo ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1324 <div class="col-2 ays_divider_left" style="align-items: center;">
1325 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1326 </div>
1327 <div class="col-10">
1328 <label for="ays_poll_require_approve_select_all">
1329 <?php echo esc_html__('Select all', "poll-maker"); ?>
1330 <a class="ays_help" data-toggle="tooltip"
1331 data-placement="top"
1332 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"); ?>">
1333 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1334 </a>
1335 </label>
1336 </div>
1337 </div>
1338 <?php
1339 endif;
1340 ?>
1341 </div>
1342 </div>
1343 </div>
1344 </div>
1345 </div>
1346 </div> <!-- Allow custom answer -->
1347 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1348 <div class="if-voting poll-type-block form-group row">
1349 <div class="col-sm-3">
1350 <label for="ays-poll-vote-type">
1351 <?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"); ?>">
1352 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1353 </a></label>
1354 </div>
1355 <div class="col-sm-9 answers-col">
1356 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1357 <option value='hand' <?php echo $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1358 <?php echo esc_html__('Hand', "poll-maker"); ?>
1359 </option>
1360 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1361 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1362 </option>
1363 </select>
1364 <?php
1365 switch ($poll['view_type']) {
1366 case 'hand':
1367 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1368 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1369 break;
1370
1371 case 'emoji':
1372 $vote_res = 'ays_poll_fas ays_poll_fa-smile';
1373 $rate_res = 'ays_poll_fas ays_poll_fa-smile';
1374 break;
1375
1376 case 'star':
1377 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1378 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1379 break;
1380
1381 default:
1382 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1383 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1384 break;
1385 }
1386 ?>
1387 <i id="vote-res" class="<?php echo esc_attr($vote_res); ?>"></i>
1388 </div>
1389 </div>
1390 <div class="if-rating poll-type-block form-group row">
1391 <div class="col-sm-3">
1392 <label for="ays-poll-rate-type">
1393 <?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"); ?>">
1394 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1395 </a></label>
1396 </div>
1397 <div class="col-sm-9 answers-col">
1398 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1399 <option value='star' <?php echo $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1400 <?php echo esc_html__('Stars', "poll-maker"); ?>
1401 </option>
1402 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1403 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1404 </option>
1405 </select>
1406 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1407 <option value="<?php echo count($poll['answers']); ?>" selected>
1408 <?php echo count($poll['answers']); ?>
1409 </option>
1410 </select>
1411 <i id="rate-res" class="<?php echo esc_attr($rate_res); ?>"></i>
1412 </div>
1413 </div>
1414 <hr class="if-voting if-rating">
1415 <div class="form-group row">
1416 <div class="col-sm-12 only_pro" style="padding:15px;">
1417 <div class="pro_features pro_features_popup">
1418 <div class="pro-features-popup-conteiner">
1419 <div class="pro-features-popup-title">
1420 <?php echo esc_html__("Add Fake Votes", "poll-maker"); ?>
1421 </div>
1422 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1423 <p>
1424 <?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"); ?>
1425 </p>
1426 </div>
1427 <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 ); ?>">
1428 <?php echo esc_html__("Pricing", "poll-maker"); ?>
1429 </div>
1430 </div>
1431 </div>
1432 <div class="pro_features" style="justify-content:flex-end;">
1433 </div>
1434 <div class="form-group row">
1435 <div class="col-1">
1436 <input type="checkbox" name="ays_add_f_votes"
1437 value="on">
1438 </div>
1439 <div class="col-11 unset-padding-left">
1440 <label for="ays_add_f_votes">
1441 <?php echo esc_html__('Add fake votes', "poll-maker"); ?>
1442 <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"); ?>">
1443 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1444 </a>
1445 </label>
1446 </div>
1447 </div>
1448 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1449 <div class="ays-poll-new-upgrade-button-box">
1450 <div>
1451 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1452 <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">
1453 </div>
1454 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1455 </div>
1456 </a>
1457 <div class="ays-poll-new-watch-video-button-box">
1458 <div>
1459 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
1460 <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">
1461 </div>
1462 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
1463 </div>
1464 </div>
1465 </div>
1466 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1467 <div class="if-text poll-type-block form-group row">
1468 <div class="col-sm-3">
1469 <label for="">
1470 <?php echo esc_html__('Choose text type', "poll-maker"); ?>
1471 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1472 <?php echo esc_html__( 'Choose the type of the question:' , "poll-maker" ); ?>
1473 <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>
1474 <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>">
1475 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1476 </a>
1477 </label>
1478 </div>
1479 <div class="col-sm-9 answers-col row">
1480 <div class="d-flex" style="padding: 0 15px;">
1481 <div class="form-check-inline">
1482 <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" : ""; ?>>
1483 <label for="ays_poll_text_type_short"><?php echo esc_html__("Short text", "poll-maker");?>
1484 </label>
1485 </div>
1486 <div class="form-check-inline">
1487 <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" : ""; ?>>
1488 <label for="ays_poll_text_type_paragraph"><?php echo esc_html__("Paragraph", "poll-maker");?>
1489 </label>
1490 </div>
1491 </div>
1492 </div>
1493 </div>
1494 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1495 <div class="if-text poll-type-block form-group row">
1496 <div class="col-sm-3">
1497 <label for='ays_poll_text_type_placeholder'>
1498 <?php echo esc_html__("Placeholder", "poll-maker"); ?>
1499 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1500 title="<?php echo esc_html__("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1501 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1502 </a>
1503 </label>
1504 </div>
1505 <div class="col-sm-3 ays_divider_left">
1506 <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo esc_attr($poll_text_type_placeholder); ?>">
1507 </div>
1508 </div>
1509 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1510 <div class="if-text poll-type-block form-group row">
1511 <div class="col-sm-3">
1512 <label for='ays_poll_text_type_width'>
1513 <?php echo esc_html__("Width", "poll-maker"); ?>
1514 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1515 title="<?php echo esc_html__("Specify the width of the text field.", "poll-maker"); ?>">
1516 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1517 </a>
1518 </label>
1519 </div>
1520 <div class="col-sm-3 ays_divider_left">
1521 <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo esc_attr($poll_text_type_width); ?>">
1522 </div>
1523 <div class="col-sm-6">
1524 <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">
1525 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
1526 <option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option>
1527 </select>
1528 </div>
1529 </div>
1530 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1531 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1532 <div class="col-sm-3">
1533 <label for="ays_poll_enable_question_length">
1534 <?php echo esc_html__('Maximum length of a text field', "poll-maker"); ?>
1535 <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" ); ?>">
1536 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1537 </a>
1538 </label>
1539 </div>
1540 <div class="col-sm-1 ays_divider_left">
1541 <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' : ''; ?>>
1542 </div>
1543 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1544 <div class="form-group row">
1545 <div class="col-sm-4">
1546 <label for="ays_poll_question_limit_text_type">
1547 <?php echo esc_html__('Limit by', "poll-maker"); ?>
1548 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred type of limitation.', "poll-maker"); ?>">
1549 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1550 </a>
1551 </label>
1552 </div>
1553 <div class="col-sm-8">
1554 <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%;">
1555 <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo esc_html__( 'Characters' , "poll-maker" ); ?></option>
1556 <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo esc_html__( 'Words' , "poll-maker" ); ?></option>
1557 </select>
1558 </div>
1559 </div>
1560 <hr>
1561 <div class="form-group row">
1562 <div class="col-sm-4">
1563 <label for="ays_poll_question_text_max_length">
1564 <?php echo esc_html__('Length', "poll-maker"); ?>
1565 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Indicate the length of the characters/words.', "poll-maker"); ?>">
1566 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1567 </a>
1568 </label>
1569 </div>
1570 <div class="col-sm-8">
1571 <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%;">
1572 </div>
1573 </div>
1574 <hr>
1575 <div class="form-group row">
1576 <div class="col-sm-4">
1577 <label for="ays_poll_question_enable_text_message">
1578 <?php echo esc_html__('Show word/character counter', "poll-maker"); ?>
1579 <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"); ?>">
1580 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1581 </a>
1582 </label>
1583 </div>
1584 <div class="col-sm-8">
1585 <div class="form-check form-check-inline">
1586 <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" : ""; ?> />
1587 </div>
1588 </div>
1589 </div>
1590 </div>
1591 </div>
1592 </div>
1593 </div>
1594 </div>
1595 <div id="tab2" class="ays-poll-tab-content <?php echo $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1596 <p class="ays-subtitle">
1597 <?php echo esc_html__('Styling options', "poll-maker"); ?>
1598 </p>
1599 <hr>
1600 <div class="form-group row ays-poll-all-themes-container">
1601 <div class="col-sm-1">
1602 <label for='ays-poll-theme' class="ays_label_flex">
1603 <?php echo esc_html__('Theme', "poll-maker"); ?>
1604 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1605 title="<?php echo esc_html__("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1606 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1607 </a>
1608 </label>
1609 </div>
1610 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1611 <div class="ays_poll_theme_image_div col">
1612 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1613 <p><?php echo esc_html__('Minimal', "poll-maker") ?></p>
1614 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/minimal.png' ?>"
1615 alt="<?php echo esc_html__('Minimal', "poll-maker") ?>">
1616 </label>
1617 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1618 value="3" <?php echo ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1619 </div>
1620 <div class="ays_poll_theme_image_div col">
1621 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1622 <p><?php echo esc_html__('Classic Light', "poll-maker") ?></p>
1623 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicLight.png' ?>"
1624 alt="<?php echo esc_html__('Classic Light', "poll-maker") ?>">
1625 </label>
1626 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1627 value="1" <?php echo ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1628 </div>
1629 <div class="ays_poll_theme_image_div col">
1630 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1631 <p><?php echo esc_html__('Classic Dark', "poll-maker") ?></p>
1632 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicDark.png' ?>"
1633 alt="<?php echo esc_html__('Classic Dark', "poll-maker") ?>">
1634 </label>
1635 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1636 value="2" <?php echo ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1637 </div>
1638 <div class="col">
1639 <div class="form-group row" style="margin: 0px;">
1640 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
1641 <div class="pro_features" style="justify-content:flex-end;">
1642 </div>
1643 <div class="ays_poll_theme_image_div_pro">
1644 <div class="ays_poll_theme_image_div col apm-pro-feature">
1645 <label class="ays-poll-theme-item">
1646 <p>Light Shape</p>
1647 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/LightShape.png' ?>"
1648 alt="Light Shape"
1649 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1650 </label>
1651 </div>
1652 <div class="ays_poll_theme_image_div col apm-pro-feature">
1653 <label class="ays-poll-theme-item">
1654 <p>Dark Shape</p>
1655 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/DarkShape.png' ?>"
1656 alt="Light Shape"
1657 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1658 </label>
1659 </div>
1660 <div class="ays_poll_theme_image_div col apm-pro-feature">
1661 <label class="ays-poll-theme-item">
1662 <p>Coffee Fluid</p>
1663 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/CoffeeFluid.png' ?>"
1664 alt="Coffee Fluid"
1665 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1666 </label>
1667 </div>
1668 <div class="ays_poll_theme_image_div col apm-pro-feature">
1669 <label class="ays-poll-theme-item">
1670 <p><?php echo esc_html__("Aquamarine", "poll-maker") ?></p>
1671 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/Aquamarine.png' ?>"
1672 alt="Aquamarine"
1673 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1674 </label>
1675 </div>
1676 </div>
1677 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1678 <div class="ays-poll-new-upgrade-button-box">
1679 <div>
1680 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1681 <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">
1682 </div>
1683 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1684 </div>
1685 </a>
1686 </div>
1687 </div>
1688 </div>
1689 </div>
1690 </div>
1691 <hr>
1692 <div class="col ays-poll-styles-page-main-container">
1693 <div class="row">
1694 <div class="col-lg-6 col-sm-12">
1695 <div class="ays-poll-accordion-options-main-container">
1696 <div class="ays-poll-accordion-header">
1697 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
1698 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Poll styles', "poll-maker"); ?></p>
1699 </div>
1700 <hr class="ays-poll-bolder-hr"/>
1701 <div class="ays-poll-accordion-body">
1702 <div class="form-group row">
1703 <div class="col-sm-4">
1704 <label for='ays-poll-main-color'>
1705 <?php echo esc_html__('Main Color', "poll-maker"); ?>
1706 <a class="ays_help"
1707 data-toggle="tooltip"
1708 data-placement="top"
1709 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"); ?>">
1710 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1711 </a>
1712 </label>
1713 </div>
1714 <div class="col-sm-8 ays_divider_left">
1715 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1716 name='ays_poll_main_color'
1717 value="<?php echo !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1718 </div>
1719 </div>
1720 <hr>
1721 <div class="form-group row">
1722 <div class="col-sm-4">
1723 <label for='ays-poll-text-color'>
1724 <?php echo esc_html__('Text Color', "poll-maker"); ?>
1725 <a class="ays_help"
1726 data-toggle="tooltip"
1727 data-placement="top"
1728 title="<?php echo esc_html__("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1729 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1730 </a>
1731 </label>
1732 </div>
1733 <div class="col-sm-8 ays_divider_left">
1734 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1735 name='ays_poll_text_color'
1736 value="<?php echo !empty($options['text_color']) ? esc_attr($options['text_color']) : esc_attr($default_colors['text_color']); ?>"/>
1737 </div>
1738 </div>
1739 <hr>
1740 <div class="form-group row">
1741 <div class="col-sm-4">
1742 <label for='ays-poll-icon-color'>
1743 <?php echo esc_html__('Icons Color', "poll-maker"); ?>
1744 <a class="ays_help"
1745 data-toggle="tooltip"
1746 data-placement="top"
1747 title="<?php echo esc_html__("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1748 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1749 </a>
1750 </label>
1751 </div>
1752 <div class="col-sm-8 ays_divider_left">
1753 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1754 name='ays_poll_icon_color'
1755 value="<?php echo !empty($options['icon_color']) ? esc_attr($options['icon_color']) : esc_attr($default_colors['icon_color']); ?>"/>
1756 </div>
1757 </div>
1758 <hr>
1759 <div class="form-group row">
1760 <div class="col-sm-4">
1761 <label for='ays-poll-bg-color'>
1762 <?php echo esc_html__('Background Color', "poll-maker"); ?>
1763 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Specify the background color of the poll.", "poll-maker"); ?>">
1764 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1765 </a>
1766 </label>
1767 </div>
1768 <div class="col-sm-8 ays_divider_left">
1769 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1770 name='ays_poll_bg_color'
1771 value="<?php echo !empty($options['bg_color']) ? esc_attr($options['bg_color']) : esc_attr($default_colors['bg_color']); ?>"/>
1772 </div>
1773 </div>
1774 <hr>
1775 <div class="form-group row">
1776 <div class="col-sm-4">
1777 <label for='ays-poll-bg-image'>
1778 <?php echo esc_html__('Background Image', "poll-maker"); ?>
1779 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1780 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"); ?>">
1781 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1782 </a>
1783 </label>
1784 </div>
1785 <div class="col-sm-8 ays_divider_left">
1786 <a href="javascript:void(0)" class="add-bg-image button">
1787 <?php echo esc_html($image_text_bg); ?>
1788 </a>
1789 <div class="form-group row" style="<?php echo esc_attr($style_bg); ?>">
1790 <div class="ays-poll-bg-image-container">
1791 <span class="ays-remove-bg-img"></span>
1792 <img src="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"
1793 id="ays-poll-bg-img"/>
1794 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1795 value="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"/>
1796 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1797 value="<?php echo isset($options['poll_bg_image_position']) ? esc_attr($options['poll_bg_image_position']) : ""; ?>"/>
1798 </div>
1799 </div>
1800 <div style="<?php echo esc_attr($style_bg_options); ?>" id="ays-poll-background-image-options">
1801 <hr>
1802 <div class="form-group row">
1803 <div class="col-sm-12">
1804 <label for="ays_poll_bg_image_position">
1805 <?php echo esc_html__( "Background image position", "poll-maker" ); ?>
1806 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The position of background image of the polls',"poll-maker")?>">
1807 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1808 </a>
1809 </label>
1810 <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;">
1811 <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo esc_html__( "Left Top", "poll-maker" ); ?></option>
1812 <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo esc_html__( "Left Center", "poll-maker" ); ?></option>
1813 <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Left Bottom", "poll-maker" ); ?></option>
1814 <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo esc_html__( "Center Top", "poll-maker" ); ?></option>
1815 <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo esc_html__( "Center Center", "poll-maker" ); ?></option>
1816 <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Center Bottom", "poll-maker" ); ?></option>
1817 <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo esc_html__( "Right Top", "poll-maker" ); ?></option>
1818 <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo esc_html__( "Right Center", "poll-maker" ); ?></option>
1819 <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Right Bottom", "poll-maker" ); ?></option>
1820 </select>
1821 </div>
1822 </div>
1823 <hr>
1824 <div class="form-group row">
1825 <div class="col-sm-8">
1826 <label for="ays_poll_bg_img_in_finish_page">
1827 <?php echo esc_html__( "Hide background image on result page", "poll-maker" ); ?>
1828 <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")?>">
1829 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1830 </a>
1831 </label>
1832 </div>
1833 <div class="col-sm-4">
1834 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1835 id="ays_poll_bg_img_in_finish_page"
1836 name="ays_poll_bg_img_in_finish_page"
1837 <?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/>
1838 <label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label>
1839 </div>
1840 </div>
1841 </div>
1842 </div>
1843 </div>
1844 <hr>
1845 <div class="form-group row">
1846 <div class="col-sm-4">
1847 <label for='ays_poll_enable_box_shadow'><?php echo esc_html__('Box shadow', "poll-maker"); ?>
1848 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1849 title="<?php echo esc_html__("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1850 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1851 </a>
1852 </label>
1853 </div>
1854 <div class="col-sm-8 ays_divider_left">
1855 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1856 id="ays_poll_enable_box_shadow"
1857 name="ays_poll_enable_box_shadow" <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1858 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1859 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1860 style="margin-top: 10px; padding-top: 10px; <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1861 <label for="ays-poll-box-shadow-color">
1862 <?php echo esc_html__('Box shadow color', "poll-maker") ?>
1863 <a class="ays_help" data-toggle="tooltip"
1864 title="--><?php echo esc_html__('The shadow color of Poll container', "poll-maker") ?>">
1865 <i class="ays_fa ays_fa_info_circle"></i>
1866 </a>
1867 </label>
1868 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1869 name='ays_poll_box_shadow_color'
1870 value="<?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) : '#000000'; ?>"/>
1871 </div>
1872 <!---->
1873 <hr class="ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1874 <div class="form-group row ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1875 <div class="col-sm-12">
1876 <div class="col-sm-3" style="display: inline-block;">
1877 <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); ?>" />
1878 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
1879 </div>
1880 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1881 <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); ?>" />
1882 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
1883 </div>
1884 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1885 <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); ?>" />
1886 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
1887 </div>
1888 </div>
1889 </div>
1890 <!---->
1891 </div>
1892 </div>
1893 <hr>
1894 <!-- ---------Aro start gradient -->
1895 <div class="form-group row">
1896 <div class="col-sm-4">
1897 <label for="ays-enable-background-gradient">
1898 <?php echo esc_html__('Background Gradient', "poll-maker")?>
1899 <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")?>">
1900 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1901 </a>
1902 </label>
1903 </div>
1904 <div class="col-sm-8 ays_divider_left">
1905 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1906 id="ays-enable-background-gradient"
1907 name="ays_enable_background_gradient"
1908 <?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/>
1909 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1910 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1911 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1912 <label for='ays-background-gradient-color-1'>
1913 <?php echo esc_html__('Color 1', "poll-maker"); ?>
1914 </label>
1915 <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); ?>"/>
1916 </div>
1917 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1918 <label for='ays-background-gradient-color-2'>
1919 <?php echo esc_html__('Color 2', "poll-maker"); ?>
1920 </label>
1921 <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); ?>"/>
1922 </div>
1923 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1924 <label for="ays_poll_gradient_direction">
1925 <?php echo esc_html__('Gradient direction',"poll-maker")?>
1926 </label>
1927 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1928 <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo esc_html__( 'Vertical', "poll-maker"); ?></option>
1929 <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo esc_html__( 'Horizontal', "poll-maker"); ?></option>
1930 <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>
1931 <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>
1932 </select>
1933 </div>
1934 </div>
1935 </div>
1936 </div>
1937 <hr>
1938 <div class="form-group row ays_toggle_parent">
1939 <div class="col-sm-4">
1940 <label for="ays_poll_image_text_logo">
1941 <?php echo esc_html__('Poll Logo', "poll-maker"); ?>
1942 <a class="ays_help" data-toggle="tooltip"
1943 data-placement="top"
1944 title="<?php echo esc_html__("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1945 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1946 </a>
1947 </label>
1948 </div>
1949 <div class="col-sm-8 ays_logo_container ays_divider_left">
1950 <div class="form-group row">
1951 <div class="col-sm-4">
1952 <a href="javascript:void(0)" class="add-logo-image button"><?php echo esc_html($image_text_logo); ?></a>
1953 </div>
1954 <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?php echo esc_attr($style_logo); ?>">
1955 <div class="ays-poll-logo-image-container">
1956 <div class="col-sm-3" style="padding:0;">
1957 <img src="<?php echo isset($options['logo_image']) ? esc_attr($options['logo_image']) : ""; ?>"
1958 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1959 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1960 value="<?php echo isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1961 </div>
1962 <div class="col-sm-9">
1963 <a href="javascript:void(0)" class="add-logo-remove-image button"><?php echo esc_html__("Remove", "poll-maker"); ?></a>
1964 </div>
1965 </div>
1966 </div>
1967 </div>
1968 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1969 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1970 <div class="col-sm-4 ">
1971 <label for="ays_disable_answer_hover">
1972 <?php echo esc_html__('Logo URL', "poll-maker"); ?>
1973 <a class="ays_help" data-toggle="tooltip"
1974 data-placement="top"
1975 title="<?php echo esc_html__("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1976 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1977 </a>
1978 </label>
1979 </div>
1980 <div class="col-sm-8 ays_divider_left">
1981 <input type="checkbox"
1982 name="ays_poll_logo_enable_image_url"
1983 id="ays_poll_logo_enable_image_url"
1984 value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>>
1985 <label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label>
1986 <hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>">
1987 <div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" >
1988 <input type="text"
1989 name="ays_poll_logo_image_url"
1990 id="ays_poll_logo_image_url"
1991 value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL">
1992 </div>
1993 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
1994 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
1995 <div class="col-sm-6">
1996 <label for="ays_poll_logo_enable_image_url_new_tab">
1997 <?php echo esc_html__('Open in a new tab', "poll-maker"); ?>
1998 <a class="ays_help" data-toggle="tooltip"
1999 data-placement="top"
2000 title="<?php echo esc_html__("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
2001 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2002 </a>
2003 </label>
2004 </div>
2005 <div class="col-sm-6">
2006 <input type="checkbox"
2007 name="ays_poll_logo_enable_image_url_new_tab"
2008 id="ays_poll_logo_enable_image_url_new_tab"
2009 value="on" class="ays_toggle ays_toggle_slide " <?php echo esc_attr($poll_logo_image_url_check_new_tab); ?>>
2010 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
2011 </div>
2012 </div>
2013 </div>
2014 </div>
2015 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2016 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2017 <div class="col-sm-4">
2018 <label for="ays_poll_logo_title">
2019 <?php echo esc_html__('Logo title', "poll-maker"); ?>
2020 <a class="ays_help" data-toggle="tooltip"
2021 data-placement="top"
2022 title="<?php echo esc_html__("Specify the title of the Logo image.", "poll-maker"); ?>">
2023 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2024 </a>
2025 </label>
2026 </div>
2027 <div class="col-sm-8 ays_divider_left">
2028 <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); ?>">
2029 </div>
2030 </div>
2031 </div>
2032 </div>
2033 <!-- Poll logo start -->
2034 <hr>
2035 <div class="form-group row">
2036 <div class="col-sm-4">
2037 <label for='ays-poll-title-bg-color'>
2038 <?php echo esc_html__('Title Background Color', "poll-maker"); ?>
2039 <a class="ays_help"
2040 data-toggle="tooltip"
2041 data-placement="top"
2042 title="<?php echo esc_html__("Specify the background color of the title.", "poll-maker"); ?>">
2043 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2044 </a>
2045 </label>
2046 </div>
2047 <div class="col-sm-8 ays_divider_left">
2048 <input type="text" class="ays-text-input" data-alpha="true"
2049 id='ays-poll-title-bg-color'
2050 name='ays_poll_title_bg_color'
2051 value="<?php echo !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2052 </div>
2053 </div>
2054 <hr>
2055 <div class="form-group row">
2056 <div class="col-sm-4">
2057 <label for='ays_poll_title_font_size'>
2058 <?php echo esc_html__('Title font size', "poll-maker"); ?>
2059 <a class="ays_help"
2060 data-toggle="tooltip"
2061 data-placement="top"
2062 title="<?php echo esc_html__("Specify the font size of the title.", "poll-maker"); ?>">
2063 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2064 </a>
2065 </label>
2066 </div>
2067 <div class="col-sm-8 ays_divider_left">
2068 <div>
2069 <div>
2070 <label for='ays_poll_title_font_size'>
2071 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2072 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2073 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2074 </a>
2075 </label>
2076 </div>
2077 <div>
2078 <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); ?>"/>
2079 </div>
2080 </div>
2081 <hr>
2082 <div>
2083 <div>
2084 <label for='ays_poll_title_font_size_mobile'>
2085 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2086 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2087 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2088 </a>
2089 </label>
2090 </div>
2091 <div>
2092 <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);?>">
2093 </div>
2094 </div>
2095 </div>
2096 </div>
2097 <hr>
2098 <div class="form-group row">
2099 <div class="col-sm-4">
2100 <label for='ays_poll_title_alignment'>
2101 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2102 <a class="ays_help"
2103 data-toggle="tooltip"
2104 data-placement="top"
2105 title="<?php echo esc_html__("Specify the alignment of the title.", "poll-maker"); ?>">
2106 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2107 </a>
2108 </label>
2109 </div>
2110 <div class="col-sm-8 ays_divider_left">
2111 <div>
2112 <div>
2113 <label for='ays_poll_title_alignment'>
2114 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2115 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2116 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2117 </a>
2118 </label>
2119 </div>
2120 <div>
2121 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2122 <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2123 <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2124 <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2125 </select>
2126 </div>
2127 </div>
2128 <hr>
2129 <div>
2130 <div>
2131 <label for='ays_poll_title_alignment_mobile'>
2132 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2133 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2134 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2135 </a>
2136 </label>
2137 </div>
2138 <div>
2139 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2140 <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2141 <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2142 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2143 </select>
2144 </div>
2145 </div>
2146 </div>
2147 </div>
2148 <hr>
2149 <!-- title text shadow start -->
2150 <div class="form-group row">
2151 <div class="col-sm-4">
2152 <label for="ays_poll_enable_title_text_shadow">
2153 <?php echo esc_html__('Title text shadow', "poll-maker")?>
2154 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add text shadow for the poll title.', "poll-maker")?>">
2155 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2156 </a>
2157 </label>
2158 </div>
2159 <div class="col-sm-8 ays_divider_left">
2160 <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' : ''; ?>/>
2161 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2162 <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;' ?>">
2163 <label for='ays_poll_title_text_shadow_color'>
2164 <?php echo esc_html__('Color', "poll-maker"); ?>
2165 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify text shadow color.', "poll-maker")?>">
2166 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2167 </a>
2168 </label>
2169 <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); ?>"/>
2170 </div>
2171 <!---->
2172 <hr class="ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2173 <div class="form-group row ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2174 <div class="col-sm-12">
2175 <div class="col-sm-3" style="display: inline-block;">
2176 <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; ?>" />
2177 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2178 </div>
2179 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2180 <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; ?>" />
2181 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2182 </div>
2183 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2184 <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; ?>" />
2185 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2186 </div>
2187 </div>
2188 </div>
2189 <!---->
2190 </div>
2191 </div>
2192 <!-- title text shadow end -->
2193 <div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>">
2194 <hr>
2195 <div class="form-group row">
2196 <div class="col-sm-4">
2197 <label for='ays-poll-icon-size'>
2198 <?php echo esc_html__('Icon size (px)', "poll-maker"); ?>
2199 <a class="ays_help"
2200 data-toggle="tooltip"
2201 data-placement="top"
2202 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"); ?>">
2203 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2204 </a>
2205 </label>
2206 </div>
2207 <div class="col-sm-8 ays_divider_left">
2208 <input type="number" class="ays-text-input ays-text-input-short"
2209 id='ays-poll-icon-size' name='ays_poll_icon_size'
2210 value="<?php echo (isset($options['icon_size'])) ? esc_attr($options['icon_size']) : '24'; ?>"/>
2211 </div>
2212 </div>
2213 </div>
2214 <hr>
2215 <div class="form-group row">
2216 <div class="col-sm-4">
2217 <label for='ays-poll-width'>
2218 <?php echo esc_html__('Width (px)', "poll-maker"); ?>
2219 <a class="ays_help"
2220 data-toggle="tooltip"
2221 data-placement="top"
2222 title="<?php echo esc_html__("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2223 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2224 </a>
2225 </label>
2226 </div>
2227 <div class="col-sm-8 ays_divider_left">
2228 <div>
2229 <div>
2230 <label for='ays-poll-width'>
2231 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2232 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker")?>">
2233 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2234 </a>
2235 </label>
2236 </div>
2237 <div>
2238 <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'] ?>"/>
2239 </div>
2240 </div>
2241 <hr>
2242 <div>
2243 <div>
2244 <label for='ays_poll_width_for_mobile'>
2245 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2246 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker")?>">
2247 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2248 </a>
2249 </label>
2250 </div>
2251 <div>
2252 <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 ?>"/>
2253 <p class="ays_poll_small_hint_text_for_message_variables">
2254 <span><?php echo esc_html__( "For 100% leave blank" , "poll-maker" ); ?></span>
2255 </p>
2256 </div>
2257 </div>
2258 </div>
2259 </div>
2260 <hr/>
2261 <div class="form-group row">
2262 <div class="col-sm-4">
2263 <label for='ays_poll_min_height'>
2264 <?php echo esc_html__('Min-height', "poll-maker"); ?>
2265 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2266 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2267 </a>
2268 </label>
2269 </div>
2270 <div class="col-sm-8 ays_divider_left">
2271 <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); ?>"/>
2272 </div>
2273 </div>
2274 <hr>
2275 <div class="form-group row">
2276 <div class="col-sm-4">
2277 <label for='ays_poll_mobile_max_width'>
2278 <?php echo esc_html__('Poll max-width for mobile', "poll-maker"); ?>
2279 <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")?>">
2280 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2281 </a>
2282 </label>
2283 </div>
2284 <div class="col-sm-8 ays_divider_left">
2285 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2286 name='ays_poll_mobile_max_width' style="display: inline-block;"
2287 value="<?php echo esc_attr($poll_mobile_max_width); ?>"/> %
2288 <span class="ays_poll_small_hint_text"><?php echo esc_html__("For 100% leave blank", "poll-maker");?></span>
2289 </div>
2290 </div> <!-- Poll max-width for mobile -->
2291 <hr>
2292 </div>
2293 </div>
2294 <div class="ays-poll-accordion-options-main-container">
2295 <div class="ays-poll-accordion-header">
2296 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2297 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Question styles', "poll-maker"); ?></p>
2298 </div>
2299 <hr class="ays-poll-bolder-hr"/>
2300 <div class="ays-poll-accordion-body">
2301 <div class="form-group row">
2302 <div class="col-sm-4">
2303 <label for='ays_questions_font_size'>
2304 <?php echo esc_html__('Question font size', "poll-maker"); ?> (px)
2305 <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")?>">
2306 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2307 </a>
2308 </label>
2309 </div>
2310 <div class="col-sm-8 ays_divider_left">
2311 <div>
2312 <div>
2313 <label for='ays_questions_font_size'>
2314 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2315 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2316 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2317 </a>
2318 </label>
2319 </div>
2320 <div>
2321 <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;?>">
2322 </div>
2323 </div>
2324 <hr>
2325 <div>
2326 <div>
2327 <label for='ays_poll_answers_font_size_mobile'>
2328 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2329 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2330 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2331 </a>
2332 </label>
2333 </div>
2334 <div>
2335 <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;?>">
2336 </div>
2337 </div>
2338 </div>
2339 </div><!-- Question font size -->
2340 <hr>
2341 <div class="form-group row">
2342 <div class="col-sm-4">
2343 <label for='ays_poll_question_image_height'><?php echo esc_html__('Question image height', "poll-maker"); ?>
2344 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2345 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2346 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2347 </a>
2348 </label>
2349 </div>
2350 <div class="col-sm-8 ays_divider_left">
2351 <input type="number"
2352 class="ays-text-input ays-text-input-short"
2353 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2354 value="<?php echo esc_attr($poll_question_image_height); ?>"/>
2355 </div>
2356 </div><!-- Question image height -->
2357 <hr>
2358 <div class="form-group row">
2359 <div class="col-sm-4">
2360 <label for='ays_poll_question_image_object_fit'><?php echo esc_html__('Question object fit', "poll-maker"); ?>
2361 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2362 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2363 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2364 </a>
2365 </label>
2366 </div>
2367 <div class="col-sm-8 ays_divider_left">
2368 <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">
2369 <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo esc_html__("Cover", "poll-maker"); ?></option>
2370 <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo esc_html__("Fill", "poll-maker"); ?></option>
2371 <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo esc_html__("Contain", "poll-maker"); ?></option>
2372 <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo esc_html__("Scale-down", "poll-maker"); ?></option>
2373 <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2374 </select>
2375 </div>
2376 </div><!-- Question image object fit -->
2377 <hr>
2378 </div>
2379 </div>
2380 <div class="ays-poll-accordion-options-main-container">
2381 <div class="ays-poll-accordion-header">
2382 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2383 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Answer Styles', "poll-maker"); ?></p>
2384 </div>
2385 <hr class="ays-poll-bolder-hr"/>
2386 <div class="ays-poll-accordion-body">
2387 <div class="form-group row">
2388 <div class="col-sm-4">
2389 <label for='ays_poll_enable_answer_style'><?php echo esc_html__('Enable answer styles', "poll-maker"); ?>
2390 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2391 title="<?php echo esc_html__("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2392 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2393 </a>
2394 </label>
2395 </div>
2396 <div class="col-sm-8 ays_divider_left">
2397 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2398 id="ays_poll_enable_answer_style"
2399 name="ays_poll_enable_answer_style" <?php echo ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2400 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2401 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2402 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2403 <label for="ays-poll-box-shadow-color">
2404 <?php echo esc_html__('Answers Background Color', "poll-maker"); ?>
2405 <a class="ays_help" data-toggle="tooltip"
2406 title="<?php echo esc_html__("Specify the background color of the answers' boxes.", "poll-maker"); ?>">
2407 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2408 </a>
2409 </label>
2410 <input type="text" class="ays-text-input" data-alpha="true"
2411 id='ays-poll-answer-bg-color'
2412 name='ays_poll_answer_bg_color'
2413 value="<?php echo esc_attr($answer_bg_color); ?>"/>
2414 </div>
2415 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2416 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2417 <label for="ays-poll-answer-hover-color">
2418 <?php echo esc_html__('Answer Hover Color', "poll-maker"); ?>
2419 <a class="ays_help" data-toggle="tooltip"
2420 title="<?php echo esc_html__('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2421 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2422 </a>
2423 </label>
2424 <input type="text" class="ays-text-input" data-alpha="true"
2425 id='ays-poll-answer-hover-color'
2426 name='ays_poll_answer_hover_color'
2427 value="<?php echo esc_attr($answer_hover_color); ?>"/>
2428 </div>
2429 <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;' ?>">
2430 <div>
2431 <label for='ays-poll-border-side'>
2432 <?php echo esc_html__('Border side', "poll-maker"); ?>
2433 <a class="ays_help"
2434 data-toggle="tooltip"
2435 data-placement="top"
2436 title="<?php echo esc_html__("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2437 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2438 </a>
2439 </label>
2440 </div>
2441 <div id="ays-poll-border-side-box">
2442 <select name="ays_poll_border_side" id="ays-poll-border-side"
2443 class="ays-select ays-select-short ays_poll_aysDropdown">
2444 <option value="all_sides" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2445 <?php echo esc_html__("All sides", "poll-maker"); ?>
2446 </option>
2447 <option value="none" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2448 <?php echo esc_html__("None", "poll-maker"); ?>
2449 </option>
2450 <option value="top" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2451 <?php echo esc_html__("Top", "poll-maker"); ?>
2452 </option>
2453 <option value="bottom" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2454 <?php echo esc_html__("Bottom", "poll-maker"); ?>
2455 </option>
2456 <option value="left" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2457 <?php echo esc_html__("Left", "poll-maker"); ?>
2458 </option>
2459 <option value="right" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2460 <?php echo esc_html__("Right", "poll-maker"); ?>
2461 </option>
2462 </select>
2463 </div>
2464 </div>
2465 <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;' ?>">
2466 <div>
2467 <label for='ays_answer_font_size'>
2468 <?php echo esc_html__('Answer font size', "poll-maker"); ?>
2469 <a class="ays_help"
2470 data-toggle="tooltip"
2471 data-placement="top"
2472 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"); ?>">
2473 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2474 </a>
2475 </label>
2476 </div>
2477 <div class="ays_answer_font_size_box">
2478 <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;?>">
2479 </div>
2480 </div>
2481 <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;' ?>">
2482 <div>
2483 <label for='ays_poll_answer_font_size_mobile'>
2484 <?php echo esc_html__('Answer font size for mobile', "poll-maker"); ?>
2485 <a class="ays_help"
2486 data-toggle="tooltip"
2487 data-placement="top"
2488 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"); ?>">
2489 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2490 </a>
2491 </label>
2492 </div>
2493 <div class="ays_answer_font_size_box">
2494 <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;?>">
2495 </div>
2496 </div>
2497 <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;' ?>">
2498 <div>
2499 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2500 <?php echo esc_html__('Answer image height (px)', "poll-maker")?>
2501 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2502 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2503 </a>
2504 </label>
2505 </div>
2506 <div>
2507 <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; ?>" />
2508 </div>
2509 </div> <!-- Answers image height -->
2510 <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;' ?>">
2511 <div>
2512 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2513 <?php echo esc_html__('Answer image height for mobile (px)', "poll-maker")?>
2514 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images on the mobile devices.', "poll-maker")?>">
2515 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2516 </a>
2517 </label>
2518 </div>
2519 <div>
2520 <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; ?>" />
2521 </div>
2522 </div> <!-- Answers image height for mobile-->
2523 <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;' ?>">
2524 <div>
2525 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2526 <?php echo esc_html__('Answer image border radius (px)', "poll-maker")?>
2527 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Border radius of answers images.', "poll-maker")?>">
2528 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2529 </a>
2530 </label>
2531 </div>
2532 <div>
2533 <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; ?>" />
2534 </div>
2535 </div> <!-- Answers image border radius -->
2536 <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;' ?>">
2537 <div >
2538 <label for="ays_poll_image_background_size">
2539 <?php echo esc_html__('Answer image object fit', "poll-maker"); ?>
2540 <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"); ?>">
2541 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2542 </a>
2543 </label>
2544 </div>
2545 <div id="ays_poll_image_background_size_box">
2546 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2547 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2548 <?php echo esc_html__('Cover', "poll-maker")?>
2549 </option>
2550 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2551 <?php echo esc_html__('Fill', "poll-maker")?>
2552 </option>
2553 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2554 <?php echo esc_html__('Contain', "poll-maker")?>
2555 </option>
2556 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2557 <?php echo esc_html__('Scale-down', "poll-maker")?>
2558 </option>
2559 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2560 <?php echo esc_html__('None', "poll-maker")?>
2561 </option>
2562 </select>
2563 </div>
2564 </div> <!-- Answer image object fit -->
2565 <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;' ?>">
2566 <div>
2567 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2568 <?php echo esc_html__('Answer padding (px)', "poll-maker")?>
2569 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Padding of answers.', "poll-maker")?>">
2570 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2571 </a>
2572 </label>
2573 </div>
2574 <div>
2575 <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); ?>"/>
2576 </div>
2577 </div> <!-- Answers padding -->
2578 <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;' ?>">
2579 <div >
2580 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2581 <?php echo esc_html__('Answer gap (px)', "poll-maker")?>
2582 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Gap between answers.', "poll-maker")?>">
2583 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2584 </a>
2585 </label>
2586 </div>
2587 <div>
2588 <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; ?>" />
2589 </div>
2590 </div> <!-- Answers gap -->
2591 <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;' ?>">
2592 <div>
2593 <label for="ays_poll_answer_border_radius">
2594 <?php echo esc_html__('Answer border radius', "poll-maker")?>
2595 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the radius of the answers container.', "poll-maker")?>">
2596 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2597 </a>
2598 </label>
2599 </div>
2600 <div>
2601 <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); ?>"/>
2602 </div>
2603 </div> <!-- Answers border radius -->
2604 </div>
2605 </div>
2606 <hr>
2607 <div class="form-group row">
2608 <div class="col-sm-4">
2609 <label for="ays_poll_show_answers_icon">
2610 <?php echo esc_html__('Answer icon', "poll-maker"); ?>
2611 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2612 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2613 </a>
2614 </label>
2615 </div>
2616 <div class="col-sm-8 ays_divider_left">
2617 <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' : ''; ?> />
2618 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2619 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2620 <div class="form-check form-check-inline">
2621 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2622 <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' : ''; ?> />
2623 </label>
2624 </div>
2625 <div class="form-check form-check-inline">
2626 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2627 <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' : ''; ?> />
2628 </label>
2629 </div>
2630 </div>
2631 </div>
2632 </div> <!-- Answer icon -->
2633 <hr>
2634 <div class="form-group row">
2635 <div class="col-sm-4">
2636 <label for="ays_answers_view" class="ays_enable_answer_style">
2637 <?php echo esc_html__('Answer view', "poll-maker")?>
2638 <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")?>">
2639 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2640 </a>
2641 </label>
2642 </div>
2643 <div class="col-sm-8">
2644 <div class="form-group row">
2645 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2646 <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">
2647 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2648 <?php echo esc_html__('List', "poll-maker")?>
2649 </option>
2650 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2651 <?php echo esc_html__('Grid', "poll-maker")?>
2652 </option>
2653 </select>
2654 </div>
2655 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
2656 <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;">
2657 <option value='2' selected>
2658 2
2659 </option>
2660 <option value='3' class="ays-poll-grid-type-columns">
2661 3
2662 </option>
2663 <option value='4' class="ays-poll-grid-type-columns">
2664 4
2665 </option>
2666 </select>
2667 </div>
2668 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2669 <div class="col-sm-8" style="display:flex;align-items:center;">
2670 <label for="ays_answers_grid_column_mobile">
2671 <?php echo esc_html__('Mobile Single Column View',"poll-maker")?>
2672 </label>
2673 <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")?>">
2674 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2675 </a>
2676 </div>
2677 <div class="col-sm-1 ays_divider_left">
2678 <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'/>
2679 <label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label>
2680 </div>
2681 </div>
2682 </div>
2683 </div>
2684 </div> <!-- Answers view -->
2685 <hr>
2686 <div class="form-group row">
2687 <div class="col-sm-4">
2688 <label for="ays_poll_answers_box_shadow_enable">
2689 <?php echo esc_html__('Answer box shadow', "poll-maker")?>
2690 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer container box shadow', "poll-maker")?>">
2691 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2692 </a>
2693 </label>
2694 </div>
2695 <div class="col-sm-8 ays_divider_left">
2696 <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" : ""; ?>>
2697 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2698 <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;"; ?>">
2699 <label for="ays_poll_answers_box_shadow_color">
2700 <?php echo esc_html__('Answer shadow color', "poll-maker")?>
2701 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The shadow color of answers container', "poll-maker")?>">
2702 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2703 </a>
2704 </label>
2705 <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">
2706 </div>
2707 <!---->
2708 <hr class="ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none'; ?>">
2709 <div class="form-group row ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none' ?>">
2710 <div class="col-sm-12">
2711 <div class="col-sm-3" style="display: inline-block;">
2712 <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; ?>" />
2713 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2714 </div>
2715 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2716 <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; ?>" />
2717 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2718 </div>
2719 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2720 <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; ?>" />
2721 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2722 </div>
2723 </div>
2724 </div>
2725 <!---->
2726 </div>
2727 </div> <!-- Answers box shadow -->
2728 <hr>
2729 <div class="form-group row">
2730 <div class="col-sm-4">
2731 <label for="ays_disable_answer_hover">
2732 <?php echo esc_html__('Disable answers hover', "poll-maker"); ?>
2733 <a class="ays_help" data-toggle="tooltip"
2734 data-placement="top"
2735 title="<?php echo esc_html__("Disable the hover effect for answers.", "poll-maker"); ?>">
2736 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2737 </a>
2738 </label>
2739 </div>
2740 <div class="col-sm-8 ays_divider_left">
2741 <input type="checkbox"
2742 name="ays_disable_answer_hover"
2743 id="ays_disable_answer_hover"
2744 value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?>
2745 >
2746 </div>
2747 </div>
2748 <hr>
2749 <!--PRO ANSWER STYLEs-->
2750 <div class="form-group row">
2751 <div class="col-sm-12 only_pro">
2752 <div class="pro_features" style="justify-content:flex-end;">
2753 </div>
2754 <div class="form-group row" style="padding: 15px 15px 0">
2755 <div class="" style="width: 100%;">
2756 <div class="form-group row">
2757 <div class="col-sm-5">
2758 <label for="ays_answers_border">
2759 <?php echo esc_html__('Answer border', "poll-maker")?>
2760 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer border', "poll-maker")?>">
2761 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2762 </a>
2763 </label>
2764 </div>
2765 <div class="col-sm-7 ays_divider_left">
2766 <input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on"
2767 checked/>
2768 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2769 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2770 <label for="ays_answers_border_width">
2771 <?php echo esc_html__('Border width', "poll-maker")?> (px)
2772 <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")?>">
2773 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2774 </a>
2775 </label>
2776 <input type="number" class="ays-text-input"
2777 value="" min="0"/>
2778 </div>
2779 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2780 <label for="ays_answers_border_style">
2781 <?php echo esc_html__('Border style', "poll-maker")?>
2782 <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")?>">
2783 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2784 </a>
2785 </label>
2786 <select name="ays_answers_border_style" class="ays-text-input ays-select-short">
2787 <option>Solid</option>
2788 </select>
2789 </div>
2790 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2791 <label for="ays_answers_border_color">
2792 <?php echo esc_html__('Border color', "poll-maker")?>
2793 <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")?>">
2794 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2795 </a>
2796 </label>
2797 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
2798 </div>
2799 </div>
2800 </div> <!-- Answers border -->
2801 <hr/>
2802 <div class="form-group row ays_grid_show">
2803 <div class="col-sm-5">
2804 <label for="ays_poll_show_answers_caption">
2805 <?php echo esc_html__('Show answers caption', "poll-maker")?>
2806 <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"); ?>">
2807 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2808 </a>
2809 </label>
2810 </div>
2811 <div class="col-sm-7 ays_divider_left">
2812 <input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/>
2813 <label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label>
2814 </div>
2815 </div> <!-- Show answers caption -->
2816 <hr/>
2817 <div class="form-group row">
2818 <div class="col-sm-5">
2819 <label for="ays_ans_img_caption_style">
2820 <?php echo esc_html__('Answers image caption style', "poll-maker")?>
2821 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2822 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2823 </a>
2824 </label>
2825 </div>
2826 <div class="col-sm-7 ays_divider_left">
2827 <select class="ays-text-input ays-text-input-short">
2828 <option><?php echo esc_html__('Outside', "poll-maker"); ?></option>
2829 </select>
2830 </div>
2831 </div> <!-- Answers image caption style -->
2832 <hr/>
2833 <div class="form-group row">
2834 <div class="col-sm-5">
2835 <label for="ays_ans_img_caption_position">
2836 <?php echo esc_html__('Answers image caption position', "poll-maker")?>
2837 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2838 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2839 </a>
2840 </label>
2841 </div>
2842 <div class="col-sm-7 ays_divider_left">
2843 <select class="ays-text-input ays-text-input-short">
2844 <option value="top"><?php echo esc_html__('Top', "poll-maker"); ?></option>
2845 </select>
2846 </div>
2847 </div> <!-- Answers image caption position -->
2848 <hr>
2849 </div>
2850 </div>
2851 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2852 <div class="ays-poll-new-upgrade-button-box">
2853 <div>
2854 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2855 <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">
2856 </div>
2857 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
2858 </div>
2859 </a>
2860 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2861 <div class="ays-poll-center-big-main-button-box">
2862 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2863 <div class="ays-poll-center-new-big-upgrade-button">
2864 <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">
2865 <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">
2866 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
2867 </div>
2868 </a>
2869 </div>
2870 </div>
2871 </div>
2872 </div>
2873 <hr/>
2874 </div>
2875 </div>
2876 <div class="ays-poll-accordion-options-main-container">
2877 <div class="ays-poll-accordion-header">
2878 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2879 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Border styles', "poll-maker"); ?></p>
2880 </div>
2881 <hr class="ays-poll-bolder-hr"/>
2882 <div class="ays-poll-accordion-body">
2883 <div class="form-group row">
2884 <div class="col-sm-4">
2885 <label for='ays-poll-border-style'>
2886 <?php echo esc_html__('Border style', "poll-maker"); ?>
2887 <a class="ays_help"
2888 data-toggle="tooltip"
2889 data-placement="top"
2890 title="<?php echo esc_html__("Choose your preferred style of the border.", "poll-maker"); ?>">
2891 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2892 </a>
2893 </label>
2894 </div>
2895 <div class="col-sm-8 ays_divider_left">
2896 <select name="ays_poll_border_style" id="ays-poll-border-style"
2897 class="ays-select ays-select-short ays_poll_aysDropdown">
2898 <option value="solid" <?php echo $options['border_style'] == "solid" ? 'selected' : ''; ?>>
2899 <?php echo esc_html__("Solid", "poll-maker"); ?>
2900 </option>
2901 <option value="dashed" <?php echo $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
2902 <?php echo esc_html__("Dashed", "poll-maker"); ?>
2903 </option>
2904 <option value="dotted" <?php echo $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
2905 <?php echo esc_html__("Dotted", "poll-maker"); ?>
2906 </option>
2907 <option value="double" <?php echo $options['border_style'] == "double" ? 'selected' : ''; ?>>
2908 <?php echo esc_html__("Double", "poll-maker"); ?>
2909 </option>
2910 <option value="groove" <?php echo $options['border_style'] == "groove" ? 'selected' : ''; ?>>
2911 <?php echo esc_html__("Groove", "poll-maker"); ?>
2912 </option>
2913 <option value="ridge" <?php echo $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
2914 <?php echo esc_html__("Ridge", "poll-maker"); ?>
2915 </option>
2916 <option value="inset" <?php echo $options['border_style'] == "inset" ? 'selected' : ''; ?>>
2917 <?php echo esc_html__("Inset", "poll-maker"); ?>
2918 </option>
2919 <option value="outset" <?php echo $options['border_style'] == "outset" ? 'selected' : ''; ?>>
2920 <?php echo esc_html__("Outset", "poll-maker"); ?>
2921 </option>
2922 <option value="none" <?php echo $options['border_style'] == "none" ? 'selected' : ''; ?>>
2923 <?php echo esc_html__("None", "poll-maker"); ?>
2924 </option>
2925 </select>
2926 </div>
2927 </div>
2928 <hr>
2929 <div class="form-group row">
2930 <div class="col-sm-4">
2931 <label for='ays-poll-border-radius'><?php echo esc_html__('Border radius', "poll-maker"); ?>
2932 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2933 title="<?php echo esc_html__("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
2934 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2935 </a>
2936 </label>
2937 </div>
2938 <div class="col-sm-8 ays_divider_left">
2939 <input type="number" min="0"
2940 class="ays-text-input ays-text-input-short"
2941 id='ays-poll-border-radius' name='ays_poll_border_radius'
2942 value="<?php echo (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
2943 </div>
2944 </div>
2945 <hr>
2946 <div class="form-group row">
2947 <div class="col-sm-4">
2948 <label for='ays-poll-border-width'><?php echo esc_html__('Border width', "poll-maker"); ?>
2949 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2950 title="<?php echo esc_html__("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
2951 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2952 </a>
2953 </label>
2954 </div>
2955 <div class="col-sm-8 ays_divider_left">
2956 <input type="number" min="0"
2957 class="ays-text-input ays-text-input-short"
2958 id='ays-poll-border-width' name='ays_poll_border_width'
2959 value="<?php echo isset($options['border_width']) && $options['border_width'] != '' ? esc_attr($options['border_width']) : 2; ?>"/>
2960 </div>
2961 </div>
2962 <hr>
2963 <div class="form-group row">
2964 <div class="col-sm-4">
2965 <label for='ays-poll-border-color'><?php echo esc_html__('Border color', "poll-maker"); ?>
2966 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2967 title="<?php echo esc_html__("Specify the color of the border.", "poll-maker"); ?>">
2968 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2969 </a>
2970 </label>
2971 </div>
2972 <div class="col-sm-8 ays_divider_left">
2973 <input type="text"
2974 class="ays-text-input"
2975 data-alpha="true"
2976 id='ays-poll-border-color'
2977 name='ays_poll_border_color'
2978 value="<?php echo esc_attr($default_border); ?>"/>
2979 </div>
2980 </div>
2981 <hr>
2982 <!-- Buttons Styles Start -->
2983 </div>
2984 </div>
2985 <div class="ays-poll-accordion-options-main-container">
2986 <div class="ays-poll-accordion-header">
2987 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2988 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Button Styles', "poll-maker"); ?></p>
2989 </div>
2990 <hr class="ays-poll-bolder-hr"/>
2991 <div class="ays-poll-accordion-body">
2992 <div class="form-group row">
2993 <div class="col-sm-4">
2994 <label for="ays_poll_buttons_size">
2995 <?php echo esc_html__('Buttons Size', "poll-maker"); ?>
2996 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
2997 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2998 </a>
2999 </label>
3000 </div>
3001 <div class="col-sm-8 ays_divider_left">
3002 <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">
3003 <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo esc_html__('Small', "poll-maker"); ?></option>
3004 <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo esc_html__('Medium', "poll-maker"); ?></option>
3005 <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo esc_html__('Large', "poll-maker"); ?></option>
3006 </select>
3007 </div>
3008 </div> <!-- Buttons Size -->
3009 <hr>
3010 <div class="form-group row">
3011 <div class="col-sm-4">
3012 <label for='ays-poll-button-text-color'>
3013 <?php echo esc_html__('Buttons Text Color', "poll-maker"); ?>
3014 <a class="ays_help"
3015 data-toggle="tooltip"
3016 data-placement="top"
3017 title="<?php echo esc_html__("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
3018 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3019 </a>
3020 </label>
3021 </div>
3022 <div class="col-sm-8 ays_divider_left">
3023 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
3024 name='ays_poll_button_text_color'
3025 value="<?php echo esc_attr($poll_button_text_color); ?>"/>
3026 </div>
3027 </div><!-- Buttons text color -->
3028 <hr>
3029 <div class="form-group row">
3030 <div class="col-sm-4">
3031 <label for='ays-poll-button-bg-color'>
3032 <?php echo esc_html__('Buttons Background Color', "poll-maker"); ?>
3033 <a class="ays_help"
3034 data-toggle="tooltip"
3035 data-placement="top"
3036 title="<?php echo esc_html__("Specify the background color of the poll button.", "poll-maker"); ?>">
3037 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3038 </a>
3039 </label>
3040 </div>
3041 <div class="col-sm-8 ays_divider_left">
3042 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
3043 name='ays_poll_button_bg_color'
3044 value="<?php echo esc_attr($poll_button_bg_color); ?>"/>
3045 </div>
3046 </div><!-- Buttons background color -->
3047 <hr>
3048 <div class="form-group row">
3049 <div class="col-sm-4">
3050 <label for='ays_poll_buttons_font_size'>
3051 <?php echo esc_html__('Buttons font size', "poll-maker"); ?> (px)
3052 <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"); ?>">
3053 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3054 </a>
3055 </label>
3056 </div>
3057 <div class="col-sm-8 ays_divider_left">
3058 <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; ?>"/>
3059 </div>
3060 </div> <!-- Buttons font size -->
3061 <hr>
3062 <div class="form-group row">
3063 <div class="col-sm-4">
3064 <label for='ays_poll_buttons_mobile_font_size'>
3065 <?php echo esc_html__('Buttons mobile font size', "poll-maker"); ?> (px)
3066 <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"); ?>">
3067 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3068 </a>
3069 </label>
3070 </div>
3071 <div class="col-sm-8 ays_divider_left">
3072 <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; ?>"/>
3073 </div>
3074 </div> <!-- Buttons font size -->
3075 <hr>
3076 <div class="form-group row">
3077 <div class="col-sm-4">
3078 <label for="ays_poll_buttons_left_right_padding">
3079 <?php echo esc_html__('Buttons padding (px)', "poll-maker"); ?>
3080 <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"); ?>">
3081 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3082 </a>
3083 </label>
3084 </div>
3085 <div class="col-sm-8 ays_divider_left">
3086 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
3087 <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;" />
3088 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Left / Right', "poll-maker"); ?></span>
3089 </div>
3090 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
3091 <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;" />
3092 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Top / Bottom', "poll-maker"); ?></span>
3093 </div>
3094 </div>
3095 </div> <!-- Buttons padding -->
3096 <hr>
3097 <div class="form-group row">
3098 <div class="col-sm-4">
3099 <label for="ays_poll_buttons_border_radius">
3100 <?php echo esc_html__('Buttons border radius', "poll-maker"); ?> (px)
3101 <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"); ?>">
3102 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3103 </a>
3104 </label>
3105 </div>
3106 <div class="col-sm-8 ays_divider_left">
3107 <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; ?>"/>
3108 </div>
3109 </div>
3110 <hr>
3111 <div class="form-group row">
3112 <div class="col-sm-4">
3113 <label for='ays_poll_buttons_width'>
3114 <?php echo esc_html__('Buttons width', "poll-maker"); ?> (px)
3115 <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"); ?>">
3116 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3117 </a>
3118 </label>
3119 </div>
3120 <div class="col-sm-8 ays_divider_left">
3121 <div>
3122 <div>
3123 <label for="ays_poll_buttons_width">
3124 <?php echo esc_html__('On desktop', "poll-maker"); ?>
3125 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker"); ?>">
3126 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3127 </a>
3128 </label>
3129 </div>
3130 <div>
3131 <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; ?>"/>
3132 <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>
3133 </div>
3134 </div>
3135 <hr>
3136 <div>
3137 <div>
3138 <label for="ays_poll_buttons_mobile_width">
3139 <?php echo esc_html__('On mobile', "poll-maker"); ?>
3140 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker"); ?>">
3141 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3142 </a>
3143 </label>
3144 </div>
3145 <div>
3146 <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; ?>"/>
3147 <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>
3148 </div>
3149 </div>
3150 </div>
3151 </div>
3152 <hr/>
3153 <div class="form-group row">
3154 <div class="col-sm-4">
3155 <label for="ays_poll_custom_class">
3156 <?php echo esc_html__('Custom class for poll container', "poll-maker")?>
3157 <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")?>">
3158 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3159 </a>
3160 </label>
3161 </div>
3162 <div class="col-sm-8 ays_divider_left">
3163 <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; ?>">
3164 </div>
3165 </div>
3166 </div>
3167 </div>
3168 </div>
3169 <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3170 <?php
3171
3172 $content = "
3173 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
3174 <div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''>
3175 <div class='apm-title-box'>
3176 <h5>{$poll['title']}</h5>
3177 </div>";
3178
3179 $content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div>
3180 <div class='apm-img-box'>";
3181 $content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : "";
3182 $checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
3183 $content .= "</div>
3184 <div class='apm-answers ays_poll_list_view_container'>";
3185 $minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ;
3186 $minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ;
3187 if ($poll_answer_icon_check && $poll['theme_id'] != 3) {
3188 switch ($poll_answer_icon) {
3189 case 'radio':
3190 $answer_icon_class = 'ays_poll_answer_icon_radio';
3191 break;
3192 case 'checkbox':
3193 $answer_icon_class = 'ays_poll_answer_icon_checkbox';
3194 break;
3195 default:
3196 $answer_icon_class = '';
3197 break;
3198 }
3199 }else{
3200 $answer_icon_class = '';
3201 }
3202 switch ( $poll['type'] ) {
3203 case 'choosing':
3204 if(empty($poll['answers'])){
3205 for ($i = 0 ; $i < $answer_default_count ; $i++){
3206 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i.">
3207 <input type='radio' name='answer' id='radio-".$i."-' value='".$i."'>
3208 <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>
3209
3210 </div>";
3211 }
3212 }
3213 else{
3214 foreach ( $poll['answers'] as $index => $answer ) {
3215 $answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : "";
3216 $poll_class_for_answer_label = "";
3217 $poll_class_for_answer_label_text = "";
3218 if($answer_image != ""){
3219 $poll_class_for_answer_label = "ays_poll_label_without_padding";
3220 $poll_class_for_answer_label_text = "ays_poll_label_text_with_padding";
3221 }
3222 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index.">
3223 <input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'>
3224 <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>
3225 </div>";
3226 }
3227 }
3228 break;
3229 case 'voting':
3230 $poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand";
3231 switch ( $poll_view_type_voting ) {
3232 case 'hand':
3233 foreach ( $poll['answers'] as $index => $answer ) {
3234 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3235 <label for='radio-$index-'>";
3236 $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>";
3237 }
3238 break;
3239 case 'emoji':
3240 foreach ( $poll['answers'] as $index => $answer ) {
3241 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3242 <label for='radio-$index-'>";
3243 $content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>";
3244 }
3245 break;
3246 default:
3247 break;
3248 }
3249 break;
3250 case 'rating':
3251 $poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star";
3252 switch ( $poll_view_type_rating ) {
3253 case 'star':
3254 foreach ( $poll['answers'] as $index => $answer ) {
3255 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3256 <label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>";
3257 }
3258 break;
3259 case 'emoji':
3260 foreach ( $poll['answers'] as $index => $answer ) {
3261 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3262 <label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>";
3263 }
3264 break;
3265 default:
3266 break;
3267 }
3268 break;
3269 case 'text':
3270 $poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text";
3271 switch ( $poll_view_type_text ) {
3272 case 'short_text':
3273 $content .= "<div class='ays-poll-maker-text-live-preview'>
3274 <input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'>
3275 <label for='ays_poll_text_type_short_live'></label>
3276 </div>";
3277 break;
3278 case 'paragraph':
3279 $content .= "<div class='ays-poll-maker-text-live-preview'>
3280 <textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea>
3281 <label for='ays_poll_text_type_paragraph_live'></label>
3282 </div>";
3283 break;
3284 default:
3285 break;
3286 }
3287 break;
3288 default:
3289 break;
3290 }
3291 $content .= "</div>
3292 <div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . ">
3293 <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') . '">
3294 </div>';
3295 $content .= "<div class='".$poll_logo_img." ays_live_logo_container'>";
3296 if($poll_check_logo){
3297 $content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>";
3298 }
3299 $content .= "</div>";
3300
3301 $content .='</div>
3302 </div>';
3303 print wp_kses_post($content);
3304 ?>
3305 </div>
3306 </div>
3307 <hr/>
3308 <div class="form-group row">
3309 <div class="col-sm-2">
3310 <label for="ays_custom_css">
3311 <?php echo esc_html__("Custom CSS", "poll-maker"); ?>
3312 </label>
3313 <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"); ?>">
3314 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3315 </a>
3316 <br>
3317 </div>
3318 <div class="col-sm-10 ays_divider_left">
3319 <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>
3320 </div>
3321 </div>
3322 <hr/>
3323 <div class="form-group row">
3324 <div class="col-sm-2">
3325 <label for="ays_poll_reset_to_default">
3326 <?php echo esc_html__('Reset styles', "poll-maker") ?>
3327 <a class="ays_help" data-toggle="tooltip"
3328 title="<?php echo esc_html__('Reset styles to default values', "poll-maker") ?>">
3329 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3330 </a>
3331 </label>
3332 </div>
3333 <div class="col-sm-10 ays_divider_left">
3334 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3335 id="ays_poll_reset_to_default"><?php echo esc_html__("Reset", "poll-maker") ?>
3336 </button>
3337 </div>
3338 </div>
3339 </div>
3340 <hr>
3341 <div class="only_pro" style="position: relative; display: inline-block">
3342 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
3343 <div class="pro-features-popup-conteiner">
3344 <div class="pro-features-popup-title">
3345 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
3346 </div>
3347 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
3348 <p>
3349 <?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"); ?>
3350 </p>
3351 <p>
3352 <?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"); ?>
3353 </p>
3354 </div>
3355 <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 ); ?>">
3356 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3357 </div>
3358 </div>
3359 </div>
3360 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
3361 <span class="ays_save_as_default_content_for_mobile">
3362 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
3363 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
3364 </a>
3365 <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" ); ?>">
3366 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3367 </a>
3368 </span>
3369 </div>
3370 </div>
3371 </div>
3372 <div id="tab3" class="ays-poll-tab-content <?php echo $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3373 <div class="ays-poll-accordion-options-main-container">
3374 <div class="ays-poll-accordion-header">
3375 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3376 <p class="ays-subtitle"><?php echo esc_html__('Feature options', "poll-maker"); ?> </p>
3377 </div>
3378 <hr class="ays-poll-bolder-hr"/>
3379 <div class="ays-poll-accordion-body">
3380 <div class="form-group row">
3381 <div class="col-sm-3">
3382 <label>
3383 <?php echo esc_html__('Status', "poll-maker"); ?>
3384 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3385 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") ?>">
3386 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3387 </a>
3388 </label>
3389 </div>
3390 <div class="col-sm-9">
3391 <div class="d-flex">
3392 <div class="form-check form-check-inline">
3393 <input type="radio" id="ays-publish" name="ays_publish"
3394 value="1" <?php echo ($published == 1) ? 'checked' : ''; ?> />
3395 <label class="form-check-label"
3396 for="ays-publish"> <?php echo esc_html__('Published', "poll-maker"); ?> </label>
3397 </div>
3398 <div class="form-check form-check-inline">
3399 <input type="radio" id="ays-unpublish" name="ays_publish"
3400 value="0" <?php echo ($published == 0) ? 'checked' : ''; ?> />
3401 <label class="form-check-label"
3402 for="ays-unpublish"> <?php echo esc_html__('Unpublished', "poll-maker"); ?> </label>
3403 </div>
3404 </div>
3405 </div>
3406 </div>
3407 <hr>
3408 <div class='form-group row'>
3409 <div class="col-sm-3">
3410 <label for='ays-poll-category'>
3411 <?php echo esc_html__('Categories', "poll-maker"); ?>
3412 <a class="ays_help" data-toggle="tooltip"
3413 data-placement="top"
3414 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"); ?>">
3415 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3416 </a>
3417 </label>
3418 </div>
3419 <div class="col-sm-9">
3420 <?php if (!empty($categories)): ?>
3421 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3422 data-placeholder='<?php echo esc_html__("Select category", "poll-maker") ?>'>
3423 <?php
3424 foreach ( $categories as $cat ) {
3425 ?>
3426 <option value="<?php echo esc_attr($cat['id']); ?>" <?php echo in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3427 <?php echo esc_html($cat['title']); ?>
3428 </option>
3429 <?php }
3430 ?>
3431 </select>
3432 <div class="ays_poll_small_hint_text_for_message_variables" style="margin-top: 5px;">
3433 <span>
3434 <?php
3435 echo (sprintf(
3436 /* translators: %s: opening and closing <a> HTML code */
3437 wp_kses_post(__('Create a new category %s here %s', 'poll-maker')),
3438 '<a href="'. esc_url( $poll_category_page_url ) .'" target="_blank">',
3439 '</a>'
3440 ));
3441 ?>
3442 </span>
3443 </div>
3444 <?php else: ?>
3445 <a href="?page=poll-maker-ays-cats&action=add"><?php echo esc_html__("Create category", "poll-maker") ?></a>
3446 <?php endif; ?>
3447 </div>
3448 </div>
3449 <hr>
3450 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3451 <div class="form-group row ays_toggle_parent">
3452 <div class="col-sm-3">
3453 <label for="ays_add_post_for_poll">
3454 <?php echo esc_html__('Create post for poll', "poll-maker")?>
3455 <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")?>">
3456 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3457 </a>
3458 </label>
3459 </div>
3460 <div class="col-sm-1">
3461 <input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/>
3462 </div>
3463 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3464 <div class="form-group row">
3465 <div class="col-sm-4">
3466 <label for="ays_add_postcat_for_poll">
3467 <?php echo esc_html__('Choose Post Categories', "poll-maker")?>
3468 <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")?>">
3469 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3470 </a>
3471 </label>
3472 </div>
3473 <div class="col-sm-8">
3474 <div class="input-group">
3475 <select name="ays_add_postcat_for_poll[]"
3476 id="ays_add_postcat_for_poll"
3477 class="apm-cat-select2"
3478 multiple>
3479 <?php
3480
3481 foreach ($cat_list as $cat) {
3482 echo "<option value='" . wp_kses_post($cat->cat_ID) . "' >" . wp_kses_post($cat->name) . "</option>";
3483 }
3484 ?>
3485 </select>
3486 </div>
3487 </div>
3488 </div>
3489 </div>
3490 </div> <!-- Create post for poll -->
3491 <hr/>
3492 <?php else: ?>
3493 <div class="form-group row">
3494 <div class="col-sm-3">
3495 <label for="ays_add_post_for_poll">
3496 <?php echo esc_html__('WP Post', "poll-maker")?>
3497 <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")?>">
3498 <i class="ays_fa ays_fa_info_circle"></i>
3499 </a>
3500 </label>
3501 </div>
3502 <div class="col-sm-8" style="margin-left: 15px;">
3503 <div class="row">
3504 <div style="margin-right: 10px;">
3505 <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>
3506 </div>
3507 <div>
3508 <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>
3509 </div>
3510 </div>
3511 </div>
3512 <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo esc_attr($post_id); ?>">
3513 </div>
3514 <hr>
3515 <?php endif; ?>
3516 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3517 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3518 <div class="pro_features" style="justify-content:flex-end;">
3519 </div>
3520 <div class="form-group row">
3521 <div class="col-sm-3">
3522 <label for="ays_poll_enable_copy_protection">
3523 <?php echo esc_html__('Enable copy protection',"poll-maker"); ?>
3524 <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"); ?>">
3525 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3526 </a>
3527 </label>
3528 </div>
3529 <div class="col-sm-9">
3530 <input type="checkbox" class="ays-enable-timer1" />
3531 </div>
3532 </div>
3533 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3534 <div class="ays-poll-new-upgrade-button-box">
3535 <div>
3536 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3537 <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">
3538 </div>
3539 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3540 </div>
3541 </a>
3542 </div>
3543 </div>
3544 <hr/>
3545 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3546 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3547 <div class="pro_features" style="justify-content:flex-end;">
3548 </div>
3549 <div class="form-group row">
3550 <div class="col-sm-3">
3551 <label for="ays_poll_question_text_to_speech">
3552 <?php echo esc_html__('Enable text to speech',"poll-maker")?>
3553 <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")?>">
3554 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3555 </a>
3556 </label>
3557 </div>
3558 <div class="col-sm-9">
3559 <input type="checkbox" class="ays-enable-timer1"
3560 name="ays_poll_question_text_to_speech"
3561 value="on"/>
3562 </div>
3563 </div>
3564 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3565 <div class="ays-poll-new-upgrade-button-box">
3566 <div>
3567 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3568 <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">
3569 </div>
3570 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3571 </div>
3572 </a>
3573 </div>
3574 </div> <!-- Questions text to speech -->
3575 <hr>
3576 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3577 <div class="col-sm-3">
3578 <label for='ays_poll_allow_multivote'>
3579 <?php echo esc_html__('Allow multivote', "poll-maker"); ?>
3580 <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"); ?>">
3581 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3582 </a>
3583 </label>
3584 </div>
3585 <div class="col-sm-1">
3586 <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; ?>>
3587 </div>
3588 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="<?php echo esc_attr($poll_enable_multivote_answer) ? '' : 'display: none'; ?>">
3589 <div class="row">
3590 <div class="col-sm-3">
3591 <label for='ays_poll_multivote_min_count'>
3592 <?php echo esc_html__('Min', "poll-maker"); ?>
3593 <a class="ays_help"
3594 data-toggle="tooltip"
3595 data-placement="top"
3596 title="<?php echo esc_html__("Indicate the minimum count of answers.", "poll-maker"); ?>">
3597 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3598 </a>
3599 </label>
3600 </div>
3601 <div class="col-sm-9">
3602 <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; ?>">
3603 </div>
3604 </div>
3605 <hr>
3606 <div class="row">
3607 <div class="col-sm-3">
3608 <label for='ays_poll_multivote_count'>
3609 <?php echo esc_html__('Max', "poll-maker"); ?>
3610 <a class="ays_help"
3611 data-toggle="tooltip"
3612 data-placement="top"
3613 title="<?php echo esc_html__("Indicate the maximum count of answers.", "poll-maker"); ?>">
3614 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3615 </a>
3616 </label>
3617 </div>
3618 <div class="col-sm-9">
3619 <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; ?>">
3620 </div>
3621 </div>
3622 </div>
3623 </div>
3624 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3625 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3626 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3627 <div class="pro_features" style="justify-content:flex-end;">
3628 </div>
3629 <div class="form-group row">
3630 <div class="col-sm-3">
3631 <label for="ays-poll-allow-edit">
3632 <?php echo esc_html__('Edit previous submission', "poll-maker") ?>
3633 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
3634 data-placement="top"
3635 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"); ?>">
3636 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3637 </a>
3638 </label>
3639 </div>
3640 <div class="col-sm-9">
3641 <input type="checkbox" class="ays-enable-timer1"
3642 name="ays_edit_previous_submission"
3643 value="on"/>
3644 </div>
3645 </div>
3646 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3647 <div class="ays-poll-new-upgrade-button-box">
3648 <div>
3649 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3650 <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">
3651 </div>
3652 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3653 </div>
3654 </a>
3655 </div>
3656 </div>
3657 <hr>
3658 <div class="form-group row">
3659 <div class="col-sm-3">
3660 <label for='show-title'>
3661 <?php echo esc_html__('Show Title', "poll-maker"); ?>
3662 <a class="ays_help" data-toggle="tooltip"
3663 data-placement="top"
3664 title="<?php echo esc_html__("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3665 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3666 </a>
3667 </label>
3668 </div>
3669 <div class="col-sm-9">
3670 <input type="checkbox" name="show_title" id="show-title"
3671 value="show" <?php echo $poll['show_title'] ? 'checked' : ''; ?>>
3672 </div>
3673 </div>
3674 <hr>
3675 <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' ?>" >
3676 <div class="col-sm-3">
3677 <label>
3678 <?php echo esc_html__('Alignment', "poll-maker"); ?>
3679 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3680 title="<?php echo esc_html__('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3681 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3682 </a>
3683 </label>
3684 </div>
3685 <div class="col-sm-9">
3686 <div class="d-flex">
3687 <div class="form-check form-check-inline">
3688 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3689 value="ltr" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3690 <label class="form-check-label"
3691 for="apm-dir-ltr"> <?php echo esc_html__('Left', "poll-maker"); ?> </label>
3692 </div>
3693 <div class="form-check form-check-inline">
3694 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3695 value="center" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3696 <label class="form-check-label"
3697 for="apm-dir-center"> <?php echo esc_html__('Center', "poll-maker"); ?> </label>
3698 </div>
3699 <div class="form-check form-check-inline">
3700 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3701 value="rtl" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3702 <label class="form-check-label"
3703 for="apm-dir-rtl"> <?php echo esc_html__('Right', "poll-maker"); ?> </label>
3704 </div>
3705 </div>
3706 </div>
3707 </div>
3708 <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' ?>" >
3709 <div class="form-group row">
3710 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3711 <div class="pro_features pro_features_popup">
3712 <div class="pro-features-popup-conteiner">
3713 <div class="pro-features-popup-title">
3714 <?php echo esc_html__("Allow Anonymity", "poll-maker"); ?>
3715 </div>
3716 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3717 <p>
3718 <?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"); ?>
3719 </p>
3720 </div>
3721 <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 ); ?>">
3722 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3723 </div>
3724 </div>
3725 </div>
3726 <div class="pro_features" style="justify-content:flex-end;">
3727 </div>
3728 <div class="form-group row">
3729 <div class="col-sm-3">
3730 <label for='ays-poll-allow-anonymity'>
3731 <?php echo esc_html__('Allow anonymity', "poll-maker"); ?>
3732 <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"); ?>">
3733 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3734 </a>
3735 </label>
3736 </div>
3737 <div class="col-sm-9">
3738 <input type="checkbox" name="ays_allow_anonymity"
3739 value="1" >
3740 </div>
3741 </div>
3742 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3743 <div class="ays-poll-new-upgrade-button-box">
3744 <div>
3745 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3746 <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">
3747 </div>
3748 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3749 </div>
3750 </a>
3751 <div class="ays-poll-new-watch-video-button-box">
3752 <div>
3753 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
3754 <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">
3755 </div>
3756 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
3757 </div>
3758 </div>
3759 </div>
3760 <hr>
3761 <div class="form-group row">
3762 <div class="col-sm-3">
3763 <label for='ays_poll_change_creation_date'>
3764 <?php echo esc_html__('Change current poll creation date', "poll-maker"); ?>
3765 <a class="ays_help" data-toggle="tooltip"
3766 data-placement="top"
3767 title="<?php echo esc_html__("Choose your preferred creation date.", "poll-maker"); ?>">
3768 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3769 </a>
3770 </label>
3771 </div>
3772 <div class="col-sm-9" style="display: inherit;">
3773 <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"
3774 value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3775 <div class="input-group-append" style="display: block">
3776 <label for="ays_poll_change_creation_date" class="input-group-text">
3777 <span><i class="ays_fa ays_fa_calendar"></i></span>
3778 </label>
3779 </div>
3780 </div>
3781 </div>
3782 <hr>
3783 <div class="form-group row">
3784 <div class="col-sm-3">
3785 <label for="ays_poll_create_author">
3786 <?php echo esc_html__('Change the author of the current poll', "poll-maker"); ?>
3787 <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"); ?>">
3788 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3789 </a>
3790 </label>
3791 </div>
3792 <div class="col-sm-9">
3793 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3794 <option value=""><?php echo esc_html__('Select User', "poll-maker")?></option>
3795 <?php
3796 $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;
3797 $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) ) : '';
3798 $selected = '';
3799 ?>
3800 <option value="<?php echo esc_attr($poll_user_id);?>" selected>
3801 <?php echo esc_html($poll_user_display_name); ?>
3802 </option>
3803 </select>
3804 </div>
3805 </div> <!-- Change the author of the current poll -->
3806 <hr/>
3807 <!-- Poll Main URL Start -->
3808 <div class="form-group row">
3809 <div class="col-sm-3">
3810 <label for="ays_poll_main_url">
3811 <?php echo esc_html__('Poll main URL', "poll-maker")?>
3812 <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");
3813 ?>">
3814 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3815 </a>
3816 </label>
3817 </div>
3818 <div class="col-sm-9">
3819 <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); ?>">
3820 </div>
3821 </div>
3822 <!-- Poll Main URL End -->
3823 <hr>
3824 <div class="form-group row">
3825 <div class="col-sm-3">
3826 <label for='show-poll-create-dates'>
3827 <?php echo esc_html__('Show creation date', "poll-maker"); ?>
3828 <a class="ays_help" data-toggle="tooltip"
3829 data-placement="top"
3830 title="<?php echo esc_html__("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3831 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3832 </a>
3833 </label>
3834 </div>
3835 <div class="col-sm-9">
3836 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3837 value="1" <?php echo esc_attr($show_create_date) ? 'checked' : '' ?> >
3838 </div>
3839 </div>
3840 <hr>
3841 <div class="form-group row">
3842 <div class="col-sm-3">
3843 <label for='show-poll-author'>
3844 <?php echo esc_html__('Show author', "poll-maker"); ?>
3845 <a class="ays_help" data-toggle="tooltip"
3846 data-placement="top"
3847 title="<?php echo esc_html__("Enable to show the author inside the poll.", "poll-maker"); ?>">
3848 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3849 </a>
3850 </label>
3851 </div>
3852 <div class="col-sm-9">
3853 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3854 value="1" <?php echo esc_attr($show_author) ? 'checked' : '' ?> >
3855 </div>
3856 </div>
3857 <hr>
3858 <div class="form-group row">
3859 <div class="col-sm-3">
3860 <label for="schedule_the_poll">
3861 <?php echo esc_html__('Schedule', "poll-maker"); ?>
3862 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3863 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") ?>">
3864 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3865 </a>
3866 </label>
3867 </div>
3868 <div class="col-sm-1">
3869 <input type="checkbox"
3870 id="schedule_the_poll"
3871 class="active_date_check"
3872 name="active_date_check" <?php echo (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3873 </div>
3874 <div class="col-sm-8">
3875 <div class="row">
3876 <div class="col-sm-12 active_date ays_divider_left"
3877 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3878 <!-- -1- -->
3879 <div class="form-group row">
3880 <div class="col-sm-3">
3881 <label class="form-check-label" for="ays-active"> <?php echo esc_html__('Start date:', "poll-maker"); ?> </label>
3882 </div>
3883 <div class="col-sm-9">
3884 <div class="input-group mb-3">
3885 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
3886 value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3887 <div class="input-group-append">
3888 <label for="ays-active" class="input-group-text">
3889 <span><i class="ays_fa ays_fa_calendar"></i></span>
3890 </label>
3891 </div>
3892 </div>
3893 </div>
3894 </div>
3895 <!-- -2- -->
3896 <div class="form-group row">
3897 <div class="col-sm-3">
3898 <label class="form-check-label" for="ays-deactive"> <?php echo esc_html__('End date:', "poll-maker"); ?> </label>
3899 </div>
3900 <div class="col-sm-9">
3901 <div class="input-group mb-3">
3902 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
3903 value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3904 <div class="input-group-append">
3905 <label for="ays-deactive" class="input-group-text">
3906 <span><i class="ays_fa ays_fa_calendar"></i></span>
3907 </label>
3908 </div>
3909 </div>
3910 </div>
3911 </div>
3912 <!-- ////////// -->
3913 <hr>
3914 <div class="form-group row">
3915 <div class="col-sm-3">
3916 <label for='ays_poll_show_timer'>
3917 <?php echo esc_html__('Show timer', "poll-maker"); ?>
3918 <a class="ays_help" data-toggle="tooltip"
3919 data-placement="top"
3920 title="<?php echo esc_html__("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
3921 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3922 </a>
3923 </label>
3924 </div>
3925 <div class="col-sm-1">
3926 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
3927 value="1" <?php echo $schedule_show_timer ? 'checked' : '' ?> >
3928 </div>
3929 <div class="col-sm-8">
3930 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3931 <div class="d-flex">
3932 <div class="form-check form-check-inline">
3933 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
3934 value="countdown" <?php echo $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
3935 <label class="form-check-label"
3936 for="show_time_countdown"> <?php echo esc_html__('Show countdown', "poll-maker"); ?> </label>
3937 </div>
3938 <div class="form-check form-check-inline">
3939 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
3940 value="enddate" <?php echo $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
3941 <label class="form-check-label"
3942 for="show_time_enddate"> <?php echo esc_html__('Show end date', "poll-maker"); ?> </label>
3943 </div>
3944 </div>
3945 <hr>
3946 <div class='form-group row'>
3947 <div class='col-sm-5'>
3948 <label class="form-check-label" for="show_bottom_timer">
3949 <?php echo esc_html__(' Show timer at the bottom', "poll-maker"); ?>
3950 <a class="ays_help" data-toggle="tooltip"
3951 data-placement="top"
3952 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"); ?>">
3953 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3954 </a>
3955 </label>
3956 </div>
3957 <div class='col-sm-7'>
3958 <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?php echo $show_bottom_timer == true ? 'checked' : ''; ?> >
3959 </div>
3960 </div>
3961 </div>
3962 </div>
3963 </div>
3964 <hr>
3965 <div class="form-group row">
3966 <div class="col-sm-3">
3967 <label class="form-check-label"
3968 for="active_date_message"><?php echo esc_html__("Pre start message:", "poll-maker") ?></label>
3969 </div>
3970 <div class="col-sm-9">
3971 <div class="editor">
3972 <?php
3973 $content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']);
3974 $editor_id = 'active_date_message_soon';
3975 $settings = array(
3976 'editor_height' => $poll_wp_editor_height,
3977 'textarea_name' => 'active_date_message_soon',
3978 'editor_class' => 'ays-textarea',
3979 'media_elements' => false
3980 );
3981 wp_editor($content, $editor_id, $settings);
3982 ?>
3983 </div>
3984 </div>
3985 </div>
3986 <hr>
3987 <!-- -3- -->
3988 <div class="form-group row">
3989 <div class="col-sm-3">
3990 <label class="form-check-label"
3991 for="active_date_message"><?php echo esc_html__("Expiration message:", "poll-maker") ?></label>
3992 </div>
3993 <div class="col-sm-9">
3994 <div class="editor">
3995 <?php
3996 $content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']);
3997 $editor_id = 'active_date_message';
3998 $settings = array(
3999 'editor_height' => $poll_wp_editor_height,
4000 'textarea_name' => 'active_date_message',
4001 'editor_class' => 'ays-textarea',
4002 'media_elements' => false
4003 );
4004 wp_editor($content, $editor_id, $settings);
4005 ?>
4006 </div>
4007 </div>
4008 </div>
4009 <hr>
4010 <div class="form-group row">
4011 <div class="col-sm-3">
4012 <label for='show_result_btn_schedule'>
4013 <?php echo esc_html__('Show result button', "poll-maker"); ?>
4014 <a class="ays_help" data-toggle="tooltip"
4015 data-placement="top"
4016 title="<?php echo esc_html__("Enable to show the result button after the schedule.", "poll-maker"); ?>">
4017 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4018 </a>
4019 </label>
4020 </div>
4021 <div class="col-sm-1">
4022 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
4023 value="1" <?php echo $showresbtnschedule ? 'checked' : '' ?> >
4024 </div>
4025 <div class="col-sm-8">
4026 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
4027 <div class="form-check form-check-inline">
4028 <label class="form-check-label">
4029 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
4030 <span>
4031 <?php echo esc_html__('With See Results button', "poll-maker"); ?>
4032 </span>
4033 </label>
4034 </div>
4035 <div class="form-check form-check-inline">
4036 <label class="form-check-label">
4037 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
4038 <span>
4039 <?php echo esc_html__('Without See Results button', "poll-maker"); ?>
4040 </span>
4041 </label>
4042 </div>
4043 </div>
4044 </div>
4045 </div>
4046 <hr>
4047 <div class="form-group row">
4048 <div class="col-sm-3">
4049 <label for='ays_show_poll_container'>
4050 <?php echo esc_html__("Don't show poll", "poll-maker"); ?>
4051 <a class="ays_help" data-toggle="tooltip"
4052 data-placement="top"
4053 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"); ?>">
4054 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4055 </a>
4056 </label>
4057 </div>
4058 <div class="col-sm-9">
4059 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
4060 value="on" <?php echo esc_attr($poll_check_exp_cont); ?> >
4061 </div>
4062 </div>
4063 </div>
4064 </div>
4065 </div>
4066 </div>
4067 <hr>
4068 <div class="form-group row ays_toggle_parent">
4069 <div class="col-sm-3">
4070 <label for='ays-poll-allow-not-vote'>
4071 <?php echo esc_html__('Allow not to vote', "poll-maker"); ?>
4072 <a class="ays_help"
4073 data-toggle="tooltip"
4074 data-placement="top"
4075 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"); ?>">
4076 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4077 </a></label>
4078 </div>
4079 <div class="col-sm-1">
4080 <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' : ''; ?>>
4081 </div>
4082 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
4083 <div class="row">
4084 <div class="col-sm-3 ays_divider_left">
4085 <label for="ays-poll-btn-text">
4086 <?php echo esc_html__("Results button text", "poll-maker"); ?>
4087 <a class="ays_help"
4088 data-toggle="tooltip"
4089 data-placement="top"
4090 title="<?php echo esc_html__("Write the text of the button, which shows results.", "poll-maker"); ?>">
4091 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4092 </a>
4093 </label>
4094 </div>
4095 <div class="col-sm-9">
4096 <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"); ?>"/>
4097 </div>
4098 </div>
4099 </div>
4100 </div>
4101 <hr>
4102 <div class="form-group row">
4103 <div class="col-sm-3" style="padding-right: 0px;">
4104 <label for="ays_enable_pass_count">
4105 <?php echo esc_html__('Show passed users count', "poll-maker") ?>
4106 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4107 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") ?>">
4108 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4109 </a>
4110 </label>
4111 </div>
4112 <div class="col-sm-9">
4113 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
4114 value="on" <?php echo ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
4115 </div>
4116 </div>
4117 <hr>
4118 <div class="form-group row ays_toggle_parent">
4119 <div class="col-sm-3">
4120 <label for="ays_redirect_after_vote">
4121 <?php echo esc_html__('Redirect after voting', "poll-maker"); ?>
4122 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4123 title="<?php echo esc_html__('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
4124 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4125 </a>
4126 </label>
4127 </div>
4128 <div class="col-sm-1">
4129 <input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> />
4130 </div>
4131 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>">
4132 <div class="row">
4133 <div class="col-sm-12 ays_divider_left">
4134 <div class="form-group row">
4135 <div class="col-sm-3">
4136 <label for="redirection_url">
4137 <?php echo esc_html__('URL', "poll-maker"); ?>
4138 <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"); ?>">
4139 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4140 </a>
4141 </label>
4142 </div>
4143 <div class="col-sm-9">
4144 <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">
4145 </div>
4146 </div>
4147 <hr>
4148 <div class="form-group row">
4149 <div class="col-sm-3">
4150 <label for="redirectio_delay">
4151 <?php echo esc_html__('Delay', "poll-maker"); ?>
4152 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4153 title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
4154 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4155 </a>
4156 </label>
4157 </div>
4158 <div class="col-sm-9">
4159 <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">
4160 </div>
4161 </div>
4162 </div>
4163 </div>
4164
4165 </div>
4166 </div>
4167 <hr/>
4168 <div class="form-group row">
4169 <div class="col-sm-3">
4170 <label for="randomize-answers">
4171 <?php echo esc_html__('Randomize Answers', "poll-maker"); ?>
4172 <a class="ays_help" data-toggle="tooltip"
4173 data-placement="top"
4174 title="<?php echo esc_html__("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
4175 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4176 </a>
4177 </label>
4178 </div>
4179 <div class="col-sm-9">
4180 <input type="checkbox"
4181 name="randomize_answers"
4182 id="randomize-answers"
4183 value="on"
4184 <?php echo $randomize_answers ? 'checked' : ''; ?>
4185 />
4186 </div>
4187 </div>
4188 <hr/>
4189 <div class="form-group row ays_toggle_parent">
4190 <div class="col-sm-3" style="padding-right: 0px;">
4191 <label for="ays_enable_asnwers_sound">
4192 <?php echo esc_html__('Enable answers sound', "poll-maker")?>
4193 <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")?>">
4194 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4195 </a>
4196 </label>
4197 </div>
4198 <div class="col-sm-1">
4199 <input type="checkbox" id="ays_enable_asnwers_sound"
4200 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
4201 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
4202 </div>
4203 <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo esc_attr($enable_asnwers_sound) ? '' : 'display:none;' ?>">
4204 <?php if($answers_sound_status): ?>
4205 <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>
4206 <?php else: ?>
4207 <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>
4208 <?php endif; ?>
4209 </div>
4210 </div>
4211 <hr/>
4212 <div class="form-group row">
4213 <div class="col-3">
4214 <label for="ays-poll-reason">
4215 <?php echo esc_html__('Vote Reason', "poll-maker"); ?>
4216 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4217 title="<?php echo esc_html__("Allow users to add their vote reason", "poll-maker"); ?>">
4218 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4219 </a>
4220 </label>
4221 </div>
4222 <div class="col-9">
4223 <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo esc_attr($poll_vote_reason); ?>>
4224 </div>
4225 </div>
4226 <hr/>
4227 <div class="form-group row ays_toggle_parent">
4228 <div class="col-sm-3">
4229 <label for="ays_enable_vote_button">
4230 <?php echo esc_html__('Enable Vote button', "poll-maker") ?>
4231 <a class="ays_help" data-toggle="tooltip"
4232 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") ?>">
4233 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4234 </a>
4235 </label>
4236 </div>
4237 <div class="col-sm-1">
4238 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4239 value="1" <?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4240 </div>
4241 <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;' : '' ?>">
4242 <div class="row">
4243 <div class="col-sm-3 ays_divider_left">
4244 <label for="ays-poll-btn-text_vote">
4245 <?php echo esc_html__("Vote button text", "poll-maker"); ?>
4246 <a class="ays_help"
4247 data-toggle="tooltip"
4248 data-placement="top"
4249 title="<?php echo esc_html__("Write the text of the vote button.", "poll-maker"); ?>">
4250 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4251 </a>
4252 </label>
4253 </div>
4254 <div class="col-sm-9">
4255 <input type="text" class="ays-text-input ays-text-input-short"
4256 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4257 value="<?php echo esc_attr(stripslashes($options['btn_text'])) ?>"/>
4258 </div>
4259 </div>
4260 </div>
4261 </div>
4262 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4263 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4264 <div class="col-sm-3">
4265 <label for="ays_enable_view_more_button">
4266 <?php echo esc_html__('Enable View more button', "poll-maker") ?>
4267 <a class="ays_help" data-toggle="tooltip"
4268 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"); ?>">
4269 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4270 </a>
4271 </label>
4272 </div>
4273 <div class="col-sm-1">
4274 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_view_more_button" name="ays_enable_view_more_button"
4275 value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> />
4276 </div>
4277 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4278 <div class="form-group row">
4279 <div class="col-sm-3">
4280 <label for="ays_poll_view_more_button_count">
4281 <?php echo esc_html__("Count", "poll-maker"); ?>
4282 <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"); ?>">
4283 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4284 </a>
4285 </label>
4286 </div>
4287 <div class="col-sm-9">
4288 <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; ?>"/>
4289 </div>
4290 </div>
4291 </div>
4292 </div>
4293 <hr>
4294 <div class="form-group row">
4295 <div class="col-sm-3">
4296 <label for="ays_answers_sort_select">
4297 <?php echo esc_html__('Answers sorting', "poll-maker") ?>
4298 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4299 title="<?php
4300 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") .
4301 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4302 "<li>".esc_html__('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4303 "<li>".esc_html__('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4304 "<li>".esc_html__('Most voted – by most votes', "poll-maker") ."</li>".
4305 "<li>".esc_html__('Less voted - by less votes', "poll-maker") ."</li>".
4306 "<li>".esc_html__('Default - upon your preferences', "poll-maker") ."</li>".
4307 "</ul>";
4308 ?>">
4309 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4310 </a>
4311 </label>
4312 </div>
4313 <div class="col-sm-9">
4314 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4315 <option value="default" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo esc_html__('Default', "poll-maker") ?></option>
4316 <option value="ascending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo esc_html__('Ascending', "poll-maker") ?></option>
4317 <option value="descending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo esc_html__('Descending', "poll-maker") ?></option>
4318 <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>
4319 <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>
4320 </select>
4321 </div>
4322 </div>
4323 <hr>
4324 <div class="form-group row">
4325 <div class="col-sm-3">
4326 <label for="ays_poll_aysDropdown">
4327 <?php echo esc_html__('Answers numbering', "poll-maker"); ?>
4328 <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"); ?>">
4329 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4330 </a>
4331 </label>
4332 </div>
4333 <div class="col-sm-9">
4334 <select class="ays_poll_aysDropdown" id="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4335 <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo esc_html__( "None", "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 == "1)" ? "selected" : ""; ?> value="1)"><?php echo esc_html__( "1)", "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 == "a)" ? "selected" : ""; ?> value="a)"><?php echo esc_html__( "a)", "poll-maker"); ?></option>
4342 <option <?php echo $show_answers_numbering == "VI." ? "selected" : ""; ?> value="VI."><?php echo esc_html__( "VI.", "poll-maker"); ?></option>
4343 </select>
4344 </div>
4345 </div> <!-- Show answers numbering -->
4346 <hr>
4347 <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;' : ''; ?>">
4348 <div class="col-sm-3">
4349 <label for="ays_show_votes_before_voting">
4350 <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4351 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4352 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") ?>">
4353 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4354 </a>
4355 </label>
4356 </div>
4357 <div class="col-sm-1">
4358 <input type="checkbox" class="ays_toggle_checkbox" id="ays_show_votes_before_voting" name="ays_show_votes_before_voting"
4359 value="on" <?php echo ($show_votes_before_voting) ? 'checked' : ''; ?> />
4360 </div>
4361 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($show_votes_before_voting) ? '' : 'display: none'; ?>">
4362 <div class="d-flex">
4363 <div class="form-check-inline ays_poll_loader">
4364 <label class="form-check-label">
4365 <input type="radio" name="ays_show_votes_before_voting_by" value="by_count" <?php echo ($show_votes_before_voting_by == 'by_count') ? 'checked' : ''; ?> />
4366 <span><?= __('By count', "poll-maker"); ?></span>
4367 </label>
4368 </div>
4369 <div class="form-check-inline ays_poll_loader">
4370 <label class="form-check-label">
4371 <input type="radio" name="ays_show_votes_before_voting_by" value="by_percentage" <?php echo ($show_votes_before_voting_by == 'by_percentage') ? 'checked' : ''; ?> />
4372 <span><?= __('By percentage', "poll-maker"); ?></span>
4373 </label>
4374 </div>
4375 </div>
4376 </div>
4377 </div>
4378 </div>
4379 </div>
4380 <div class="only_pro" style="position: relative; display: inline-block">
4381 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4382 <div class="pro-features-popup-conteiner">
4383 <div class="pro-features-popup-title">
4384 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4385 </div>
4386 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4387 <p>
4388 <?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"); ?>
4389 </p>
4390 <p>
4391 <?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"); ?>
4392 </p>
4393 </div>
4394 <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 ); ?>">
4395 <?php echo esc_html__("Pricing", "poll-maker"); ?>
4396 </div>
4397 </div>
4398 </div>
4399 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
4400 <span class="ays_save_as_default_content_for_mobile">
4401 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
4402 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
4403 </a>
4404 <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" ); ?>">
4405 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4406 </a>
4407 </span>
4408 </div>
4409 </div>
4410 </div>
4411 <div id="tab4" class="ays-poll-tab-content <?php echo $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4412 <div class="ays-poll-accordion-options-main-container">
4413 <div class="ays-poll-accordion-header">
4414 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
4415 <p class="ays-subtitle"><?php echo esc_html__('Limitation of Users', "poll-maker"); ?></p>
4416 </div>
4417 <hr class="ays-poll-bolder-hr"/>
4418 <div class="ays-poll-accordion-body">
4419 <div class="form-group row ays_toggle_parent">
4420 <div class="col-sm-3">
4421 <label for="apm_limit_users">
4422 <?php echo esc_html__('Maximum number of attempts per user', "poll-maker"); ?>
4423 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4424 title="<?php echo esc_html__('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4425 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4426 </a>
4427 </label>
4428 </div>
4429 <div class="col-sm-1">
4430 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4431 value="on" <?php echo $options['limit_users'] ? 'checked' : ''; ?> />
4432 </div>
4433 <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo $options['limit_users'] ? '' : 'display: none;'; ?>">
4434 <div class="ays-limitation-options">
4435 <!-- Limitation method -->
4436 <div class="form-group row">
4437 <div class="col-sm-3">
4438 <label for="ays_redirect_method">
4439 <?php echo esc_html__('Detects users by', "poll-maker"); ?>
4440 <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" ); ?>
4441 <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>
4442 <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>
4443 <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>
4444 <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>"
4445 >
4446 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4447 </a>
4448 </label>
4449 </div>
4450 <div class="col-sm-9">
4451 <div class="ays-poll-sel-fields d-flex p-0">
4452 <div class="ays-poll-check-box mr-2">
4453 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4454 value="ip" <?php echo (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4455 <label class="form-check-label"
4456 for="ays_limit_method_ip"><?php echo esc_html__('IP', "poll-maker"); ?> </label>
4457 </div>
4458 <div class="ays-poll-check-box mr-2">
4459 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4460 value="user" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4461 <label class="form-check-label"
4462 for="ays_limit_method_user"><?php echo esc_html__('User ID', "poll-maker"); ?> </label>
4463 </div>
4464 <div class="ays-poll-check-box mr-2">
4465 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4466 value="cookie" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4467 <label class="form-check-label"
4468 for="ays_limit_method_cookie"><?php echo esc_html__('Cookie', "poll-maker"); ?> </label>
4469 </div>
4470 <div class="ays-poll-check-box mr-2">
4471 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4472 value="cookie_ip" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4473 <label class="form-check-label"
4474 for="ays_limit_method_cookie_ip"><?php echo esc_html__('Cookie and IP', "poll-maker"); ?> </label>
4475 </div>
4476 </div>
4477 </div>
4478 </div>
4479 <hr>
4480 <!-- Limitation message -->
4481 <div class="form-group row">
4482 <div class="col-sm-3">
4483 <label for="ays_limitation_message">
4484 <?php echo esc_html__('Message', "poll-maker"); ?>
4485 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4486 title="<?php echo esc_html__('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4487 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4488 </a>
4489 </label>
4490 </div>
4491 <div class="col-sm-9">
4492 <?php
4493 $content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']);
4494 $editor_id = 'ays_limitation_message';
4495 $settings = array(
4496 'editor_height' => $poll_wp_editor_height,
4497 'textarea_name' => 'ays_limitation_message',
4498 'editor_class' => 'ays-textarea',
4499 'media_elements' => false
4500 );
4501 wp_editor($content, $editor_id, $settings);
4502 ?>
4503 </div>
4504 </div>
4505 <hr>
4506 <!-- Limitation redirect url -->
4507 <div class="form-group row">
4508 <div class="col-sm-3">
4509 <label for="ays_redirect_url">
4510 <?php echo esc_html__('Redirect URL', "poll-maker"); ?>
4511 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4512 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"); ?>">
4513 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4514 </a>
4515 </label>
4516 </div>
4517 <div class="col-sm-9">
4518 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4519 class="ays-text-input"
4520 value="<?php echo $options['redirect_url'] ?>"/>
4521 </div>
4522 </div>
4523 <hr>
4524 <!-- Limitation redirect delay -->
4525 <div class="form-group row">
4526 <div class="col-sm-3">
4527 <label for="ays_redirection_delay">
4528 <?php echo esc_html__('Redirect delay (sec)', "poll-maker"); ?>
4529 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4530 title="<?php echo esc_html__('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4531 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4532 </a>
4533 </label>
4534 </div>
4535 <div class="col-sm-9">
4536 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4537 class="ays-text-input"
4538 value="<?php echo $options['redirection_delay'] ?>"/>
4539 </div>
4540 </div>
4541 <hr>
4542 <div class="form-group row">
4543 <div class="col-sm-3">
4544 <label for="ays_see_result_show">
4545 <?php echo esc_html__('See results', "poll-maker"); ?>
4546 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4547 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" ); ?>
4548 <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>
4549 <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>">
4550 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4551 </a>
4552 </label>
4553 </div>
4554 <div class="col-sm-9">
4555 <div class="row">
4556 <div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;">
4557 <input type="checkbox" id="ays_see_result_show"
4558 name="ays_see_result_show"
4559 class="ays_poll_show_hide_button"
4560 value="on" <?php echo esc_attr($poll_see_result_button); ?>>
4561 </div>
4562
4563 <div class="col-sm-10" id="ays_poll_show_hide_button">
4564 <div class="row <?php echo esc_attr($poll_see_result_button_cont); ?>">
4565 <div class="col-sm-6">
4566 <div class="ays-poll-check-box d-flex align-items-center"
4567 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4568 <input type="radio"
4569 id="ays_see_result_button_show"
4570 name="ays_poll_see_result_show"
4571 class="ays_poll_show_hide_button mr-2"
4572 value="ays_see_result_button"
4573 <?php echo esc_attr($poll_see_result_botton_show) ?>>
4574 <label for="ays_see_result_button_show" class="form-check-label">
4575 <?php echo esc_html__('After clicking on the button', "poll-maker"); ?>
4576 </label>
4577 </div>
4578 </div>
4579 <div class="col-sm-6">
4580 <div class="ays-poll-check-box d-flex align-items-center"
4581 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4582 <input type="radio"
4583 id="ays_see_result_button_hide"
4584 name="ays_poll_see_result_show"
4585 class="ays_poll_show_hide_button mr-2"
4586 value="ays_see_result_immediately"
4587 <?php echo esc_attr($poll_see_result_immediately) ?>>
4588 <label for="ays_see_result_button_hide" class="form-check-label">
4589 <?php echo esc_html__('Directly', "poll-maker"); ?>
4590 </label>
4591 </div>
4592 </div>
4593
4594 </div>
4595 </div>
4596 </div>
4597 </div>
4598 </div>
4599 <hr>
4600 <div class="form-group row">
4601 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4602 <div class="pro_features" style="justify-content:flex-end;">
4603 </div>
4604 <div class="form-group row d-flex">
4605 <div class="col-sm-3">
4606 <label for="ays_attempts_count">
4607 <?php echo esc_html__('Attempts count', "poll-maker")?>
4608 <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")?>">
4609 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4610 </a>
4611 </label>
4612 </div>
4613 <div class="col-sm-9">
4614 <input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input">
4615 </div>
4616 </div>
4617 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4618 <div class="ays-poll-new-upgrade-button-box">
4619 <div>
4620 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4621 <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">
4622 </div>
4623 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4624 </div>
4625 </a>
4626 </div>
4627 </div>
4628 </div>
4629 </div>
4630 </div><!-- Maximum number of attempts per user -->
4631 <hr/>
4632 <div class="form-group row ays_toggle_parent">
4633 <div class="col-sm-3">
4634 <label for="ays_enable_logged_users">
4635 <?php echo esc_html__('Only for logged in users', "poll-maker"); ?>
4636 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4637 title="<?php echo esc_html__('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4638 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4639 </a>
4640 </label>
4641 </div>
4642 <div class="col-sm-1">
4643 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4644 value="on" <?php echo $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4645 </div>
4646 <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?php echo $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4647 <div class="form-group row">
4648 <div class="col-sm-3">
4649 <label for="ays_logged_in_message">
4650 <?php echo esc_html__('Message', "poll-maker"); ?>
4651 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4652 title="<?php echo esc_html__('Write the message for unauthorized users.', "poll-maker"); ?>">
4653 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4654 </a>
4655 </label>
4656 </div>
4657 <div class="col-sm-9">
4658 <?php
4659 $content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message'];
4660 $editor_id = 'ays_logged_in_message';
4661 $settings = array(
4662 'editor_height' => $poll_wp_editor_height,
4663 'textarea_name' => 'ays_enable_logged_users_message',
4664 'editor_class' => 'ays-textarea',
4665 'media_elements' => false
4666 );
4667 wp_editor($content, $editor_id, $settings);
4668 ?>
4669 </div>
4670 </div>
4671 <hr/>
4672 <div class="form-group row">
4673 <div class="col-sm-3">
4674 <label for="ays_show_login_form">
4675 <?php echo esc_html__('Show Login form', "poll-maker")?>
4676 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to show the login form.', "poll-maker")?>">
4677 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4678 </a>
4679 </label>
4680 </div>
4681 <div class="col-sm-9">
4682 <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' : ''; ?>/>
4683 </div>
4684 </div>
4685 </div>
4686 </div> <!-- Only for logged in users -->
4687 <hr/>
4688 <div class="form-group row ays_toggle_parent">
4689 <div class="col-sm-3">
4690 <label for="ays_enable_restriction_pass">
4691 <?php echo esc_html__('Only for selected user role', "poll-maker"); ?>
4692 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4693 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"); ?>">
4694 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4695 </a>
4696 </label>
4697 </div>
4698 <div class="col-sm-1">
4699 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4700 value="on" <?php echo (isset($options['enable_restriction_pass']) &&
4701 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4702 </div>
4703 <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;'; ?>">
4704 <div class="form-group row">
4705 <div class="col-sm-3">
4706 <label for="ays_users_roles">
4707 <?php echo esc_html__('User role', "poll-maker"); ?></label>
4708 </div>
4709 <div class="col-sm-9">
4710 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4711 <?php
4712 foreach ($ays_users_roles as $key => $user_role) {
4713 $selected_role = "";
4714 if(is_array($users_role)){
4715 if(in_array($user_role['name'], $users_role)){
4716 $selected_role = 'selected';
4717 }else{
4718 $selected_role = '';
4719 }
4720 }else{
4721 if($users_role == $user_role['name']){
4722 $selected_role = 'selected';
4723 }else{
4724 $selected_role = '';
4725 }
4726 }
4727 echo "<option value='" . esc_attr($user_role['name']) . "' " . esc_attr($selected_role) . ">" . esc_html($user_role['name']) . "</option>";
4728 }
4729 ?>
4730 </select>
4731 </div>
4732 </div>
4733 <hr>
4734 <div class="form-group row">
4735 <div class="col-sm-3">
4736 <label for="restriction_pass_message">
4737 <?php echo esc_html__('Message', "poll-maker"); ?>
4738 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4739 title="<?php echo esc_html__('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4740 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4741 </a>
4742 </label>
4743 </div>
4744 <div class="col-sm-9">
4745 <?php
4746 $content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']);
4747 $editor_id = 'restriction_pass_message';
4748 $settings = array(
4749 'editor_height' => $poll_wp_editor_height,
4750 'textarea_name' => 'restriction_pass_message',
4751 'editor_class' => 'ays-textarea',
4752 'media_elements' => false
4753 );
4754 wp_editor($content, $editor_id, $settings);
4755 ?>
4756 </div>
4757 </div>
4758 </div>
4759 </div> <!-- Only for selected user role -->
4760 <hr>
4761 <div class="form-group row ays_toggle_parent">
4762 <div class="col-sm-3">
4763 <label for="ays_poll_enable_password">
4764 <?php echo esc_html__('Password for passing Poll', "poll-maker")?>
4765 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose a password for users to pass the poll.' , "poll-maker")?>">
4766 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4767 </a>
4768 </label>
4769 </div>
4770 <div class="col-sm-1">
4771 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password"
4772 name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>>
4773 </div>
4774 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4775 <div class="form-group row">
4776 <div class="col-sm-3">
4777 <label for="ays_poll_password">
4778 <?php echo esc_html__('Password' , "poll-maker")?>
4779 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.' , "poll-maker")?>">
4780 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4781 </a>
4782 </label>
4783 </div>
4784 <div class="col-sm-9">
4785 <input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>">
4786 </div>
4787 </div>
4788 <hr>
4789 <div class="form-group row">
4790 <div class="col-sm-3">
4791 <label for="ays_poll_enable_password_visibility">
4792 <?php echo esc_html__('Enable toggle password visibility', "poll-maker"); ?>
4793 <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"); ?>">
4794 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4795 </a>
4796 </label>
4797 </div>
4798 <div class="col-sm-9">
4799 <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' : ''; ?>/>
4800 </div>
4801 </div>
4802 <hr>
4803 <div class="form-group row">
4804 <div class="col-sm-3">
4805 <label for="ays_poll_password">
4806 <?php echo esc_html__('Message', "poll-maker")?>
4807 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.', "poll-maker")?>">
4808 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4809 </a>
4810 </label>
4811 </div>
4812
4813 <div class="col-sm-9">
4814 <?php
4815 $content = $poll_password_message;
4816 $editor_id = 'ays-poll-password-message';
4817 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
4818 wp_editor($content, $editor_id, $settings);
4819 ?>
4820 </div>
4821 </div>
4822 </div>
4823 </div><!-- Password for passing Poll PRO Feautre-->
4824 <hr>
4825 <div class="form-group row">
4826 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4827 <div class="pro_features" style="justify-content:flex-end;">
4828 </div>
4829 <div class="form-group row ays_toggle_parent">
4830 <div class="col-sm-3">
4831 <label for="ays_enable_tackers_count">
4832 <?php echo esc_html__('Limitation count of takers', "poll-maker")?>
4833 <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")?>">
4834 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4835 </a>
4836 </label>
4837 </div>
4838 <div class="col-sm-1">
4839 <input type="checkbox" class="ays-enable-timer1"
4840 name="ays_enable_tackers_count" value="on">
4841 </div>
4842 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4843 <div class="form-group row">
4844 <div class="col-sm-3">
4845 <label for="ays_tackers_count">
4846 <?php echo esc_html__('Count', "poll-maker")?>
4847 <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")?>">
4848 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4849 </a>
4850 </label>
4851 </div>
4852 <div class="col-sm-9">
4853 <input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input"
4854 >
4855 </div>
4856 </div>
4857 </div>
4858 </div>
4859 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4860 <div class="ays-poll-new-upgrade-button-box">
4861 <div>
4862 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4863 <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">
4864 </div>
4865 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4866 </div>
4867 </a>
4868 </div>
4869 </div><!-- Limitation count of takers Poll PRO Feautre-->
4870 <hr>
4871 <div class="form-group row">
4872 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4873 <div class="pro_features" style="justify-content:flex-end;">
4874 </div>
4875 <div class="form-group row ays_toggle_parent">
4876 <div class="col-sm-3">
4877 <label for="ays_enable_vote_limitation">
4878 <?php echo esc_html__('Allow to vote once per session', "poll-maker")?>
4879 <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")?>">
4880 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4881 </a>
4882 </label>
4883 </div>
4884 <div class="col-sm-1">
4885 <input type="checkbox" class="ays-enable-timer1"
4886 name="ays_enable_vote_limitation" value="on" >
4887 </div>
4888 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4889 <div class="form-group row">
4890 <div class="col-sm-3">
4891 <label for="ays_vote_limitation">
4892 <?php echo esc_html__('Session Period', "poll-maker")?>
4893 <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")?>">
4894 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4895 </a>
4896 </label>
4897 </div>
4898 <div class="col-sm-7">
4899 <input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input">
4900
4901 </div>
4902 <div class="col-sm-2 ays_vote_limitation_time_period_box">
4903 <select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period">
4904 <option>Minute(s)
4905 </option>
4906 </select>
4907 </div>
4908 </div>
4909 <div class="form-group row d-flex w-100">
4910 <div class="col-sm-3">
4911 <label for="">
4912 <?php echo esc_html__('Message', "poll-maker"); ?>
4913 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4914 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"); ?>">
4915 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4916 </a>
4917 </label>
4918 </div>
4919 <div class="col-sm-9">
4920 <?php
4921 $editor_id = 'vote_limit_message';
4922 $settings = array(
4923 'editor_height' => 100,
4924 'textarea_name' => 'vote_limit_message',
4925 'editor_class' => 'ays-textarea',
4926 'media_elements' => false
4927 );
4928 wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings);
4929 ?>
4930 </div>
4931 </div>
4932 </div>
4933 </div>
4934 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4935 <div class="ays-poll-new-upgrade-button-box">
4936 <div>
4937 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4938 <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">
4939 </div>
4940 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4941 </div>
4942 </a>
4943 </div>
4944 </div> <!-- Allow to vote once per session PRO Feautre-->
4945 <hr>
4946 <div class="form-group row">
4947 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4948 <div class="pro_features" style="justify-content:flex-end;">
4949 </div>
4950 <div class="form-group row ays_toggle_parent">
4951 <div class="col-sm-3">
4952 <label for="enable_limit_by_country">
4953 <?php echo esc_html__('Limit by country', "poll-maker")?>
4954 <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")?>">
4955 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4956 </a>
4957 </label>
4958 </div>
4959 <div class="col-sm-1">
4960 <input type="checkbox" class="ays-enable-timer1"/>
4961 </div>
4962 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4963 <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>
4964 <option selected value="AD">Andorra</option>
4965 <option selected value="US">United States</option>
4966 <option selected value="GB">United Kingdom</option>
4967 <option selected value="FR">France</option>
4968 </select>
4969 </div>
4970 </div>
4971 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4972 <div class="ays-poll-new-upgrade-button-box">
4973 <div>
4974 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4975 <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">
4976 </div>
4977 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4978 </div>
4979 </a>
4980 </div>
4981 </div> <!-- Limit by country PRO Feautre -->
4982 <hr>
4983 </div>
4984 </div>
4985 <div class="only_pro" style="position: relative; display: inline-block">
4986 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4987 <div class="pro-features-popup-conteiner">
4988 <div class="pro-features-popup-title">
4989 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4990 </div>
4991 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4992 <p>
4993 <?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"); ?>
4994 </p>
4995 <p>
4996 <?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"); ?>
4997 </p>
4998 </div>
4999 <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 ); ?>">
5000 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5001 </div>
5002 </div>
5003 </div>
5004 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5005 <span class="ays_save_as_default_content_for_mobile">
5006 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5007 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5008 </a>
5009 <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" ); ?>">
5010 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5011 </a>
5012 </span>
5013 </div>
5014 </div>
5015 </div>
5016 <div id="tab5" class="ays-poll-tab-content <?php echo $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
5017 <div class="ays-poll-accordion-options-main-container">
5018 <div class="ays-poll-accordion-header">
5019 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5020 <p class="ays-subtitle"><?php echo esc_html__('User Data Settings', "poll-maker"); ?></p>
5021 </div>
5022 <hr class="ays-poll-bolder-hr"/>
5023 <div class="ays-poll-accordion-body">
5024 <div class="form-group row">
5025 <div class="col-sm-3">
5026 <label>
5027 <?php echo esc_html__('Information form title', "poll-maker"); ?>
5028 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5029 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"); ?>">
5030 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5031 </a>
5032 </label>
5033 </div>
5034 <div class="col-sm-9 ays_divider_left">
5035 <?php
5036 $content = stripslashes($options['info_form_title']);
5037 $editor_id = 'ays-poll-info-form-text';
5038 $settings = array(
5039 'editor_height' => $poll_wp_editor_height,
5040 'textarea_name' => 'ays-poll-info-form-text',
5041 'editor_class' => 'ays-textarea',
5042 'media_elements' => false
5043 );
5044 wp_editor($content, $editor_id, $settings);
5045 ?>
5046 </div>
5047 </div>
5048 <hr>
5049 <div class="form-group row ays_toggle_parent">
5050 <div class="col-sm-2">
5051 <label for='ays_poll_info_form'>
5052 <?php echo esc_html__('Enable Information Form', "poll-maker"); ?>
5053 <a class="ays_help" data-toggle="tooltip"
5054 data-placement="top"
5055 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"); ?>">
5056 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5057 </a>
5058 </label>
5059 </div>
5060 <div class="col-sm-1">
5061 <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' : ''; ?>>
5062 </div>
5063 <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' : ''; ?>">
5064 <div class="col-sm-7">
5065 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
5066 <?php echo esc_html__('Allow collecting information of logged in users', "poll-maker"); ?>
5067 <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")?>">
5068 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5069 </a>
5070 </label>
5071 <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; ?>>
5072 </div> <!-- Allow collecting information of logged in users -->
5073 </div>
5074 <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;"; ?>">
5075 <div>
5076 <label>
5077 <?php echo esc_html__('Form Fields', "poll-maker"); ?>
5078 <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"); ?>">
5079 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5080 </a>
5081 </label>
5082 <hr>
5083 </div>
5084 <div>
5085 <div class="ays-poll-sel-fields d-flex">
5086 <?php foreach ( $all_fields as $field ): ?>
5087 <div class="ays-poll-check-box mr-2">
5088 <input type="checkbox" name="ays-poll-form-fields[]" value="<?php echo $field['slug']; ?>" id="ays-poll-form-field-<?php echo $field['slug']; ?>"
5089 <?php echo (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
5090 <label for="ays-poll-form-field-<?php echo $field['slug']; ?>">
5091 <?php echo ucfirst($field['name']); ?></label>
5092 </div>
5093 <?php endforeach; ?>
5094 </div>
5095 <hr>
5096 </div>
5097 <div>
5098 <label>
5099 <?php echo esc_html__('Required Fields', "poll-maker"); ?>
5100 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5101 title="<?php echo esc_html__("Select which fields are required.", "poll-maker"); ?>">
5102 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5103 </a>
5104 </label>
5105 <hr>
5106 </div>
5107 <div>
5108 <div class="ays-poll-sel-fields d-flex">
5109 <?php foreach ( $all_fields as $field ): ?>
5110 <div class="ays-poll-check-box mr-2"
5111 id="ays-poll-box-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5112 $fields) === false) ? "style='display:none'" : ""; ?>>
5113 <input type="checkbox" name="ays-poll-form-required-fields[]"
5114 value="<?php echo $field['slug']; ?>"
5115 id="ays-poll-form-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5116 $required_fields) !== false) ? "checked" : ""; ?>>
5117 <label for="ays-poll-form-rfield-<?php echo $field['slug']; ?>">
5118 <?php echo ucfirst($field['name']); ?></label>
5119 </div>
5120 <?php endforeach; ?>
5121 </div>
5122 </div>
5123 </div>
5124 <hr>
5125 </div>
5126 <hr>
5127 <div class="form-group row">
5128 <div class="col-sm-3">
5129 <label for="ays_poll_autofill_user_data">
5130 <?php echo esc_html__('Autofill logged-in user data', "poll-maker"); ?>
5131 <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"); ?>">
5132 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5133 </a>
5134 </label>
5135 </div>
5136 <div class="col-sm-9">
5137 <div class="information_form_settings">
5138 <input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>>
5139 </div>
5140 </div>
5141 </div>
5142 <hr>
5143 <div class="form-group row">
5144 <div class="col-sm-3">
5145 <label for="ays_poll_display_fields_labels">
5146 <?php echo esc_html__('Display form fields with labels', "poll-maker"); ?>
5147 <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"); ?>">
5148 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5149 </a>
5150 </label>
5151 </div>
5152 <div class="col-sm-9">
5153 <div class="information_form_settings">
5154 <input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>>
5155 </div>
5156 </div>
5157 </div>
5158 <hr>
5159 <div class="form-group row">
5160 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5161 <div class="pro_features" style="justify-content:flex-end;">
5162 </div>
5163 <div class="form-group row">
5164 <div class="col-sm-3">
5165 <label>
5166 <?php echo esc_html__('Add custom fields', "poll-maker"); ?>
5167 <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"); ?>">
5168 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5169 </a>
5170 </label>
5171 </div>
5172 <div class="col-sm-9">
5173 <blockquote>
5174 <?php echo esc_html__("For creating custom fields click ", "poll-maker"); ?>
5175 <a href="?page=<?php echo $this->plugin_name; ?>-poll-attributes"><?php echo esc_html__("here", "poll-maker"); ?></a>
5176 </blockquote>
5177 </div>
5178 </div>
5179 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5180 <div class="ays-poll-new-upgrade-button-box">
5181 <div>
5182 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5183 <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">
5184 </div>
5185 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5186 </div>
5187 </a>
5188 </div>
5189 </div>
5190 <hr>
5191 </div>
5192 </div>
5193 <div class="only_pro" style="position: relative; display: inline-block">
5194 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5195 <div class="pro-features-popup-conteiner">
5196 <div class="pro-features-popup-title">
5197 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5198 </div>
5199 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5200 <p>
5201 <?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"); ?>
5202 </p>
5203 <p>
5204 <?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"); ?>
5205 </p>
5206 </div>
5207 <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 ); ?>">
5208 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5209 </div>
5210 </div>
5211 </div>
5212 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5213 <span class="ays_save_as_default_content_for_mobile">
5214 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5215 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5216 </a>
5217 <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" ); ?>">
5218 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5219 </a>
5220 </span>
5221 </div>
5222 </div>
5223 </div>
5224 <div id="tab6" class="ays-poll-tab-content <?php echo $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
5225 <div class="ays-poll-accordion-options-main-container">
5226 <div class="ays-poll-accordion-header">
5227 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5228 <p class="ays-subtitle"><?php echo esc_html__('Email settings', "poll-maker"); ?></p>
5229 </div>
5230 <hr class="ays-poll-bolder-hr"/>
5231 <div class="ays-poll-accordion-body">
5232 <div class="form-group row ays_toggle_parent">
5233 <div class="col-sm-3">
5234 <label for="ays_notify_by_email_on">
5235 <?php echo esc_html__('Results notification by email', "poll-maker"); ?>
5236 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5237 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"); ?>">
5238 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5239 </a>
5240 </label>
5241 </div>
5242 <div class="col-sm-1">
5243 <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' : ''; ?> />
5244 </div>
5245 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
5246 <div class="row ays_divider_left">
5247 <div class="col-sm-3">
5248 <label for="ays_notify_email">
5249 <?php echo esc_html__('Email address', "poll-maker"); ?>
5250 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5251 title="<?php echo esc_html__('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
5252 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5253 </a>
5254 </label>
5255 </div>
5256 <div class="col-sm-9">
5257 <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">
5258 </div>
5259 </div>
5260 </div>
5261 </div>
5262 <hr>
5263 <div class="form-group row">
5264 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5265 <div class="pro_features pro_features_popup">
5266 <div class="pro-features-popup-conteiner">
5267 <div class="pro-features-popup-title">
5268 <?php echo esc_html__("Send Mail to User", "poll-maker"); ?>
5269 </div>
5270 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
5271 <p>
5272 <?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"); ?>
5273 </p>
5274 <p>
5275 <?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"); ?>
5276 </p>
5277 </div>
5278 <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 ); ?>">
5279 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5280 </div>
5281 </div>
5282 </div>
5283 <div class="pro_features" style="justify-content:flex-end;">
5284 </div>
5285 <div class="form-group row" >
5286 <div class="col-sm-3">
5287 <label for="ays_enable_mail_user">
5288 <?php echo esc_html__('Send Mail to User', "poll-maker"); ?>
5289 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5290 title="<?php echo esc_html__('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
5291 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5292 </a>
5293 </label>
5294 </div>
5295 <div class="col-sm-1">
5296 <input type="checkbox" name="ays_enable_mail_user" value="on" />
5297 </div>
5298 <div class="col-sm-8 if-enable-email_note">
5299
5300 </div>
5301 </div>
5302 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5303 <div class="ays-poll-new-upgrade-button-box">
5304 <div>
5305 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5306 <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">
5307 </div>
5308 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5309 </div>
5310 </a>
5311 <div class="ays-poll-new-watch-video-button-box">
5312 <div>
5313 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
5314 <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">
5315 </div>
5316 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
5317 </div>
5318 </div>
5319 </div>
5320 <hr>
5321 <div class="form-group row">
5322 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5323 <div class="pro_features" style="justify-content:flex-end;">
5324 </div>
5325 <div class="form-group row">
5326 <div class="col-sm-4">
5327 <label>
5328 <?php echo esc_html__('Email configuration', "poll-maker")?>
5329 <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"); ?>">
5330 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5331 </a>
5332 </label>
5333 </div>
5334 <div class="col-sm-8 ays_divider_left">
5335 <div class="form-group row">
5336 <div class="col-sm-3">
5337 <label for="ays_poll_email_configuration_from_email">
5338 <?php echo esc_html__('From email', "poll-maker")?>
5339 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5340 /* translators: 1: opening em tag, 2: closing em tag */
5341 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"),
5342 '<em>',
5343 '</em>'
5344 ) );
5345 ?>">
5346 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5347 </a>
5348 </label>
5349 </div>
5350 <div class="col-sm-9">
5351 <input type="text" class="ays-text-input" />
5352 </div>
5353 </div> <!-- From email -->
5354 <hr/>
5355 <div class="form-group row">
5356 <div class="col-sm-3">
5357 <label for="ays_poll_email_configuration_from_name">
5358 <?php echo esc_html__('From name', "poll-maker")?>
5359 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5360 /* translators: 1: opening em tag, 2: closing em tag */
5361 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"),
5362 // translators: 1: opening em tag,
5363 '<em>',
5364 // translators: 2: closing em tag
5365 '</em>'
5366 ), array(
5367 'em' => array()
5368 ) );
5369 ?>">
5370 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5371 </a>
5372 </label>
5373 </div>
5374 <div class="col-sm-9">
5375 <input type="text" class="ays-text-input" >
5376 </div>
5377 </div><!-- From name -->
5378 <hr/>
5379 <div class="form-group row">
5380 <div class="col-sm-3">
5381 <label for="ays_poll_email_configuration_from_subject">
5382 <?php echo esc_html__('Subject', "poll-maker")?>
5383 <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"); ?>">
5384 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5385 </a>
5386 </label>
5387 </div>
5388 <div class="col-sm-9">
5389 <input type="text" class="ays-text-input">
5390 </div>
5391 </div> <!-- Subject -->
5392 <hr/>
5393 <div class="form-group row">
5394 <div class="col-sm-3">
5395 <label for="ays_poll_email_configuration_replyto_email">
5396 <?php echo esc_html__('Reply to email', "poll-maker")?>
5397 <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"); ?>">
5398 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5399 </a>
5400 </label>
5401 </div>
5402 <div class="col-sm-9">
5403 <input type="text" class="ays-text-input">
5404 </div>
5405 </div> <!-- Reply to email -->
5406 <hr/>
5407 <div class="form-group row">
5408 <div class="col-sm-3">
5409 <label for="ays_poll_email_configuration_replyto_name">
5410 <?php echo esc_html__('Reply to name', "poll-maker")?>
5411 <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"); ?>">
5412 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5413 </a>
5414 </label>
5415 </div>
5416 <div class="col-sm-9">
5417 <input type="text" class="ays-text-input">
5418 </div>
5419 </div> <!-- Reply to name -->
5420 </div>
5421 </div> <!-- Email Configuration -->
5422 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5423 <div class="ays-poll-new-upgrade-button-box">
5424 <div>
5425 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5426 <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">
5427 </div>
5428 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5429 </div>
5430 </a>
5431 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5432 <div class="ays-poll-center-big-main-button-box">
5433 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5434 <div class="ays-poll-center-new-big-upgrade-button">
5435 <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">
5436 <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">
5437 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
5438 </div>
5439 </a>
5440 </div>
5441 </div>
5442 </div>
5443 </div>
5444 <hr>
5445 </div>
5446 </div>
5447 <div class="only_pro" style="position: relative; display: inline-block">
5448 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5449 <div class="pro-features-popup-conteiner">
5450 <div class="pro-features-popup-title">
5451 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5452 </div>
5453 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5454 <p>
5455 <?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"); ?>
5456 </p>
5457 <p>
5458 <?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"); ?>
5459 </p>
5460 </div>
5461 <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 ); ?>">
5462 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5463 </div>
5464 </div>
5465 </div>
5466 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5467 <span class="ays_save_as_default_content_for_mobile">
5468 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5469 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5470 </a>
5471 <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" ); ?>">
5472 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5473 </a>
5474 </span>
5475 </div>
5476 </div>
5477 </div>
5478 <div id="tab7" class="ays-poll-tab-content <?php echo $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5479 <div class="ays-poll-accordion-options-main-container">
5480 <div class="ays-poll-accordion-header">
5481 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5482 <p class="ays-subtitle"><?php echo esc_html__('Integrations settings', "poll-maker"); ?></p>
5483 </div>
5484 <hr class="ays-poll-bolder-hr"/>
5485 <div class="ays-poll-accordion-body">
5486 <fieldset class="ays_poll_settings_integration_container">
5487 <legend>
5488 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mailchimp_logo.png" alt="">
5489 <h5><?php echo esc_html__('MailChimp Settings', "poll-maker")?></h5>
5490 </legend>
5491 <?php
5492 if(count($mailchimp) > 0):
5493 ?>
5494 <?php
5495 if($mailchimp_username == "" || $mailchimp_api_key == ""):
5496 ?>
5497 <blockquote class="error_message">
5498 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5499 <?php echo (
5500 /* translators: anchor tag */
5501 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5502 "<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>"
5503 )
5504 );
5505 ?>
5506 </blockquote>
5507 <?php
5508 else:
5509 ?>
5510 <div class="form-group row">
5511 <div class="col-sm-4">
5512 <label for="ays_enable_mailchimp">
5513 <?php echo esc_html__('Enable MailChimp', "poll-maker")?>
5514 </label>
5515 </div>
5516 <div class="col-sm-1">
5517 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
5518 name="ays_enable_mailchimp"
5519 value="on"
5520 <?php
5521 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5522 echo "disabled";
5523 }else{
5524 echo ($enable_mailchimp == 'on') ? 'checked' : '';
5525 }
5526 ?>/>
5527 </div>
5528 </div>
5529 <hr>
5530 <div class="form-group row">
5531 <div class="col-sm-4">
5532 <label for="ays_mailchimp_list">
5533 <?php echo esc_html__('MailChimp list', "poll-maker")?>
5534 </label>
5535 </div>
5536 <div class="col-sm-8">
5537 <?php if(is_array($mailchimp_select)): ?>
5538 <select name="ays_mailchimp_list" id="ays_mailchimp_list"
5539 <?php
5540 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5541 echo 'disabled';
5542 }
5543 ?>>
5544 <option value="" disabled selected>Select list</option>
5545 <?php foreach($mailchimp_select as $mlist): ?>
5546 <option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?>
5547 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5548 <?php endforeach; ?>
5549 </select>
5550 <?php else: ?>
5551 <span><?php echo esc_html($mailchimp_select); ?></span>
5552 <?php endif; ?>
5553 </div>
5554 </div>
5555 <?php
5556 endif;
5557 ?>
5558 <?php
5559 else:
5560 ?>
5561 <blockquote class="error_message">
5562 <?php echo (
5563 /* translators: anchor tag */
5564 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5565 "<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>"
5566 )
5567 );
5568 ?>
5569 </blockquote>
5570 <?php
5571 endif;
5572 ?>
5573 </fieldset><!-- MailChimp Settings -->
5574 <hr/>
5575 <fieldset class="ays_poll_settings_integration_container">
5576 <legend>
5577 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/campaignmonitor_logo.png" alt="">
5578 <h5><?php echo esc_html__('Campaign Monitor Settings', "poll-maker") ?></h5>
5579 </legend>
5580 <div class="form-group row" style="margin: 0px;">
5581 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5582 <div class="pro_features" style="justify-content:flex-end;">
5583 </div>
5584 <div class="form-group row">
5585 <div class="col-sm-4">
5586 <label for="ays_enable_monitor">
5587 <?php echo esc_html__('Enable Campaign Monitor', "poll-maker") ?>
5588 </label>
5589 </div>
5590 <div class="col-sm-8">
5591 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
5592 </div>
5593 </div>
5594 <hr>
5595 <div class="form-group row">
5596 <div class="col-sm-4">
5597 <label for="ays_monitor_list">
5598 <?php echo esc_html__('Campaign Monitor list', "poll-maker") ?>
5599 </label>
5600 </div>
5601 <div class="col-sm-8">
5602 <select name="ays_monitor_list" id="ays_monitor_list">
5603 <option value="" disabled selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5604 </select>
5605 </div>
5606 </div>
5607 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5608 <div class="ays-poll-new-upgrade-button-box">
5609 <div>
5610 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5611 <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">
5612 </div>
5613 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5614 </div>
5615 </a>
5616 </div>
5617 </div>
5618 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5619 <hr/>
5620 <fieldset class="ays_poll_settings_integration_container">
5621 <legend>
5622 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/zapier_logo.png" alt="">
5623 <h5><?php echo esc_html__('Zapier Integration Settings', "poll-maker") ?></h5>
5624 </legend>
5625 <div class="form-group row" style="margin: 0px;">
5626 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5627 <div class="pro_features" style="justify-content:flex-end;">
5628 </div>
5629 <div class="form-group row">
5630 <div class="col-sm-4">
5631 <label for="ays_enable_zapier">
5632 <?php echo esc_html__('Enable Zapier Integration', "poll-maker") ?>
5633 </label>
5634 </div>
5635 <div class="col-sm-1">
5636 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
5637 </div>
5638 <div class="col-sm-3">
5639 <button type="button"
5640 id="testZapier"
5641 class="btn btn-outline-secondary">
5642 <?php echo esc_html__("Send test data", "poll-maker") ?>
5643 </button>
5644 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5645 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") ?>">
5646 <i class="ays_fa ays_fa_info_circle"></i>
5647 </a>
5648 </div>
5649 </div>
5650 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5651 <div class="ays-poll-new-upgrade-button-box">
5652 <div>
5653 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5654 <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">
5655 </div>
5656 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5657 </div>
5658 </a>
5659 </div>
5660 </div>
5661 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5662 <hr/>
5663 <fieldset class="ays_poll_settings_integration_container">
5664 <legend>
5665 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/activecampaign_logo.png" alt="">
5666 <h5><?php echo esc_html__('Active Campaign Settings', "poll-maker") ?></h5>
5667 </legend>
5668 <div class="form-group row" style="margin: 0px;">
5669 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5670 <div class="pro_features" style="justify-content:flex-end;">
5671 </div>
5672 <div class="form-group row">
5673 <div class="col-sm-4">
5674 <label for="ays_enable_active_camp">
5675 <?php echo esc_html__('Enable ActiveCampaign', "poll-maker") ?>
5676 </label>
5677 </div>
5678 <div class="col-sm-1">
5679 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
5680 </div>
5681 </div>
5682 <hr>
5683 <div class="form-group row">
5684 <div class="col-sm-4">
5685 <label>
5686 <?php echo esc_html__('ActiveCampaign list', "poll-maker") ?>
5687 </label>
5688 </div>
5689 <div class="col-sm-8">
5690 <select name="ays_active_camp_list" id="ays_active_camp_list">
5691 <option value="" disabled
5692 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5693 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5694 </select>
5695 </div>
5696 </div>
5697 <hr>
5698 <div class="form-group row">
5699 <div class="col-sm-4">
5700 <label>
5701 <?php echo esc_html__('ActiveCampaign automation', "poll-maker") ?>
5702 </label>
5703 </div>
5704 <div class="col-sm-8">
5705 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5706 <option value="" disabled
5707 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5708 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5709 </select>
5710 </div>
5711 </div>
5712 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5713 <div class="ays-poll-new-upgrade-button-box">
5714 <div>
5715 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5716 <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">
5717 </div>
5718 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5719 </div>
5720 </a>
5721 </div>
5722 </div>
5723 </fieldset><!-- Active Campaign Settings PRO Feature -->
5724 <hr/>
5725 <fieldset class="ays_poll_settings_integration_container">
5726 <legend>
5727 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/slack_logo.png" alt="">
5728 <h5><?php echo esc_html__('Slack Settings', "poll-maker") ?></h5>
5729 </legend>
5730 <div class="form-group row" style="margin: 0px;">
5731 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5732 <div class="pro_features" style="justify-content:flex-end;">
5733 </div>
5734 <div class="form-group row">
5735 <div class="col-sm-4">
5736 <label for="ays_enable_slack">
5737 <?php echo esc_html__('Enable Slack integration', "poll-maker") ?>
5738 </label>
5739 </div>
5740 <div class="col-sm-1">
5741 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
5742 </div>
5743 </div>
5744 <hr>
5745 <div class="form-group row">
5746 <div class="col-sm-4">
5747 <label>
5748 <?php echo esc_html__('Slack conversation', "poll-maker") ?>
5749 </label>
5750 </div>
5751 <div class="col-sm-8">
5752 <select id="ays_slack_conversation">
5753 <option value="" disabled
5754 selected><?php echo esc_html__("Select Channel", "poll-maker") ?></option>
5755 </select>
5756 </div>
5757 </div>
5758 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5759 <div class="ays-poll-new-upgrade-button-box">
5760 <div>
5761 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5762 <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">
5763 </div>
5764 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5765 </div>
5766 </a>
5767 </div>
5768 </div>
5769 </fieldset> <!-- Slack Settings PRO Feature -->
5770 <hr>
5771 <fieldset class="ays_poll_settings_integration_container">
5772 <legend>
5773 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/sheets_logo.png" alt="">
5774 <h5><?php echo esc_html__('Google Sheet Settings', "poll-maker") ?></h5>
5775 </legend>
5776 <div class="form-group row" style="margin: 0px;">
5777 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5778 <div class="pro_features" style="justify-content:flex-end;">
5779 </div>
5780 <div class="form-group row">
5781 <div class="col-sm-4">
5782 <label for="ays_poll_enable_google">
5783 <?php echo esc_html__('Enable Google integration', "poll-maker") ?>
5784 </label>
5785 </div>
5786 <div class="col-sm-1">
5787 <input type="checkbox" class="ays-enable-timer1"
5788 value="on">
5789 </div>
5790 </div>
5791 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5792 <div class="ays-poll-new-upgrade-button-box">
5793 <div>
5794 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5795 <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">
5796 </div>
5797 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5798 </div>
5799 </a>
5800 </div>
5801 </div>
5802 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5803 <hr>
5804 <fieldset class="ays_poll_settings_integration_container">
5805 <legend>
5806 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5807 <h5><?php echo esc_html__('Mad Mimi', "poll-maker") ?></h5>
5808 </legend>
5809 <div class="form-group row" style="margin: 0px;">
5810 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5811 <div class="pro_features" style="justify-content:flex-end;">
5812 </div>
5813 <hr/>
5814 <div class="form-group row">
5815 <div class="col-sm-4">
5816 <label for="ays_poll_enable_mad_mimi">
5817 <?php echo esc_html__('Enable Mad Mimi', "poll-maker") ?>
5818 </label>
5819 </div>
5820 <div class="col-sm-1">
5821 <input type="checkbox" class="ays-enable-timer1">
5822 </div>
5823 </div>
5824 <hr>
5825 <div class="form-group row">
5826 <div class="col-sm-4">
5827 <label>
5828 <?php echo esc_html__('Select List', "poll-maker") ?>
5829 </label>
5830 </div>
5831 <div class="col-sm-8">
5832 <?php
5833 $allowed_tags = array(
5834 'select' => array(
5835 'id' => array(),
5836 'class' => array()
5837 ),
5838 'option' => array(
5839 'value' => array(),
5840 'selected' => array()
5841 )
5842 );
5843
5844 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5845 $mad_mimi_select .= "<option value=''>Select list</option>";
5846 $mad_mimi_select .= "</select>";
5847 echo wp_kses($mad_mimi_select, $allowed_tags);
5848
5849 ?>
5850 </div>
5851 </div>
5852 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5853 <div class="ays-poll-new-upgrade-button-box">
5854 <div>
5855 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5856 <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">
5857 </div>
5858 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5859 </div>
5860 </a>
5861 </div>
5862 </div>
5863 </fieldset> <!-- Mad Mimi -->
5864 <hr>
5865 <fieldset class="ays_poll_settings_integration_container">
5866 <legend>
5867 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/get_response.png" alt="">
5868 <h5><?php echo esc_html__('GetResponse Settings', "poll-maker") ?></h5>
5869 </legend>
5870 <div class="form-group row" style="margin: 0px;">
5871 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5872 <div class="pro_features" style="justify-content:flex-end;">
5873 </div>
5874 <div class="form-group row">
5875 <div class="col-sm-4">
5876 <label for="ays_poll_enable_getResponse">
5877 <?php echo esc_html__('Enable GetResponse', "poll-maker") ?>
5878 </label>
5879 </div>
5880 <div class="col-sm-8">
5881 <input type="checkbox"
5882 class="ays-enable-timer1">
5883 </div>
5884 </div>
5885 <hr>
5886 <div class="form-group row">
5887 <div class="col-sm-4">
5888 <label>
5889 <?php echo esc_html__('GetResponse List', "poll-maker") ?>
5890 </label>
5891 </div>
5892 <div class="col-sm-8">
5893 <?php
5894 $allowed_tags = array(
5895 'select' => array(
5896 'id' => array(),
5897 'class' => array(),
5898 'name' => array()
5899 ),
5900 'option' => array(
5901 'value' => array(),
5902 'selected' => array(),
5903 'disabled' => array()
5904 )
5905 );
5906 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5907 $mad_mimi_select .= "<option value=''>Select list</option>";
5908 $mad_mimi_select .= "</select>";
5909 echo wp_kses($mad_mimi_select, $allowed_tags);
5910
5911 ?>
5912 </div>
5913 </div>
5914 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5915 <div class="ays-poll-new-upgrade-button-box">
5916 <div>
5917 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5918 <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">
5919 </div>
5920 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5921 </div>
5922 </a>
5923 </div>
5924 </div>
5925 </fieldset> <!-- GetResponse Settings -->
5926 <hr>
5927 <fieldset class="ays_poll_settings_integration_container">
5928 <legend>
5929 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/convertkit_logo.png" alt="">
5930 <h5><?php echo esc_html__('ConvertKit Settings', "poll-maker")?></h5>
5931 </legend>
5932 <div class="form-group row" style="margin: 0px;">
5933 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5934 <div class="pro_features" style="justify-content:flex-end;">
5935 </div>
5936 <div class="form-group row">
5937 <div class="col-sm-4">
5938 <label for="ays_poll_enable_convertkit">
5939 <?php echo esc_html__('Enable ConvertKit', "poll-maker")?>
5940 </label>
5941 </div>
5942 <div class="col-sm-1">
5943 <input type="checkbox" class="ays-enable-timer1"/>
5944 </div>
5945 </div>
5946 <hr>
5947 <div class="form-group row">
5948 <div class="col-sm-4">
5949 <label>
5950 <?php echo esc_html__('ConvertKit list', "poll-maker")?>
5951 </label>
5952 </div>
5953 <div class="col-sm-8">
5954 <select id="ays_poll_convertKit_list">
5955 <option value="" disabled selected>Select list</option>
5956 </select>
5957 </div>
5958 </div>
5959 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5960 <div class="ays-poll-new-upgrade-button-box">
5961 <div>
5962 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5963 <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">
5964 </div>
5965 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5966 </div>
5967 </a>
5968 </div>
5969 </div>
5970 </fieldset> <!-- ConvertKit Settings -->
5971 <hr/>
5972 <fieldset class="ays_poll_settings_integration_container">
5973 <legend>
5974 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/klaviyo-logo.png" alt="">
5975 <h5><?php echo esc_html__('Klaviyo', "poll-maker") ?></h5>
5976 </legend>
5977 <div class="form-group row" style="margin: 0px;">
5978 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5979 <div class="pro_features" style="justify-content:flex-end;">
5980 </div>
5981 <div class="form-group row">
5982 <div class="col-sm-4">
5983 <label for="ays_poll_enable_klaviyo"><?php echo esc_html__('Enable Klaviyo', "poll-maker"); ?></label>
5984 </div>
5985 <div class="col-sm-1">
5986 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
5987 </div>
5988 </div>
5989 <hr>
5990 <div class="form-group row">
5991 <div class="col-sm-4">
5992 <label for="ays_poll_klaviyo_list"><?php echo esc_html__('Klaviyo list',"poll-maker") ?></label>
5993 </div>
5994 <div class="col-sm-8">
5995 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
5996 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
5997 </select>
5998 </div>
5999 </div>
6000 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6001 <div class="ays-poll-new-upgrade-button-box">
6002 <div>
6003 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6004 <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">
6005 </div>
6006 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6007 </div>
6008 </a>
6009 </div>
6010 </div>
6011 </fieldset> <!-- Klaviyo -->
6012 <hr>
6013 <fieldset class="ays_poll_settings_integration_container">
6014 <legend>
6015 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/aweber-logo.png" alt="">
6016 <h5><?php echo esc_html__('Aweber', "poll-maker") ?></h5>
6017 </legend>
6018 <div class="form-group row" style="margin: 0px;">
6019 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6020 <div class="pro_features" style="justify-content:flex-end;">
6021 </div>
6022 <div class="form-group row">
6023 <div class="col-sm-4">
6024 <label for="ays_poll_enable_aweber"><?php echo esc_html__('Enable Aweber', "poll-maker") ?></label>
6025 </div>
6026 <div class="col-sm-1">
6027 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
6028 </div>
6029 </div>
6030 <hr>
6031 <div class="form-group row">
6032 <div class="col-sm-4">
6033 <label for="ays_poll_aweber_list_id"><?php echo esc_html__('Aweber Lists', "poll-maker") ?></label>
6034 </div>
6035 <div class="col-sm-8">
6036 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
6037 <option value='' disabled selected><?php echo esc_html__( "Select list", "poll-maker" ) ?></option>
6038 </select>
6039 </div>
6040 </div>
6041 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6042 <div class="ays-poll-new-upgrade-button-box">
6043 <div>
6044 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6045 <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">
6046 </div>
6047 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6048 </div>
6049 </a>
6050 </div>
6051 </div>
6052 </fieldset> <!-- Aweber -->
6053 <hr>
6054 <fieldset class="ays_poll_settings_integration_container">
6055 <legend>
6056 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mail_poet.png" alt="">
6057 <h5><?php echo esc_html__('MailPoet', "poll-maker") ?></h5>
6058 </legend>
6059 <div class="form-group row" style="margin:0;">
6060 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6061 <div class="pro_features" style="justify-content:flex-end;">
6062 </div>
6063 <div class="form-group row">
6064 <div class="col-sm-4">
6065 <label for="ays_poll_enable_mailpoet"><?php echo esc_html__('Enable MailPoet',"poll-maker"); ?></label>
6066 </div>
6067 <div class="col-sm-1">
6068 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
6069 </div>
6070 </div>
6071 <hr>
6072 <div class="form-group row">
6073 <div class="col-sm-4">
6074 <label for="ays_poll_mailpoet_list"><?php echo esc_html__('MailPoet list',"poll-maker") ?></label>
6075 </div>
6076 <div class="col-sm-8">
6077 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
6078 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6079 </select>
6080 </div>
6081 </div>
6082 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6083 <div class="ays-poll-new-upgrade-button-box">
6084 <div>
6085 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6086 <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">
6087 </div>
6088 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6089 </div>
6090 </a>
6091 </div>
6092 </div>
6093 </fieldset> <!-- Mailpoet -->
6094 <hr>
6095 <fieldset class="ays_poll_settings_integration_container">
6096 <legend>
6097 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/recaptcha_logo.png" alt="">
6098 <h5><?php echo esc_html__('reCAPTCHA Settings', "poll-maker") ?></h5>
6099 </legend>
6100 <div class="form-group row" style="margin:0;">
6101 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6102 <div class="pro_features" style="justify-content:flex-end;">
6103 </div>
6104 <div class="form-group row">
6105 <div class="col-sm-4">
6106 <label for="ays_poll_enable_recaptcha"><?php echo esc_html__('Enable reCAPTCHA',"poll-maker"); ?></label>
6107 </div>
6108 <div class="col-sm-1">
6109 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_recaptcha" name="ays_poll_enable_recaptcha" value="on" selected disabled >
6110 </div>
6111 </div>
6112 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6113 <div class="ays-poll-new-upgrade-button-box">
6114 <div>
6115 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6116 <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">
6117 </div>
6118 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6119 </div>
6120 </a>
6121 </div>
6122 </div>
6123 </fieldset> <!-- reCaptcha Settings -->
6124 <hr>
6125 </div>
6126 </div>
6127 </div>
6128 <div id="tab8" class="ays-poll-tab-content <?php echo $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
6129 <div class="ays-poll-accordion-options-main-container">
6130 <div class="ays-poll-accordion-header">
6131 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
6132 <p class="ays-subtitle"><?php echo esc_html__('Results Settings', "poll-maker"); ?></p>
6133 </div>
6134 <hr class="ays-poll-bolder-hr"/>
6135 <div class="ays-poll-accordion-body">
6136 <div class="form-group row">
6137 <div class="col-sm-3">
6138 <label for='show-res-percent'>
6139 <?php echo esc_html__('Show answer percent', "poll-maker"); ?>
6140 <a class="ays_help" data-toggle="tooltip"
6141 data-placement="top"
6142 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"); ?>">
6143 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6144 </a>
6145 </label>
6146 </div>
6147 <div class="col-sm-9">
6148 <input type="checkbox" name="show_res_percent" id="show-res-percent"
6149 value="1" <?php echo $show_res_percent ? 'checked' : '' ?> >
6150 </div>
6151 </div>
6152 <hr>
6153 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
6154 <div class="col-sm-3">
6155 <label for='ays-poll-hide-results'>
6156 <?php echo esc_html__('Hide results', "poll-maker"); ?>
6157 <a class="ays_help"
6158 data-toggle="tooltip"
6159 data-placement="top"
6160 title="<?php echo esc_html__("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
6161 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6162 </a>
6163 </label>
6164 <p class="ays_poll_small_hint_text_for_message_variables">
6165 <span><?php echo esc_html__( "To see all Message Variables " , "poll-maker" ); ?></span>
6166 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here" , "poll-maker" ); ?></a>
6167 </p>
6168 </div>
6169 <div class="col-sm-9 ays_toggle_parent">
6170 <div class="form-group row">
6171
6172 <!-- <div class="col-sm-1"> -->
6173 <div class="col-sm-12">
6174 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
6175 value="hide" <?php echo isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
6176 </div>
6177 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
6178 <div class="form-group row">
6179 <div class="col-sm-12">
6180 <div>
6181 <label for='ays-poll-hide-results-text'>
6182 <?php echo esc_html__('Message instead of results', "poll-maker"); ?>
6183 <a class="ays_help"
6184 data-toggle="tooltip"
6185 data-placement="top"
6186 title="<?php echo esc_html__("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
6187 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6188 </a>
6189 </label>
6190 </div>
6191 <?php
6192 echo $poll_message_vars_html;
6193 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
6194 $editor_id = 'ays-poll-hide-results-text';
6195 $settings = array(
6196 'editor_height' => $poll_wp_editor_height,
6197 'textarea_name' => 'ays-poll-hide-results-text',
6198 'editor_class' => 'ays-textarea',
6199 'media_elements' => false
6200 );
6201 wp_editor($content, $editor_id, $settings);
6202 ?>
6203 </div>
6204 </div>
6205 </div>
6206 </div>
6207 </div>
6208 </div>
6209 <hr>
6210 <div class="form-group row ays-poll-desc-message-vars-parent">
6211 <div class="col-sm-3">
6212 <label for="ays_poll_result_message">
6213 <?php echo esc_html__('Result Message', "poll-maker")?>
6214 <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")?>">
6215 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6216 </a>
6217 </label>
6218 <p class="ays_poll_small_hint_text_for_message_variables">
6219 <span><?php echo esc_html__( "To see all Message Variables ", "poll-maker" ); ?></span>
6220 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here", "poll-maker" ); ?></a>
6221 </p>
6222 </div>
6223 <div class="col-sm-9 ays_toggle_parent">
6224 <div class="form-group row">
6225 <div class="col-sm-12">
6226 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
6227 value="hide" <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
6228 </div>
6229 <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;'; ?>">
6230 <?php
6231 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6232
6233 echo $poll_message_vars_html;
6234 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
6235 $editor_id = 'ays_result_message';
6236 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6237 wp_editor($content, $editor_id, $settings);
6238 ?>
6239 </div>
6240 </div>
6241 </div>
6242 </div>
6243 <hr>
6244 <div class="form-group row">
6245 <div class="col-sm-3">
6246 <label for='ays-poll-result-sort-type'>
6247 <?php echo esc_html__('Results sorting', "poll-maker"); ?>
6248 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
6249 echo esc_html__("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
6250 "<ul style='list-style-type: circle;padding-left: 20px;'>".
6251 "<li>".esc_html__('Ascending – the smallest to largest', "poll-maker") ."</li>".
6252 "<li>".esc_html__('Descending – the largest to smallest', "poll-maker") ."</li>".
6253 "<li>".esc_html__('None', "poll-maker") ."</li>".
6254 "</ul>";
6255 ?>">
6256 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6257 </a></label>
6258 </div>
6259 <div class="col-sm-9">
6260 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
6261 <option value="none" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
6262 <?php echo esc_html__("None", "poll-maker"); ?>
6263 </option>
6264 <option value="ASC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
6265 <?php echo esc_html__("Ascending", "poll-maker"); ?>
6266 </option>
6267 <option value="DESC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
6268 <?php echo esc_html__("Descending", "poll-maker"); ?>
6269 </option>
6270 </select>
6271 </div>
6272 </div>
6273 <hr>
6274 <div class="form-group row">
6275 <div class="col-sm-3">
6276 <label for='show-votes-count'>
6277 <?php echo esc_html__('Show votes count', "poll-maker"); ?>
6278 <a class="ays_help" data-toggle="tooltip"
6279 data-placement="top"
6280 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"); ?>">
6281 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6282 </a>
6283 </label>
6284 </div>
6285 <div class="col-sm-9">
6286 <input type="checkbox" name="show_votes_count" id="show-votes-count"
6287 value="1" <?php echo $showvotescount ? 'checked' : '' ?> >
6288 </div>
6289 </div>
6290 <hr>
6291
6292 <!-- Loading effect start -->
6293
6294 <div class="form-group row">
6295 <div class="col-sm-3">
6296 <label for='ays-poll-load-effect'>
6297 <?php echo esc_html__('Loading effect', "poll-maker"); ?>
6298 <a class="ays_help" data-toggle="tooltip"
6299 data-placement="top"
6300 title="<?php echo esc_html__("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
6301 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6302 </a>
6303 </label>
6304 </div>
6305 <div class="col-sm-3">
6306 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
6307 <option value="load_gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
6308 <?php echo esc_html__("Loading GIF", "poll-maker"); ?>
6309 </option>
6310 <option value="opacity" <?php echo isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
6311 <?php echo esc_html__("Opacity", "poll-maker"); ?>
6312 </option>
6313 <option value="blur" <?php echo isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
6314 <?php echo esc_html__("Blur", "poll-maker"); ?>
6315 </option>
6316 <option value="message" <?php echo isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
6317 <?php echo esc_html__("Message", "poll-maker"); ?>
6318 </option>
6319 <option class="apm-pro-feature" disabled
6320 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>" value="pro">
6321 <?php echo esc_html__("Custom GIF", "poll-maker"); ?>
6322 </option>
6323 </select>
6324 </div>
6325 <div class="if-loading-gif col-sm-6 row">
6326 <div class="apm-loader d-flex justify-content-between align-items-center">
6327 <input type="radio"
6328 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' : ''; ?>
6329 id="plg_default" value="plg_default">
6330 <label for="plg_default" class="apm-loading-gif">
6331 <div class="loader loader--style3">
6332 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
6333 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6334 height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;"
6335 xml:space="preserve">
6336 <path fill="#000"
6337 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">
6338 <animateTransform attributeType="xml" attributeName="transform"
6339 type="rotate" from="0 25 25" to="360 25 25" dur="0.7s"
6340 repeatCount="indefinite"/>
6341 </path>
6342 </svg>
6343 </div>
6344 </label>
6345 </div>
6346 <div class="apm-loader d-flex justify-content-between align-items-center">
6347 <input type="radio"
6348 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' : ''; ?>
6349 id="plg_1" value="plg_1">
6350 <label for="plg_1" class="apm-loading-gif">
6351 <div class="loader loader--style5">
6352 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6353 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6354 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6355 xml:space="preserve">
6356 <rect x="0" y="0" width="4" height="10" fill="#333">
6357 <animateTransform attributeType="xml" attributeName="transform"
6358 type="translate" values="0 0; 0 20; 0 0" begin="0"
6359 dur="0.8s" repeatCount="indefinite"/>
6360 </rect>
6361 <rect x="10" y="0" width="4" height="10" fill="#333">
6362 <animateTransform attributeType="xml" attributeName="transform"
6363 type="translate" values="0 0; 0 20; 0 0" begin="0.2s"
6364 dur="0.8s" repeatCount="indefinite"/>
6365 </rect>
6366 <rect x="20" y="0" width="4" height="10" fill="#333">
6367 <animateTransform attributeType="xml" attributeName="transform"
6368 type="translate" values="0 0; 0 20; 0 0" begin="0.4s"
6369 dur="0.8s" repeatCount="indefinite"/>
6370 </rect>
6371 </svg>
6372 </div>
6373 </label>
6374 </div>
6375 <div class="apm-loader d-flex justify-content-between align-items-center">
6376 <input type="radio"
6377 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_2' ? 'checked' : ''; ?>
6378 id="plg_2" value="plg_2">
6379 <label for="plg_2" class="apm-loading-gif">
6380 <div class="loader loader--style8">
6381 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6382 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6383 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6384 xml:space="preserve">
6385 <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
6386 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6387 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6388 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6389 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6390 <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s"
6391 dur="0.7s" repeatCount="indefinite"/>
6392 </rect>
6393 <rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
6394 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6395 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6396 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6397 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6398 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6399 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6400 </rect>
6401 <rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
6402 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6403 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6404 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6405 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6406 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6407 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6408 </rect>
6409 </svg>
6410 </div>
6411 </label>
6412 </div>
6413 <div class="apm-loader d-flex justify-content-between align-items-center">
6414 <input type="radio"
6415 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' : ''; ?>
6416 id="plg_3" value="plg_3">
6417 <label for="plg_3" class="apm-loading-gif">
6418 <div class="loader loader--style5">
6419 <svg width="100%" height="100%" viewBox="0 0 105 105"
6420 xmlns="http://www.w3.org/2000/svg" fill="#000">
6421 <circle cx="12.5" cy="12.5" r="12.5">
6422 <animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1"
6423 calcMode="linear" repeatCount="indefinite"/>
6424 </circle>
6425 <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
6426 <animate attributeName="fill-opacity" begin="100ms" dur="0.9s"
6427 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6428 </circle>
6429 <circle cx="52.5" cy="12.5" r="12.5">
6430 <animate attributeName="fill-opacity" begin="300ms" dur="0.9s"
6431 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6432 </circle>
6433 <circle cx="52.5" cy="52.5" r="12.5">
6434 <animate attributeName="fill-opacity" begin="600ms" dur="0.9s"
6435 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6436 </circle>
6437 <circle cx="92.5" cy="12.5" r="12.5">
6438 <animate attributeName="fill-opacity" begin="800ms" dur="0.9s"
6439 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6440 </circle>
6441 <circle cx="92.5" cy="52.5" r="12.5">
6442 <animate attributeName="fill-opacity" begin="400ms" dur="0.9s"
6443 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6444 </circle>
6445 <circle cx="12.5" cy="92.5" r="12.5">
6446 <animate attributeName="fill-opacity" begin="700ms" dur="0.9s"
6447 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6448 </circle>
6449 <circle cx="52.5" cy="92.5" r="12.5">
6450 <animate attributeName="fill-opacity" begin="500ms" dur="0.9s"
6451 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6452 </circle>
6453 <circle cx="92.5" cy="92.5" r="12.5">
6454 <animate attributeName="fill-opacity" begin="200ms" dur="0.9s"
6455 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6456 </circle>
6457 </svg>
6458 </div>
6459 </label>
6460 </div>
6461 <div class="apm-loader d-flex justify-content-between align-items-center">
6462 <input type="radio"
6463 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' : ''; ?>
6464 id="plg_4" value="plg_4">
6465 <label for="plg_4" class="apm-loading-gif">
6466 <div class="loader loader--style4">
6467 <svg width="100%" height="100%" viewBox="0 0 57 57"
6468 xmlns="http://www.w3.org/2000/svg" stroke="#000">
6469 <g fill="none" fill-rule="evenodd">
6470 <g transform="translate(1 1)" stroke-width="2">
6471 <circle cx="5" cy="50" r="5">
6472 <animate attributeName="cy" begin="0s" dur="2.2s"
6473 values="50;5;50;50" calcMode="linear"
6474 repeatCount="indefinite"/>
6475 <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5"
6476 calcMode="linear" repeatCount="indefinite"/>
6477 </circle>
6478 <circle cx="27" cy="5" r="5">
6479 <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5"
6480 values="5;50;50;5" calcMode="linear"
6481 repeatCount="indefinite"/>
6482 <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27"
6483 values="27;49;5;27" calcMode="linear"
6484 repeatCount="indefinite"/>
6485 </circle>
6486 <circle cx="49" cy="50" r="5">
6487 <animate attributeName="cy" begin="0s" dur="2.2s"
6488 values="50;50;5;50" calcMode="linear"
6489 repeatCount="indefinite"/>
6490 <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s"
6491 values="49;5;27;49" calcMode="linear"
6492 repeatCount="indefinite"/>
6493 </circle>
6494 </g>
6495 </g>
6496 </svg>
6497 </div>
6498 </label>
6499 </div>
6500 <div class="apm-loader d-flex justify-content-between align-items-center">
6501 <input type="radio"
6502 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' : ''; ?>
6503 id="plg_5" value="plg_5">
6504 <label for="plg_5" class="apm-loading-gif">
6505 <div class="loader loader--style4">
6506 <svg width="100%" height="100%" viewBox="0 0 135 140"
6507 xmlns="http://www.w3.org/2000/svg" fill="#000">
6508 <rect y="10" width="15" height="120" rx="6">
6509 <animate attributeName="height" begin="0.5s" dur="1s"
6510 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6511 repeatCount="indefinite"/>
6512 <animate attributeName="y" begin="0.5s" dur="1s"
6513 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6514 repeatCount="indefinite"/>
6515 </rect>
6516 <rect x="30" y="10" width="15" height="120" rx="6">
6517 <animate attributeName="height" begin="0.25s" dur="1s"
6518 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6519 repeatCount="indefinite"/>
6520 <animate attributeName="y" begin="0.25s" dur="1s"
6521 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6522 repeatCount="indefinite"/>
6523 </rect>
6524 <rect x="60" width="15" height="140" rx="6">
6525 <animate attributeName="height" begin="0s" dur="1s"
6526 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6527 repeatCount="indefinite"/>
6528 <animate attributeName="y" begin="0s" dur="1s"
6529 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6530 repeatCount="indefinite"/>
6531 </rect>
6532 <rect x="90" y="10" width="15" height="120" rx="6">
6533 <animate attributeName="height" begin="0.25s" dur="1s"
6534 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6535 repeatCount="indefinite"/>
6536 <animate attributeName="y" begin="0.25s" dur="1s"
6537 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6538 repeatCount="indefinite"/>
6539 </rect>
6540 <rect x="120" y="10" width="15" height="120" rx="6">
6541 <animate attributeName="height" begin="0.5s" dur="1s"
6542 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6543 repeatCount="indefinite"/>
6544 <animate attributeName="y" begin="0.5s" dur="1s"
6545 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6546 repeatCount="indefinite"/>
6547 </rect>
6548 </svg>
6549 </div>
6550 </label>
6551 </div>
6552 </div>
6553 <div class="if-loading-message col-sm-6 row">
6554 <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); ?>">
6555 </div>
6556 </div>
6557 <hr class="<?php echo esc_attr($poll_loader_size_line_enable); ?> ays_line_changeing">
6558 <div class="form-group row <?php echo esc_attr($poll_loader_size_enable); ?> ays_load_gif_cont">
6559 <div class="col-sm-3">
6560 <label for="ays_loader_font_size">
6561 <?php echo esc_html__('Loading effect size', "poll-maker") ?>
6562 <a class="ays_help" data-toggle="tooltip"
6563 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") ?>">
6564 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6565 </a>
6566 </label>
6567 </div>
6568 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6569 <div>
6570 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6571 name="ays_loader_font_size"
6572 value="<?php echo esc_attr($poll_loader_font_size); ?>"/>
6573 </div>
6574 <div class="ays_option_default_measurement_unit">
6575 <input type="text" value="px" disabled>
6576 </div>
6577 </div>
6578 </div>
6579 <hr>
6580 <!-- Loading effect end -->
6581 <div class="form-group row">
6582 <div class="col-sm-3">
6583 <label for="ays_enable_restart_button">
6584 <?php echo esc_html__('Enable restart button', "poll-maker") ?>
6585 <a class="ays_help" data-toggle="tooltip"
6586 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") ?>">
6587 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6588 </a>
6589 </label>
6590 </div>
6591 <div class="col-sm-1">
6592 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6593 name="ays_enable_restart_button"
6594 value="on" <?php echo (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6595 </div>
6596 </div>
6597 <hr>
6598 <div class="form-group row ays_toggle_parent">
6599 <div class="col-sm-3">
6600 <label for='ays-poll-show-social'>
6601 <?php echo esc_html__('Social share buttons', "poll-maker"); ?>
6602 <a class="ays_help"
6603 data-toggle="tooltip"
6604 data-placement="top"
6605 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"); ?>'>
6606 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6607 </a></label>
6608 </div>
6609 <div class="col-sm-1">
6610 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6611 value="show" <?php echo $poll_social_buttons ? 'checked' : ''; ?>>
6612 </div>
6613 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6614 <div class="form-group row">
6615 <div class="col-sm-4">
6616 <label>
6617 <?php echo esc_html__('Heading for share buttons', "poll-maker")?>
6618 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6619 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6620 </a>
6621 </label>
6622 </div>
6623 <div class="col-sm-8">
6624 <?php
6625 $content = $poll_social_buttons_heading;
6626 $editor_id = 'ays_poll_social_buttons_heading';
6627 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6628 wp_editor($content, $editor_id, $settings);
6629 ?>
6630 </div>
6631 </div>
6632 <hr>
6633 <div class="form-group row">
6634 <div class="col-sm-4">
6635 <label for="ays_poll_enable_linkedin_share_button">
6636 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6637 <?php echo esc_html__('LinkedIn button', "poll-maker")?>
6638 <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"); ?>">
6639 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6640 </a>
6641 </label>
6642 </div>
6643 <div class="col-sm-8">
6644 <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" : ""; ?>/>
6645 </div>
6646 </div>
6647 <hr/>
6648 <div class="form-group row">
6649 <div class="col-sm-4">
6650 <label for="ays_poll_enable_facebook_share_button">
6651 <i class="ays_poll_fas ays_poll_facebook"></i>
6652 <?php echo esc_html__('Facebook button', "poll-maker")?>
6653 <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"); ?>">
6654 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6655 </a>
6656 </label>
6657 </div>
6658 <div class="col-sm-8">
6659 <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" : ""; ?>/>
6660 </div>
6661 </div>
6662 <hr/>
6663 <div class="form-group row">
6664 <div class="col-sm-4">
6665 <label for="ays_poll_enable_twitter_share_button">
6666 <i class="ays_fa ays_fa_twitter_square"></i>
6667 <?php echo esc_html__('Twitter button', "poll-maker")?>
6668 <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"); ?>">
6669 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6670 </a>
6671 </label>
6672 </div>
6673 <div class="col-sm-8">
6674 <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" : ""; ?>/>
6675 </div>
6676 </div>
6677 <hr/>
6678 <div class="form-group row">
6679 <div class="col-sm-4">
6680 <label for="ays_poll_enable_vkontakte_share_button">
6681 <i class="ays_fa ays_fa_vk"></i>
6682 <?php echo esc_html__('VKontakte button', "poll-maker")?>
6683 <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"); ?>">
6684 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6685 </a>
6686 </label>
6687 </div>
6688 <div class="col-sm-8">
6689 <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" : ""; ?>/>
6690 </div>
6691 </div>
6692 </div>
6693 </div>
6694 <hr>
6695 <div class="form-group row ays_toggle_parent">
6696 <div class="col-sm-3">
6697 <label for="ays_enable_social_links">
6698 <?php echo esc_html__('Enable Social Media links', "poll-maker")?>
6699 <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")?>">
6700 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6701 </a>
6702 </label>
6703 </div>
6704 <div class="col-sm-1">
6705 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links"
6706 name="ays_poll_enable_social_links"
6707 value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/>
6708 </div>
6709 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6710 <div class="form-group row">
6711 <div class="col-sm-4">
6712 <label>
6713 <?php echo esc_html__('Heading for social links', "poll-maker")?>
6714 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over social links.', "poll-maker"); ?>">
6715 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6716 </a>
6717 </label>
6718 </div>
6719 <div class="col-sm-8">
6720 <?php
6721 $content = $poll_social_links_heading;
6722 $editor_id = 'ays_poll_social_links_heading';
6723 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6724 wp_editor($content, $editor_id, $settings);
6725 ?>
6726 </div>
6727 </div>
6728 <hr>
6729 <div class="form-group row">
6730 <div class="col-sm-4">
6731 <label for="ays_linkedin_link">
6732 <i class="ays_fa ays_fa_linkedin_square"></i>
6733 <?php echo esc_html__('LinkedIn link', "poll-maker")?>
6734 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6735 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6736 </a>
6737 </label>
6738 </div>
6739 <div class="col-sm-8">
6740 <input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]"
6741 value="<?php echo $linkedin_link; ?>" />
6742 </div>
6743 </div>
6744 <hr/>
6745 <div class="form-group row">
6746 <div class="col-sm-4">
6747 <label for="ays_facebook_link">
6748 <i class="ays_fa ays_fa_facebook_square"></i>
6749 <?php echo esc_html__('Facebook link', "poll-maker")?>
6750 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6751 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6752 </a>
6753 </label>
6754 </div>
6755 <div class="col-sm-8">
6756 <input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]"
6757 value="<?php echo $facebook_link; ?>" />
6758 </div>
6759 </div>
6760 <hr/>
6761 <div class="form-group row">
6762 <div class="col-sm-4">
6763 <label for="ays_twitter_link">
6764 <!-- <i class="ays_fa ays_fa_twitter_square"></i> -->
6765 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6766 <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>
6767 </svg>
6768 <?php echo esc_html__('X link', "poll-maker")?>
6769 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('X profile or page link for showing after poll finish.', "poll-maker")?>">
6770 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6771 </a>
6772 </label>
6773 </div>
6774 <div class="col-sm-8">
6775 <input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]"
6776 value="<?php echo $twitter_link; ?>" />
6777 </div>
6778 </div>
6779 <hr/>
6780 <div class="form-group row">
6781 <div class="col-sm-4">
6782 <label for="ays_vkontakte_link">
6783 <i class="ays_fa ays_fa_vk_square"></i>
6784 <?php echo esc_html__('VKontakte link', "poll-maker")?>
6785 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6786 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6787 </a>
6788 </label>
6789 </div>
6790 <div class="col-sm-8">
6791 <input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]"
6792 value="<?php echo $vkontakte_link; ?>" />
6793 </div>
6794 </div>
6795 <hr>
6796 <div class="form-group row">
6797 <div class="col-sm-4">
6798 <label for="ays_youtube_link">
6799 <i class="ays_fa ays_fa_youtube_square"></i>
6800 <?php echo esc_html__('YouTube link', "poll-maker")?>
6801 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6802 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6803 </a>
6804 </label>
6805 </div>
6806 <div class="col-sm-8">
6807 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6808 value="<?php echo $youtube_link; ?>" />
6809 </div>
6810 </div>
6811 <hr>
6812 <div class="form-group row">
6813 <div class="col-sm-4">
6814 <label for="ays_tiktok_link">
6815 <!-- <i class="ays_fa ays_fa_tiktok_square"></i> -->
6816 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6817 <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>
6818 </svg>
6819 <?php echo esc_html__('TikTok link', "poll-maker")?>
6820 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tiktok profile or page link for showing after poll finish.', "poll-maker")?>">
6821 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6822 </a>
6823 </label>
6824 </div>
6825 <div class="col-sm-8">
6826 <input type="text" class="ays-text-input" id="ays_tiktok_link" name="ays_poll_social_links[ays_tiktok_link]"
6827 value="<?php echo $tiktok_link; ?>" />
6828 </div>
6829 </div>
6830 <hr>
6831 <div class="form-group row">
6832 <div class="col-sm-4">
6833 <label for="ays_instagram_link">
6834 <i class="ays_fa ays_fa_instagram_square"></i>
6835 <?php echo esc_html__('Instagram link', "poll-maker")?>
6836 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Instagram profile or page link for showing after poll finish.', "poll-maker")?>">
6837 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6838 </a>
6839 </label>
6840 </div>
6841 <div class="col-sm-8">
6842 <input type="text" class="ays-text-input" id="ays_instagram_link" name="ays_poll_social_links[ays_instagram_link]"
6843 value="<?php echo $instagram_link; ?>" />
6844 </div>
6845 </div>
6846 </div>
6847 </div>
6848 <hr>
6849 <div class="form-group row">
6850 <div class="col-sm-3">
6851 <label for='ays-poll-res-rgba'>
6852 <?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?>
6853 <a class="ays_help" data-toggle="tooltip"
6854 data-placement="top"
6855 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"); ?>">
6856 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6857 </a>
6858 </label>
6859 </div>
6860 <div class="col-sm-9">
6861 <input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba"
6862 value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>>
6863 </div>
6864 </div>
6865 <hr>
6866 <div class="form-group row ays_toggle_parent">
6867 <div class="col-sm-3">
6868 <label for='ays_poll_show_users'>
6869 <?php echo esc_html__('Show passed users avatars', "poll-maker"); ?>
6870 <a class="ays_help" data-toggle="tooltip"
6871 data-placement="top"
6872 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"); ?>">
6873 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6874 </a>
6875 </label>
6876 </div>
6877 <div class="col-sm-1">
6878 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6879 value="on" <?php echo esc_attr($poll_show_passed_users_checked); ?>>
6880 </div>
6881 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6882 <div class="row">
6883 <div class="col-sm-3 ays_divider_left">
6884 <label for='ays_poll_show_users_count'>
6885 <?php echo esc_html__('Users count', "poll-maker"); ?>
6886 <a class="ays_help" data-toggle="tooltip"
6887 data-placement="top"
6888 title="<?php echo esc_html__("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6889 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6890 </a>
6891 </label>
6892 </div>
6893 <div class="col-sm-9">
6894 <input type="number"
6895 name="ays_poll_show_users_count"
6896 id="ays_poll_show_users_count"
6897 class="ays-text-input ays-poll-answer-results-short-input"
6898 value="<?php echo esc_attr($poll_show_passed_users_count); ?>">
6899 </div>
6900 </div>
6901 </div>
6902 </div>
6903 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6904 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6905 <div class="col-sm-3">
6906 <label for="ays_poll_enable_answer_redirect_delay">
6907 <?php echo esc_html__('Option Redirect Delay', "poll-maker") ?>
6908 <a class="ays_help" data-toggle="tooltip"
6909 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") ?>">
6910 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6911 </a>
6912 </label>
6913 </div>
6914 <div class="col-sm-1">
6915 <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" : ""; ?>>
6916 </div>
6917 <div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>">
6918 <input type="number"
6919 class="ays-text-input ays-poll-answer-results-short-input"
6920 id="ays_poll_answer_redirect_delay"
6921 name="ays_poll_answer_redirect_delay"
6922 value="<?php echo $poll_every_answer_redirect_delay; ?>"/>
6923 <span class="ays_poll_small_hint_text"><?php echo esc_html__("Seconds", "poll-maker"); ?></span>
6924 </div>
6925 </div>
6926 <hr>
6927 <div class="form-group row">
6928 <div class="col-sm-3">
6929 <label for="ays_poll_enable_answer_image_after_voting">
6930 <?php echo esc_html__('Show answers image', "poll-maker") ?>
6931 <a class="ays_help" data-toggle="tooltip"
6932 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") ?>">
6933 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6934 </a>
6935 </label>
6936 </div>
6937 <div class="col-sm-1">
6938 <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" : ""; ?>>
6939 </div>
6940 </div>
6941 <hr>
6942 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
6943 <div class="form-group row">
6944 <div class="col-sm-3">
6945 <label for="apm_allow_add_answers">
6946 <?php echo esc_html__('Show results by', "poll-maker"); ?>
6947 <a class="ays_help" data-toggle="tooltip" data-placement="top"
6948 title="<?php echo esc_html__("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
6949 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6950 </a>
6951 </label>
6952 </div>
6953 <div class="col-sm-9">
6954 <div class="form-group row" style="align-items:center">
6955 <div class="col-sm-4">
6956 <div style="display: flex;">
6957 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6958 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
6959 <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' : '' ?>/>
6960 <span><?php echo esc_html__('Bar chart(Google)', "poll-maker"); ?></span>
6961 </label>
6962 </div>
6963 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6964 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
6965 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
6966 <span><?php echo esc_html__('Bar chart', "poll-maker"); ?></span>
6967 </label>
6968 </div>
6969 </div>
6970 </div>
6971 <div class="col-sm-8" style="padding-left: 0">
6972 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
6973 <div class="pro_features pro_features_popup">
6974 <div class="pro-features-popup-conteiner">
6975 <div class="pro-features-popup-title">
6976 <?php echo esc_html__("Show Results by", "poll-maker"); ?>
6977 </div>
6978 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
6979 <p>
6980 <?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"); ?>
6981 </p>
6982 </div>
6983 <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 ); ?>">
6984 <?php echo esc_html__("Pricing", "poll-maker"); ?>
6985 </div>
6986 </div>
6987 </div>
6988 <div class="pro_features" style="justify-content:flex-end;">
6989 </div>
6990 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6991 <input type="radio"/>
6992 <label class="form-check-label ays_poll_check_label">
6993 <?php echo esc_html__('Pie Chart', "poll-maker"); ?>
6994 </label>
6995 </div>
6996 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6997 <input type="radio"/>
6998 <label class="form-check-label ays_poll_check_label">
6999 <?php echo esc_html__('Column Chart', "poll-maker"); ?>
7000 </label>
7001 </div>
7002 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
7003 <input type="radio"/>
7004 <label class="form-check-label ays_poll_check_label">
7005 <?php echo esc_html__('Versus Chart', "poll-maker"); ?>
7006 </label>
7007 </div>
7008 <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'?>">
7009 <input type="radio"/>
7010 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
7011 <?php echo esc_html__('Rating Chart', "poll-maker"); ?>
7012 </label>
7013 </div>
7014 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7015 <div class="ays-poll-new-upgrade-button-box">
7016 <div>
7017 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7018 <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">
7019 </div>
7020 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7021 </div>
7022 </a>
7023 <div class="ays-poll-new-watch-video-button-box">
7024 <div>
7025 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7026 <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">
7027 </div>
7028 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7029 </div>
7030 </div>
7031 </div>
7032 </div>
7033 <hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7034 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7035 <div class="form-group row" style="align-items: center; margin-left: 0;">
7036 <div class="col-sm-2">
7037 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
7038 <?php echo esc_html__('Chart height', "poll-maker") ?>
7039 <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"); ?>">
7040 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7041 </a>
7042 </label>
7043 </div>
7044 <div class="col-sm-9 ays_option_with_default_measurement_unit">
7045 <div>
7046 <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; ?>"/>
7047 </div>
7048 <div class="ays_option_default_measurement_unit">
7049 <input type="text" value="px" disabled>
7050 </div>
7051 </div>
7052 </div>
7053 </div>
7054 </div>
7055 </div>
7056 </div>
7057 <hr/>
7058 <div class="form-group row">
7059 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
7060 <div class="pro_features pro_features_popup">
7061 <div class="pro-features-popup-conteiner">
7062 <div class="pro-features-popup-title">
7063 <?php echo esc_html__("Results Message Based on the Answer", "poll-maker"); ?>
7064 </div>
7065 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
7066 <p>
7067 <?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"); ?>
7068 </p>
7069 </div>
7070 <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 ); ?>">
7071 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7072 </div>
7073 </div>
7074 </div>
7075 <div class="pro_features" style="justify-content:flex-end;">
7076 </div>
7077 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__("Result message based on the answer", "poll-maker"); ?></p>
7078 <hr>
7079 <div class="form-group row">
7080 <div class="col-sm-3">
7081 <label for="ays_show_answer_message">
7082 <?php echo esc_html__('Show Answer message', "poll-maker")?>
7083 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
7084 data-placement="top"
7085 title="<?php echo esc_html__("Show different messages based on the answer.", "poll-maker"); ?>">
7086 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7087 </a>
7088 </label>
7089 </div>
7090 <div class="col-sm-9">
7091 <input type="checkbox" class="ays-enable-timer1"
7092 name=""
7093 value="on">
7094 </div>
7095 </div>
7096 <hr/>
7097 <!--Result message -->
7098 <div class='form-group row'>
7099 <div class="ays_reset_answers_div">
7100 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
7101 </div>
7102 <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"); ?>">
7103 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7104 </a>
7105 </div>
7106 <hr>
7107 <?php
7108 $allowed_tags = array(
7109 'div' => array(
7110 'class' => true
7111 ),
7112 'table' => array(
7113 'class' => true
7114 ),
7115 'thead' => array(),
7116 'tbody' => array(),
7117 'tr' => array(
7118 'class' => true
7119 ),
7120 'th' => array(),
7121 'td' => array(
7122 'class' => true
7123 ),
7124 'span' => array(),
7125 'input' => array(
7126 'type' => true,
7127 'name' => true,
7128 'class' => true,
7129 'value' => true,
7130 'hidden' => true
7131 ),
7132 'textarea' => array(
7133 'type' => true,
7134 'name' => true,
7135 'class' => true
7136 ),
7137 'label' => array(
7138 'class' => true,
7139 'for' => true
7140 ),
7141 'a' => array(
7142 'href' => true,
7143 'class' => true
7144 ),
7145 'img' => array(
7146 'src' => true,
7147 'class' => true
7148 )
7149 );
7150
7151 $content = '<div class="ays-field-dashboard ays-table-wrap">
7152 <table class="ays-answers-table ">
7153 <thead>
7154 <tr class="ui-state-default">
7155 <th>'. esc_html__('Answers', "poll-maker").'</th>
7156 <th>'. esc_html__('Text', "poll-maker").'</th>
7157 <th>'. esc_html__('Image', "poll-maker").'</th>
7158 </tr>
7159 </thead>
7160 <tbody>';
7161 $content .= '<tr class="ays-interval-row">
7162 <td>
7163 <span>'. esc_html__("Answer 1", "poll-maker").'</span>
7164 <input type="hidden" name="ays_answer_id[]">
7165 </td>
7166 <td>
7167 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7168 </td>
7169 <td class="ays-answer-image-td">
7170 <label class="ays-label" for="ays-answer">
7171 <a href="javascript:void(0)" class="add-answer-image" >
7172 '. esc_html__("Add", "poll-maker").'
7173 </a>
7174 </label>
7175 <div class="ays-answer-image-container ays-interval-image-container">
7176 <span class="ays-remove-answer-img"></span>
7177 <img src="" class="ays-answer-img">
7178 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7179 >
7180 </div>
7181 </td>
7182 </tr>
7183 <tr class="ays-interval-row">
7184 <td>
7185 <span>'. esc_html__("Answer 2", "poll-maker").'</span>
7186 <input type="hidden" name="ays_answer_id[]">
7187 </td>
7188 <td>
7189 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7190 </td>
7191 <td class="ays-answer-image-td">
7192 <label class="ays-label" for="ays-answer">
7193 <a href="javascript:void(0)" class="add-answer-image" >
7194 '. esc_html__("Add", "poll-maker").'
7195 </a>
7196 </label>
7197 <div class="ays-answer-image-container ays-interval-image-container">
7198 <span class="ays-remove-answer-img"></span>
7199 <img src="" class="ays-answer-img">
7200 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7201 >
7202 </div>
7203 </td>
7204 </tr>';
7205 $content .= '</tbody></table></div>';
7206 echo wp_kses($content, $allowed_tags);
7207 ?>
7208 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7209 <div class="ays-poll-new-upgrade-button-box">
7210 <div>
7211 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7212 <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">
7213 </div>
7214 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7215 </div>
7216 </a>
7217 <div class="ays-poll-new-watch-video-button-box">
7218 <div>
7219 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7220 <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">
7221 </div>
7222 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7223 </div>
7224 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
7225 <div class="ays-poll-center-big-watch-video-button-box">
7226 <div class="ays-poll-center-new-watch-video-demo-button">
7227 <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">
7228 <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">
7229 <span class="ays-poll-center-new-watch-video-demo-name"><?php echo esc_html__("Watch Video", "poll-maker"); ?></span>
7230 </div>
7231 </div>
7232 <div class="ays-poll-center-big-upgrade-button-box">
7233 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7234 <div class="ays-poll-center-new-big-upgrade-button">
7235 <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">
7236 <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">
7237 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
7238 </div>
7239 </a>
7240 </div>
7241 </div>
7242 </div>
7243 <hr/>
7244 </div>
7245 </div>
7246 </div>
7247 <div class="only_pro" style="position: relative; display: inline-block">
7248 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
7249 <div class="pro-features-popup-conteiner">
7250 <div class="pro-features-popup-title">
7251 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
7252 </div>
7253 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
7254 <p>
7255 <?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"); ?>
7256 </p>
7257 <p>
7258 <?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"); ?>
7259 </p>
7260 </div>
7261 <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 ); ?>">
7262 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7263 </div>
7264 </div>
7265 </div>
7266 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
7267 <span class="ays_save_as_default_content_for_mobile">
7268 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
7269 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
7270 </a>
7271 <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" ); ?>">
7272 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7273 </a>
7274 </span>
7275 </div>
7276 </div>
7277 </div>
7278 <div class="bottom-buttons-container">
7279 <div class='bottom-save-buttons-container'>
7280 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
7281 <?php
7282 echo wp_kses($loader_iamge, $loader_iamge_allow);
7283 wp_nonce_field('poll_action', 'poll_action');
7284 $save_bottom_attributes = array(
7285 'id' => 'ays-button-apply',
7286 'title' => 'Ctrl + s',
7287 'data-toggle' => 'tooltip',
7288 'data-delay'=> '{"show":"1000"}'
7289 );
7290 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
7291 $save_close_bottom_attributes = array('id' => 'ays-button');
7292 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);
7293 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
7294 ?>
7295 </div>
7296 </div>
7297 </div>
7298 </div>
7299 <div>
7300 <hr>
7301 <!-- <div class="form-group row ays-poll-general-bundle-container">
7302 <div class="col-sm-12 ays-poll-general-bundle-box">
7303 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
7304 <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>
7305 </div>
7306 <div class="ays-poll-general-bundle-row">
7307 <div class="ays-poll-general-bundle-text">
7308 <?php //echo esc_html__( "Do not miss", $this->plugin_name ); ?>
7309 <span><?php //echo esc_html__( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
7310 <?php //echo esc_html__( "on Poll Maker plugin!", $this->plugin_name ); ?>
7311 <span class="ays-poll-general-bundle-color">
7312 <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>
7313 </span> <?php //echo esc_html__( "plugin!", $this->plugin_name ); ?>
7314 </div>
7315 <p><?php //echo esc_html__( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
7316 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
7317 <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>
7318 </div>
7319 </div>
7320 <div class="ays-poll-general-bundle-row">
7321 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
7322 </div>
7323 </div>
7324 </div> -->
7325 <?php if($id === null): ?>
7326 <div class="ays_poll_layer_container">
7327 <div class="ays_poll_layer_content">
7328 <div class="ays_poll_layer_box">
7329 <div class="ays-poll-close-layer">
7330 <div class="ays-poll-choose-type">
7331 <p style="margin: 0;"><?php echo esc_html__('Choose Your Poll Type', "poll-maker"); ?></p>
7332 </div>
7333 <div class="ays-poll-close-type">
7334 <a href="?page=poll-maker-ays">
7335 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7336 </a>
7337 </div>
7338 </div>
7339 <div class="ays_poll_layer_box_blocks">
7340 <label class='ays-poll-dblclick-layer'>
7341 <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
7342 <div class="ays_poll_layer_item" >
7343 <div class="ays_poll_layer_item_logo" >
7344 <div class="ays_poll_layer_item_logo_overlay
7345 ays_poll_layer_item_logo_overlay_choosing" >
7346 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/choosing.png' ?>"
7347 alt="<?php echo esc_html__('Choosing', "poll-maker") ?>">
7348 </div>
7349 </div>
7350 <div class="ays_poll_layer_item_title">
7351 <p style="margin:0px;"><?php echo esc_html__('Choosing', "poll-maker") ?><p>
7352 <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>
7353 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7354 </div>
7355 <div class="ays_poll_layer_item_description"></div>
7356 </div>
7357 </label>
7358 <label class='ays-poll-dblclick-layer'>
7359 <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'rating') ? 'checked' : '' ?> >
7360 <div class="ays_poll_layer_item">
7361 <div class="ays_poll_layer_item_logo">
7362 <div class="ays_poll_layer_item_logo_overlay
7363 ays_poll_layer_item_logo_overlay_rating">
7364 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/rating.png' ?>"
7365 alt="<?php echo esc_html__('Rating', "poll-maker") ?>">
7366 </div>
7367 </div>
7368 <div class="ays_poll_layer_item_title">
7369 <p style="margin:0px;"><?php echo esc_html__('Rating', "poll-maker") ?><p>
7370 <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>
7371 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7372 </div>
7373 <div class="ays_poll_layer_item_description"></div>
7374 </div>
7375 </label>
7376 <label class='ays-poll-dblclick-layer'>
7377 <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'text') ? 'checked' : '' ?> >
7378 <div class="ays_poll_layer_item">
7379 <div class="ays_poll_layer_item_logo">
7380 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
7381
7382 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Text.png' ?>"
7383 alt="<?php echo esc_html__('Text', "poll-maker") ?>">
7384 </div>
7385 </div>
7386 <div class="ays_poll_layer_item_title">
7387 <p style="margin:0px;"><?php echo esc_html__('Text', "poll-maker") ?><p>
7388 <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>
7389 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7390 </div>
7391 <div class="ays_poll_layer_item_description"></div>
7392 </div>
7393 </label>
7394 <label class='ays-poll-dblclick-layer'>
7395 <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'voting') ? 'checked' : '' ?> >
7396 <div class="ays_poll_layer_item">
7397 <div class="ays_poll_layer_item_logo">
7398 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
7399 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/voting.png' ?>" alt="<?php echo esc_html__('Voting', "poll-maker") ?>">
7400 </div>
7401 </div>
7402 <div class="ays_poll_layer_item_title">
7403 <p style="margin:0px;"><?php echo esc_html__('Voting', "poll-maker") ?><p>
7404 <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>
7405 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7406 </div>
7407 <div class="ays_poll_layer_item_description"></div>
7408 </div>
7409 </label>
7410 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7411 <!-- <input type="radio" value="select" > -->
7412 <div class="ays_poll_layer_item">
7413 <span class="ays_poll_layer_item_pro_version">
7414 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7415 PRO
7416 </a>
7417 </span>
7418 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7419 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
7420
7421 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Dropdown.png' ?>"
7422 alt="<?php echo esc_html__('Dropdown', "poll-maker") ?>">
7423 </div>
7424 </div>
7425 <div class="ays_poll_layer_item_title">
7426 <p style="margin:0px;">
7427 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7428 <?php echo esc_html__('Dropdown', "poll-maker") ?>
7429 </a>
7430 <p>
7431 <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>
7432 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7433 </div>
7434 <div class="ays_poll_layer_item_description"></div>
7435 </div>
7436 </label>
7437 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7438 <!-- <input value="range" type="radio"> -->
7439 <div class="ays_poll_layer_item">
7440 <span class="ays_poll_layer_item_pro_version">
7441 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7442 PRO
7443 </a>
7444 </span>
7445 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7446 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
7447
7448 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/range.png' ?>"
7449 alt="<?php echo esc_html__('Range', "poll-maker") ?>">
7450 </div>
7451 </div>
7452 <div class="ays_poll_layer_item_title">
7453 <p style="margin:0px;">
7454 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7455 <?php echo esc_html__('Range', "poll-maker") ?>
7456 </a>
7457 <p>
7458 <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>
7459 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7460 </div>
7461 <div class="ays_poll_layer_item_description"></div>
7462 </div>
7463 </label>
7464 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7465 <!-- <input value="versus" type="radio"> -->
7466 <div class="ays_poll_layer_item">
7467 <span class="ays_poll_layer_item_pro_version">
7468 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7469 PRO
7470 </a>
7471 </span>
7472 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7473 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" >
7474
7475 <span>VS</span>
7476 </div>
7477 </div>
7478 <div class="ays_poll_layer_item_title">
7479 <p style="margin:0px;">
7480 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7481 <?php echo esc_html__('Versus', "poll-maker") ?>
7482 </a>
7483 <p>
7484 <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>
7485 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7486 </div>
7487 <div class="ays_poll_layer_item_description"></div>
7488 </div>
7489 </label>
7490 </div>
7491 <div class="ays_poll_select_button_layer">
7492 <div class="ays_poll_select_button_item">
7493 <input type="button" class="ays_poll_layer_button" name="" value="<?php echo esc_attr__('Next', "poll-maker"); ?>" data-type="<?php echo $poll['type']; ?>">
7494 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7495 </div>
7496 </div>
7497 </div>
7498 </div>
7499 </div>
7500 <?php else: ?>
7501 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7502 <?php endif; ?>
7503 </form>
7504 <div class="ays-modal" id="pro-features-popup-modal">
7505 <div class="ays-modal-content">
7506 <!-- Modal Header -->
7507 <div class="ays-modal-header">
7508 <span class="ays-close-pro-popup">&times;</span>
7509 <!-- <h2></h2> -->
7510 </div>
7511
7512 <!-- Modal body -->
7513 <div class="ays-modal-body">
7514 <div class="row">
7515 <div class="col-sm-6 pro-features-popup-modal-left-section">
7516 </div>
7517 <div class="col-sm-6 pro-features-popup-modal-right-section">
7518 <div class="pro-features-popup-modal-right-box">
7519 <div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div>
7520
7521 <div class="pro-features-popup-modal-right-box-title"></div>
7522
7523 <div class="pro-features-popup-modal-right-box-content"></div>
7524
7525 <div class="pro-features-popup-modal-right-box-button">
7526 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7527 </div>
7528 </div>
7529 <div class="pro-features-popup-modal-right-box-footer-text">
7530 <span class="ays_poll_small_hint_text_for_message_variables"><?php echo esc_html__( "One-time payment", 'poll-maker' ); ?></span>
7531 </div>
7532 </div>
7533 </div>
7534 </div>
7535
7536 <!-- Modal footer -->
7537 <div class="ays-modal-footer" style="display:none">
7538 </div>
7539 </div>
7540 </div>
7541 </div>
7542 </div>