PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.5.1
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.5.1
6.5.1 6.5.0 6.4.9 6.4.8 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.1 6.4.0 6.3.9 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 All 154 releases
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.5.1, at admin/partials/poll-maker-ays-polls-actions.php

7,646 lines 666.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $wpdb;
3 $action = (isset($_GET['action'])) ? sanitize_text_field($_GET['action']) : '';
4 $active_tab = (!empty($_GET['active-tab'])) ? sanitize_text_field($_GET['active-tab']) : 'General';
5 $heading = '';
6 $loader_iamge = '';
7 $image_text =esc_html__('Add Image', "poll-maker");
8 $image_text_bg =esc_html__('Add Image', "poll-maker");
9 $image_text_logo =esc_html__('Add Image', "poll-maker");
10
11 $acordion_svg_html_allow = array(
12 'div' => array(
13 'class' => array()
14 ),
15 'svg' => array(
16 'class' => array(),
17 'version' => array(),
18 'xmlns' => array(),
19 'xmlns:xlink' => array(),
20 'overflow' => array(),
21 'preserveAspectRatio' => array(),
22 'viewBox' => array(),
23 'width' => array(),
24 'height' => array()
25 ),
26 'g' => array(),
27 'path' => array(
28 'xmlns:default' => array(),
29 'd' => array(),
30 'fill' => array(),
31 'vector-effect' => array()
32 )
33 );
34
35 $poll_acordion_svg_html = '
36 <div class="ays-poll-accordion-arrow-box">
37 <svg class="ays-poll-accordion-arrow ays-poll-accordion-arrow-active" version="1.2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" overflow="visible" preserveAspectRatio="none" viewBox="0 0 24 24" width="32" height="32">
38 <g>
39 <path xmlns:default="http://www.w3.org/2000/svg" d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" fill="#c4c4c4" vector-effect="non-scaling-stroke" />
40 </g>
41 </svg>
42 </div>';
43
44 $id = (isset($_GET['poll'])) ? absint(intval($_GET['poll'])) : null;
45
46 if ($action == 'edit') {
47 if ($id === null || $id === 0) {
48 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
49 wp_safe_redirect($url);
50 }
51 }
52
53 $user_id = get_current_user_id();
54 $user = get_userdata($user_id);
55 $users_table = esc_sql( $wpdb->prefix . 'users' );
56 // $sql_users = "SELECT ID, display_name FROM {$users_table}";
57 // $ays_poll_wp_users = $wpdb->get_results($sql_users, "ARRAY_A");
58 $author = array(
59 'id' => $user->ID,
60 'name' => $user->data->display_name
61 );
62
63 $cat_list = get_categories(
64 array(
65 'hide_empty' => false
66 )
67 );
68
69 $poll_category_page_url = admin_url( 'admin.php?page=poll-maker-ays-cats' );
70
71 $poll_message_vars = array(
72 '%%user_name%%' =>esc_html__("User Name", "poll-maker"),
73 '%%user_email%%' =>esc_html__("User Email", "poll-maker"),
74 '%%user_phone%%' =>esc_html__("User Phone", "poll-maker"),
75 '%%poll_title%%' =>esc_html__("Poll title", "poll-maker"),
76 '%%poll_category_title%%' =>esc_html__("Poll category title", "poll-maker"),
77 '%%poll_id%%' =>esc_html__("Poll ID", "poll-maker"),
78 '%%users_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
79 '%%users_last_name%%' =>esc_html__("User's Last Name", "poll-maker"),
80 '%%creation_date%%' =>esc_html__("Creation date of the poll", "poll-maker"),
81 '%%current_date%%' =>esc_html__("Current Date", "poll-maker"),
82 '%%current_time%%' =>esc_html__("Current Time", "poll-maker"),
83 '%%current_day%%' =>esc_html__("Current Day", "poll-maker"),
84 '%%current_month%%' =>esc_html__("Current Month", "poll-maker"),
85 '%%current_poll_author%%' =>esc_html__("Author of the current poll", "poll-maker"),
86 '%%current_poll_author_email%%' =>esc_html__("Author's Email of the current poll", "poll-maker"),
87 '%%current_poll_author_nickname%%' =>esc_html__("Author's Nick Name of the current poll", "poll-maker"),
88 '%%current_poll_author_display_name%%' =>esc_html__("Author's Display Name of the current poll", "poll-maker"),
89 '%%current_poll_author_website_url%%' =>esc_html__("Author's Website URl of the current poll", "poll-maker"),
90 '%%current_poll_author_registered%%' =>esc_html__("Author's Registered Date of the current poll", "poll-maker"),
91 '%%admin_email%%' =>esc_html__("Admin Email", "poll-maker"),
92 '%%user_wordpress_roles%%' =>esc_html__("User's Wordpress Roles", "poll-maker"),
93 "%%user_wordpress_email%%" =>esc_html__("User's WordPress profile email", "poll-maker"),
94 '%%user_wordpress_website%%' =>esc_html__("User's Wordpress Website", "poll-maker"),
95 '%%user_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
96 '%%user_display_name%%' =>esc_html__("User's Display Name", "poll-maker"),
97 '%%user_nickname%%' =>esc_html__("User's Nick Name", "poll-maker"),
98 '%%user_ip_address%%' =>esc_html__("User's IP address", "poll-maker"),
99 '%%user_id%%' =>esc_html__("User's ID", "poll-maker"),
100 '%%user_registered%%' =>esc_html__("User's Registered Date", "poll-maker"),
101 '%%poll_pass_count%%' =>esc_html__("Polls pass count", "poll-maker"),
102 '%%passed_poll_count_per_user%%' =>esc_html__("Passed polls count per user", "poll-maker"),
103 '%%current_poll_page_link%%' =>esc_html__("Current polls posted link", "poll-maker"),
104 '%%post_title%%' =>esc_html__("Post Title", "poll-maker"),
105 '%%post_author_email%%' =>esc_html__("Post Author Email", "poll-maker"),
106 '%%post_author_display_name%%' =>esc_html__("Post Author Display Name", "poll-maker"),
107 '%%post_author_first_name%%' =>esc_html__("Post Author First Name", "poll-maker"),
108 '%%post_author_last_name%%' =>esc_html__("Post Author Last Name", "poll-maker"),
109 '%%post_author_nickname%%' =>esc_html__("Post Author Nickname", "poll-maker"),
110 '%%post_author_website_url%%' =>esc_html__("Post Author Website URL", "poll-maker"),
111 '%%post_author_roles%%' =>esc_html__("Post Author Roles", "poll-maker"),
112 '%%post_id%%' =>esc_html__("Post ID", "poll-maker"),
113 '%%site_title%%' =>esc_html__("Site Title", "poll-maker"),
114 '%%site_description%%' =>esc_html__("Site Description", "poll-maker"),
115 '%%home_page_url%%' =>esc_html__("Home Page", "poll-maker"),
116 );
117
118 $poll_message_vars_html = $this->ays_poll_generate_message_vars_html( $poll_message_vars );
119
120
121 $poll = array(
122 'title' => 'Default title',
123 'description' => '',
124 'categories' => array(),
125 'image' => '',
126 'question' => '',
127 'type' => 'choosing',
128 'view_type' => '',
129 'answers' => array(),
130 'show_title' => 1,
131 'styles' => '',
132 'custom_css' => '',
133 'theme_id' => 1,
134 );
135 $default_colors = array(
136 "main_color" => "#0C6291",
137 "text_color" => "#0C6291",
138 "icon_color" => "#0C6291",
139 "box_shadow_color" => "#000000",
140 "bg_color" => "#FBFEF9",
141 "answer_bg_color" => "#FBFEF9",
142 "answer_hover_color" => "#0C6291",
143 "title_bg_color" => "",
144 "border_color" => "#0C6291",
145 );
146 $default_options = array(
147 'randomize_answers' => 'off',
148 "icon_size" => 24,
149 "width" => 600,
150 "width_for_mobile" => '',
151 "btn_text" =>esc_html__('Vote', "poll-maker"),
152 "see_res_btn_text" =>esc_html__('See Results', "poll-maker"),
153 "border_style" => "ridge",
154 "border_radius" => 0,
155 "border_width" => 2,
156 "enable_box_shadow" => "",
157 "bg_image" => "",
158 "hide_results" => 0,
159 "hide_results_text" => "<p style='text-align: center'>" .esc_html__("Thanks for your answer!", "poll-maker") . "</p>",
160 "allow_not_vote" => 0,
161 "show_social" => 0,
162 "poll_show_social_ln" => "on",
163 "poll_show_social_fb" => "on",
164 "poll_show_social_tr" => "on",
165 "poll_show_social_vk" => "off",
166 "load_effect" => "load_gif",
167 "load_gif" => "plg_default",
168 'limit_users' => 0,
169 "limitation_message" => "<p style='text-align: center'>" .esc_html__("You have already voted", "poll-maker") . "</p>",
170 'redirect_url' => '',
171 'redirection_delay' => '',
172 'users_role' => '',
173 'enable_restriction_pass' => 0,
174 'restriction_pass_message' => "<p style='text-align: center'>" .esc_html__("You don't have permissions for passing the poll", "poll-maker") . "</p>",
175 'enable_logged_users' => 0,
176 'enable_logged_users_message' => "<p style='text-align: center'>" .esc_html__('You must sign in for passing the poll', "poll-maker") . "</p>",
177 'notify_email_on' => 0,
178 'notify_email' => '',
179 'result_sort_type' => 'none',
180 'redirect_after_submit' => 0,
181 'redirect_users' => 0,
182 'redirect_after_vote_url' => '',
183 'redirect_after_vote_delay' => '',
184 'published' => 1,
185 'enable_pass_count' => 'on',
186 'activeInterval' => '',
187 'create_date' => current_time( 'mysql' ),
188 'author' => $author,
189 'deactiveInterval' => '',
190 'enable_background_gradient' => 'off',
191 'background_gradient_color_1' => '#103251',
192 'background_gradient_color_2' => '#607593',
193 'poll_gradient_direction' => 'vertical',
194 'activeIntervalSec' => '',
195 'deactiveIntervalSec' => '',
196 'active_date_check' => '',
197 'active_date_message_soon' => "<p style='text-align: center'>" .esc_html__("The poll will be available soon!", "poll-maker") . "</p>",
198 'active_date_message' => "<p style='text-align: center'>" .esc_html__("The poll has expired!", "poll-maker") . "</p>",
199 'enable_restart_button' => 0,
200 'enable_vote_btn' => 1,
201 'show_votes_count' => 1,
202 'show_res_percent' => 1,
203 'poll_direction' => 'ltr',
204 'info_form' => 0,
205 'fields' => 'apm_name,apm_email,apm_phone',
206 'required_fields' => 'apm_email',
207 'info_form_title' => "<h5>" .esc_html__("Please fill out the form:", "poll-maker") . "</h5>",
208 'disable_answer_hover' => 0,
209 'enable_asnwers_sound' => 'off',
210 'poll_bg_image_position' => 'center center',
211 'poll_bg_img_in_finish_page' => 'off',
212 'ays_add_post_for_poll' => 'off',
213 'result_in_rgba' => 'off',
214 'answer_sort_type' => 'default',
215 'answer_font_size' => '16',
216 'poll_answer_font_size_mobile' => '16',
217 'show_passed_users' => 'off',
218 'logo_image' => '',
219 'dont_show_poll_cont' => 'off',
220 'show_votes_before_voting' => 'off',
221 'show_votes_before_voting_by' => 'by_count',
222 'see_result_button' => 'on',
223 'see_result_radio' => 'ays_see_result_button',
224 'loader_font_size' => '64',
225 'show_answers_numbering' => 'none',
226 'poll_box_shadow_x_offset' => 0,
227 'poll_box_shadow_y_offset' => 0,
228 'poll_box_shadow_z_offset' => 15,
229 'poll_question_size_pc' => 16,
230 'poll_question_size_mobile' => 16,
231 'poll_question_image_object_fit' => "cover",
232 'poll_title_font_size' => 20,
233 'poll_title_font_size_mobile' => 20,
234 'poll_title_font_weight' => "normal",
235 'poll_title_font_weight_mobile' => "normal",
236 'poll_title_alignment' => "center",
237 'poll_title_alignment_mobile' => "center",
238 'poll_title_text_transform' => "none",
239 'poll_text_type_length_enable' => "off",
240 'poll_text_type_limit_type' => "characters",
241 'poll_text_type_limit_length' => "",
242 'poll_text_type_limit_message' => "off",
243 'poll_text_type_placeholder' => "Your answer",
244 'poll_text_type_width' => "",
245 'poll_text_type_width_type' => "percent",
246 'poll_enable_password' => "off",
247 'poll_password' => "",
248 'poll_enable_password_visibility' => "off",
249 'poll_password_message' => 'Please enter password',
250 'poll_answer_enable_box_shadow' => "off",
251 'poll_answer_box_shadow_color' => "#000000",
252 'poll_answer_box_shadow_x_offset' => 0,
253 'poll_answer_box_shadow_y_offset' => 0,
254 'poll_answer_box_shadow_z_offset' => 10,
255 'poll_answer_border_radius' => 0,
256 'poll_enable_answer_image_after_voting' => "off",
257 'enable_poll_title_text_shadow' => 'off',
258 'poll_title_text_shadow' => 'rgba(255,255,255,0)',
259 'poll_title_text_shadow_x_offset' => 2,
260 'poll_title_text_shadow_y_offset' => 2,
261 'poll_title_text_shadow_z_offset' => 0,
262 'display_fields_labels' => 'off',
263 'autofill_user_data' => 'off',
264 'poll_create_author' => $user_id,
265 'poll_main_url' => '',
266 'poll_logo_url_new_tab' => 'off',
267 'show_chart_type' => 'google_bar_chart',
268 );
269
270 $settings_options = $this->settings_obj->ays_get_setting('options');
271 if($settings_options){
272 $settings_options = json_decode($settings_options, true);
273 }else{
274 $settings_options = array();
275 }
276 $loader_iamge_allow = array(
277 'span' => array(
278 'class' => array()
279 ),
280 'img' => array(
281 'src' => array(),
282 'class' => array()
283 )
284 );
285 switch ( $action ) {
286 case 'add':
287 $heading =esc_html__('Add new poll', "poll-maker");
288 $options = array_merge($default_options, $default_colors);
289 $loader_iamge = "<span class='display_none'><img src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
290 // Default category
291 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
292
293 $poll['categories'] = $poll_default_cat;
294
295 // Default type
296 $poll_default_type = isset($settings_options['default_type']) && $settings_options['default_type'] != '' ? esc_attr($settings_options['default_type']) : "choosing";
297 $poll['type'] = $poll_default_type;
298
299 $ays_check_post = '';
300 break;
301 case 'edit':
302 $heading =esc_html__('Edit poll', "poll-maker");
303 $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
304 $poll = $this->polls_obj->get_poll_by_id($id);
305 $post_id = !empty($poll) ? $poll['post_id'] : '';
306 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
307 $ays_poll_view_post_url = get_permalink($post_id);
308 $ays_poll_edit_post_url = get_edit_post_link($post_id);
309
310 if (empty($poll)) {
311 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
312 wp_safe_redirect($url);
313 }
314
315 $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
316 break;
317 default:
318 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
319 wp_safe_redirect($url);
320 break;
321 }
322 $enable_pass_count = $options['enable_pass_count'];
323 $categories = $this->polls_obj->get_categories();
324 global $wp_roles;
325 $ays_users_roles = $wp_roles->roles;
326
327 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
328 $this->polls_obj->add_or_edit_polls($_POST, $id);
329 }
330
331 if (isset($_POST['ays_apply_top']) || isset($_POST['ays_apply'])) {
332 $this->polls_obj->add_or_edit_polls($_POST, $id, "apply");
333 }
334
335 if (isset($_POST['ays_poll_cancel']) || isset($_POST['ays_poll_cancel_top']) ) {
336 unset($_GET['page']);
337 $url = remove_query_arg( array_keys($_GET) );
338 wp_redirect( $url );
339 }
340
341 $style = "display: none;";
342 $style_bg = "display: none;";
343 $style_bg_options = "display: none;";
344 $style_logo = "display: none;";
345 $style_logo_check = false;
346 if (isset($poll['image']) && !empty($poll['image'])) {
347
348 $style = "display: block;";
349 $image_text =esc_html__('Edit Image', "poll-maker");
350 }
351 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
352 $style_bg = "display: flex;";
353 $style_bg_options = "display: block;";
354 $image_text_bg =esc_html__('Edit Image', "poll-maker");
355 }
356 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
357 $style_logo = "display: block;";
358 $style_logo_check = true;
359 $image_text_logo =esc_html__('Edit Image', "poll-maker");
360 }
361
362 $published = $options['published'];
363
364
365 if (!empty($options['activeInterval']) && !empty($options['deactiveInterval'])) {
366 $activateTime = strtotime($options['activeInterval']);
367 $activePoll = date('Y-m-d', $activateTime);
368 $deactivateTime = strtotime($options['deactiveInterval']);
369 $deactivePoll = date('Y-m-d', $deactivateTime);
370 } else {
371 $activePoll = date('Y-m-d');
372 $deactivePoll = date('Y-m-d');
373 }
374
375 $activePollSec = isset($options['activeIntervalSec']) && !empty($options['activeIntervalSec']) ? $options['activeIntervalSec'] : '';
376 $deactivePollSec = isset($options['deactiveIntervalSec']) && !empty($options['deactiveIntervalSec']) ? $options['deactiveIntervalSec'] : '';
377
378 $activePoll = $activePoll . " " . $activePollSec;
379 $deactivePoll = $deactivePoll . " " . $deactivePollSec;
380
381 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
382
383 $all_fields = array(
384 array(
385 "name" =>esc_html__("Name", "poll-maker"),
386 "slug" => "apm_name",
387 ),
388 array(
389 "name" =>esc_html__("Email", "poll-maker"),
390 "slug" => "apm_email",
391 ),
392 array(
393 "name" =>esc_html__("Phone", "poll-maker"),
394 "slug" => "apm_phone",
395 ),
396 );
397
398
399 //INTEGRATIONS
400 $poll_settings = $this->settings_obj;
401
402 $asnwers_sound = (isset($settings_options['answers_sound']) && $settings_options['answers_sound'] != '') ? true : false;
403
404 $answer_default_count = (isset($settings_options['answer_default_count']) && $settings_options['answer_default_count'] != '') ? $settings_options['answer_default_count'] : 2;
405
406 $answers_sound_status = false;
407 if($asnwers_sound){
408 $answers_sound_status = true;
409 }
410
411 // WP Editor height
412 $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 ;
413
414 // Answers sound option
415 $options['enable_asnwers_sound'] = isset($options['enable_asnwers_sound']) ? $options['enable_asnwers_sound'] : 'off';
416 $enable_asnwers_sound = (isset($options['enable_asnwers_sound']) && $options['enable_asnwers_sound'] == "on") ? true : false;
417
418 $mailchimp_res = ($poll_settings->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $poll_settings->ays_get_setting('mailchimp');
419 $mailchimp = json_decode($mailchimp_res, true);
420 $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '';
421 $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '';
422 $mailchimp_lists = $mailchimp_api_key ? $this->ays_get_mailchimp_lists($mailchimp_username, $mailchimp_api_key) : array();
423 $mailchimp_select = array();
424 if (!empty($mailchimp_lists) && isset($mailchimp_lists['total_items']) && $mailchimp_lists['total_items'] > 0) {
425 foreach ( $mailchimp_lists['lists'] as $list ) {
426 $mailchimp_select[] = array(
427 'listId' => $list['id'],
428 'listName' => $list['name']
429 );
430 }
431 } else {
432 $mailchimp_select =esc_html__("There are no lists", "poll-maker");
433 }
434
435 // MailChimp
436 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
437 $mailchimp_list = (isset($options['mailchimp_list'])) ? $options['mailchimp_list'] : '';
438
439
440 $fields = !empty($options['fields']) ? explode(",", $options['fields']) : array();
441 $required_fields = !empty($options['required_fields']) ? explode(",", $options['required_fields']) : array();
442
443 // Show votes count
444 $options['show_votes_count'] = isset($options['show_votes_count']) ? $options['show_votes_count'] : 1;
445 $showvotescount = isset($options['show_votes_count']) && intval($options['show_votes_count']) == 1 ? true : false;
446
447 // Show result percent
448 $options['show_res_percent'] = isset($options['show_res_percent']) ? $options['show_res_percent'] : 1;
449 $show_res_percent = isset($options['show_res_percent']) && intval($options['show_res_percent']) == 1 ? true : false;
450
451 // Show result button after schedule
452 $options['show_result_btn_schedule'] = isset($options['show_result_btn_schedule']) ? $options['show_result_btn_schedule'] : 0;
453 $showresbtnschedule = isset($options['show_result_btn_schedule']) && intval($options['show_result_btn_schedule']) == 1 ? true : false;
454
455 $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';
456
457 $schedule_show_timer = isset($options['ays_poll_show_timer']) && intval($options['ays_poll_show_timer']) == 1 ? true : false;
458
459 $show_timer_type = isset($options['ays_show_timer_type']) && !empty($options['ays_show_timer_type'])? $options['ays_show_timer_type'] : 'countdown';
460
461 $show_bottom_timer = isset($options['show_bottom_timer']) && intval($options['show_bottom_timer']) == 1 ? true : false;
462
463 // Show login form for not logged in users
464 $options['show_login_form'] = isset($options['show_login_form']) ? $options['show_login_form'] : 'off';
465 $show_login_form = (isset($options['show_login_form'] ) && $options['show_login_form'] == "on") ? true : false;
466
467 // Redirect after voting
468 $options['redirect_users'] = isset($options['redirect_users']) ? $options['redirect_users'] : 0;
469 $redirect_users = (isset($options['redirect_users']) && $options['redirect_users'] == 1) ? true : false;
470
471 // Results notification by email
472 $options['notify_email_on'] = isset($options['notify_email_on']) ? $options['notify_email_on'] : 0;
473 $notify_email_on = (isset($options['notify_email_on']) && $options['notify_email_on'] == 1) ? true : false;
474
475 // Background gradient
476 $options['enable_background_gradient'] = (!isset($options['enable_background_gradient'])) ? 'off' : $options['enable_background_gradient'];
477 $enable_background_gradient = (isset($options['enable_background_gradient']) && $options['enable_background_gradient'] == 'on') ? true : false;
478
479 $background_gradient_color_1 = (isset($options['background_gradient_color_1']) && $options['background_gradient_color_1'] != '' && $enable_background_gradient) ? $options['background_gradient_color_1'] : '#103251';
480 $background_gradient_color_2 = (isset($options['background_gradient_color_2']) && $options['background_gradient_color_2'] != '' && $enable_background_gradient) ? $options['background_gradient_color_2'] : '#607593';
481 $poll_gradient_direction = (isset($options['poll_gradient_direction']) && $options['poll_gradient_direction'] != '') ? $options['poll_gradient_direction'] : 'vertical';
482
483
484 // Redirect after submit
485 $options['redirect_after_submit'] = (!isset($options['redirect_after_submit'])) ? 0 : $options['redirect_after_submit'];
486 $redirect_after_submit = (isset($options['redirect_after_submit']) && $options['redirect_after_submit'] == 1) ? true : false;
487 $submit_redirect_url = isset($options['ays_submit_redirect_url']) ? $options['ays_submit_redirect_url'] : '';
488 // $submit_redirect_delay = isset($options['submit_redirect_delay']) ? $options['submit_redirect_delay'] : '';
489
490 $users_role = (isset($options['users_role']) && $options['users_role'] != "") ? json_decode($options['users_role'], true) : array();
491
492 $options['enable_answer_style'] = isset($options['enable_answer_style']) ? $options['enable_answer_style'] : 'on';
493
494 // $poll_create_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : "0000-00-00 00:00:00";
495
496 $change_creation_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : current_time( 'mysql' );
497
498
499 // Bg image positioning
500 $poll_bg_image_position = (isset($options['poll_bg_image_position']) && $options['poll_bg_image_position'] != '') ? $options['poll_bg_image_position'] : "center center";
501
502 $poll_bg_img_in_finish_page = (isset($options['poll_bg_img_in_finish_page']) && $options['poll_bg_img_in_finish_page'] == "on") ? true : false;
503
504 if(isset($options['author']) && $options['author'] != 'null'){
505 if ( ! is_array( $options['author'] ) ) {
506 $options['author'] = json_decode($options['author'], true);
507 $poll_author = $options['author'];
508 } else {
509 $poll_author = array_map( 'stripslashes', $options['author'] );
510 }
511 } else {
512 $poll_author = array('name' => 'Unknown');
513 }
514
515 $show_create_date = (isset($options['show_create_date']) && $options['show_create_date'] == 1) ? true : false;
516 $show_author = (isset($options['show_author']) && $options['show_author'] == 1) ? true : false;
517
518 $custom_class = (isset($options['custom_class']) && $options['custom_class'] != "") ? $options['custom_class'] : '';
519
520 // Results bar in RGBA
521 $options['result_in_rgba'] = isset($options['result_in_rgba']) ? $options['result_in_rgba'] : 'off';
522 $result_in_rgba = (isset($options['result_in_rgba']) && $options['result_in_rgba'] == "on") ? true : false;
523
524 // Enable View more button
525 $options['enable_view_more_button'] = isset($options['enable_view_more_button']) ? $options['enable_view_more_button'] : 'off';
526 $enable_view_more_button = (isset($options['enable_view_more_button']) && $options['enable_view_more_button'] == 'on' ) ? true : false;
527 $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;
528
529
530 // Poll Min Height
531 $poll_min_height = (isset($options['poll_min_height']) && $options['poll_min_height'] != '') ? absint(intval($options['poll_min_height'])) : '';
532
533 // Poll answer font size
534 $poll_answer_font_size = (isset($options['answer_font_size']) && $options['answer_font_size'] != '') ? esc_html($options['answer_font_size']) : '15';
535
536 // Poll answers font size on mobile
537 $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';
538
539 // Poll show passed users
540 $poll_show_passed_users = isset($options['show_passed_users']) ? esc_html($options['show_passed_users']) : 'off';
541 $poll_show_passed_users_checked = isset($poll_show_passed_users) && $poll_show_passed_users == 'on' ? 'checked' : '';
542 $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;
543
544 // Poll Logo image
545 $poll_logo_image = isset($options['logo_image']) && $options['logo_image'] != '' ? esc_url($options['logo_image']) : '';
546 $poll_check_logo = isset($poll_logo_image) && $poll_logo_image != '' ? true : false;
547 $poll_logo_img = $poll_check_logo ? 'ays_logo_image_on' : 'display_none';
548 $poll_logo_for_live_container = $poll_check_logo ? 'ays_logo_cont_image_on' : '';
549
550 //
551
552 $checking_answer_hover_live = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
553
554 // Poll schedule container on/off
555 $poll_check_exp_cont = (isset($options['dont_show_poll_cont']) && $options['dont_show_poll_cont'] == 'on') ? 'checked' : '';
556
557 // Poll see results button in limitations
558 $poll_see_result_button = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? 'checked' : '';
559 $poll_see_result_button_check = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? true : false;
560 $poll_see_result_button_cont = (isset($options['see_result_button']) && $options['see_result_button'] != 'on') ? 'ays_poll_display_none' : '';
561 $poll_see_result_radio = (isset($options['see_result_radio']) && $options['see_result_radio'] != '') ? esc_attr($options['see_result_radio']) : 'ays_see_result_button';
562 $poll_see_result_botton_show = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_button' ? 'checked' : '';
563 $poll_see_result_immediately = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_immediately' ? 'checked' : '';
564
565 // Loader font size
566 $poll_loader_font_size = (isset($options['loader_font_size']) && $options['loader_font_size'] != '') ? esc_attr($options['loader_font_size']) : '64';
567 $poll_loader_size_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "display_none";
568 $poll_loader_size_line_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "ays_hr_display_none";
569
570 // Show answers numbering
571 $show_answers_numbering = (isset($options['show_answers_numbering']) && sanitize_text_field( $options['show_answers_numbering'] ) != '') ? sanitize_text_field( $options['show_answers_numbering'] ) : 'none';
572
573 // Default border color
574 $main_color = isset($options['main_color']) && $options['main_color'] != "" ? $options['main_color'] : $default_colors['main_color'];
575 $default_border = isset($options['border_color']) && $options['border_color'] != "" ? $options['border_color'] : $main_color;
576
577 // Poll load effect message
578 $poll_effect_message = isset($options['effect_message']) && $options['effect_message'] != "" ? $options['effect_message'] : "";
579
580 // Poll title
581 $poll_title = isset($poll['title']) && $poll['title'] != "" ? stripslashes(htmlentities($poll['title'])) : "Default title";
582
583 // Box shadow coords
584 // Box Shadow X offset
585 $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;
586
587 // Box Shadow Y offset
588 $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;
589
590 // Box Shadow Z offset
591 $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;
592
593 // Poll Vote Reason
594 $poll_vote_reason = (isset($options['poll_vote_reason']) && $options['poll_vote_reason'] == 'on' ) ? "checked" : "";
595
596 // Allow multivote
597 $poll_allow_multivote = isset($options['poll_allow_multivote']) && $options['poll_allow_multivote'] == 'on' ? "checked" : "";
598 // Enable multivote answer
599 $poll_enable_multivote_answer = $poll_allow_multivote == "checked" ? true : false;
600
601 // Minimum count for multivote answer
602 $poll_multivote_min_count = (isset($options['multivote_answer_min_count']) && $options['multivote_answer_min_count'] != '') ? intval(esc_attr($options['multivote_answer_min_count'])) : '1';
603
604 // Count for multivote answer
605 $poll_multivote_answer_count = (isset($options['poll_allow_multivote_count']) && $options['poll_allow_multivote_count'] != '') ? intval(esc_attr($options['poll_allow_multivote_count'])) : '1';
606
607 // Allow collect user info
608 $poll_allow_collecting_users_data = (isset($options['poll_allow_collecting_users_data']) && $options['poll_allow_collecting_users_data'] == 'on') ? "checked" : "";
609
610 // Show answers icon
611 $poll_answer_icon_check = (isset($options['poll_answer_icon_check']) && $options['poll_answer_icon_check'] == 'on') ? true : false;
612 // Poll answer icon
613 $poll_answer_icon = isset($options['poll_answer_icon']) ? $options['poll_answer_icon'] : 'radio';
614
615 // Every Answer redirect delay
616 $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']) : "";
617
618 // Enable answer redirect delay
619 $poll_enable_answer_redirect_delay = isset($options['poll_enable_answer_redirect_delay']) && $options['poll_enable_answer_redirect_delay'] == "on" ? true : false;
620
621 // Show Answers image after voting
622 $poll_enable_answer_image_after_voting = isset($options['poll_enable_answer_image_after_voting']) && $options['poll_enable_answer_image_after_voting'] == "on" ? true : false;
623
624 // Poll logo image url
625 $poll_logo_image_url = isset($options['poll_logo_url']) && $options['poll_logo_url'] != "" ? esc_attr($options['poll_logo_url']) : "";
626
627 // Check if the poll logo URL is enabled
628 $poll_logo_image_url_check = isset($options['poll_enable_logo_url']) && $options['poll_enable_logo_url'] == "on" ? true : false;
629
630 // Poll question font size
631 $poll_question_font_size_pc = isset($options['poll_question_size_pc']) && $options['poll_question_size_pc'] != "" ? esc_attr($options['poll_question_size_pc']) : 16;
632
633 // Poll question font size for mobile
634 $poll_question_font_size_mobile = isset($options['poll_question_size_mobile']) && $options['poll_question_size_mobile'] != "" ? esc_attr($options['poll_question_size_mobile']) : 16;
635
636 // Poll question image height
637 $poll_question_image_height = isset($options['poll_question_image_height']) && $options['poll_question_image_height'] != "" ? esc_attr($options['poll_question_image_height']) : "";
638
639 // Poll container max-width for mobile
640 $poll_mobile_max_width = (isset($options['poll_mobile_max_width']) && $options['poll_mobile_max_width'] != "") ? esc_attr($options['poll_mobile_max_width']) : '';
641
642 // ==== BUTTON STYLES START ====
643 // Buttons font size
644 $poll_buttons_font_size = (isset($options['poll_buttons_font_size']) && $options['poll_buttons_font_size'] != "") ? esc_attr($options['poll_buttons_font_size']) : '17';
645
646 // Buttons text color
647 $poll_button_text_color = (isset($options['button_text_color']) && $options['button_text_color'] != "") ? $options['button_text_color'] : $options['bg_color'];
648
649 // Buttons background color
650 $poll_button_bg_color = (isset($options['button_bg_color']) && $options['button_bg_color'] != "") ? $options['button_bg_color'] : $main_color;
651
652 // Buttons mobile font size
653 $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';
654
655 // Buttons Left / Right padding
656 $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';
657
658 // Buttons Top / Bottom padding
659 $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';
660
661 // Buttons border radius
662 $poll_buttons_border_radius = (isset($options['poll_buttons_border_radius']) && $options['poll_buttons_border_radius'] != "") ? esc_attr($options['poll_buttons_border_radius']) : '3';
663
664 // Buttons Width
665 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
666
667 // Buttons mobile width
668 $poll_buttons_mobile_width = (isset($options['poll_buttons_mobile_width']) && $options['poll_buttons_mobile_width'] != "") ? esc_attr($options['poll_buttons_mobile_width']) : $poll_buttons_width;
669
670 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
671 // ==== BUTTON STYLES END ====
672
673 // ==== Allow Answer options ====
674 // Allow custom answer
675 $poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : "";
676 // Require admin approval
677 $poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : "";
678
679 // ==== ====
680
681 // Poll answer view type
682 $poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list";
683
684 // Poll answer image height
685 $poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150";
686
687 // Poll answer image height for mobile
688 $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";
689
690 // Poll answer image border radius
691 $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;
692
693 // Poll question image object fit
694 $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";
695
696 // Poll answer image object fit
697 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
698
699 // Poll answer padding
700 $poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10";
701
702 // Poll 1 column in mobile
703 $options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on';
704 $answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false;
705
706 // Poll answer gap
707 $poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10";
708
709 // Poll title font size
710 $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";
711
712 // Poll title font size for mobile
713 $poll_title_font_size_mobile = (isset($options['poll_title_font_size_mobile']) && $options['poll_title_font_size_mobile'] != "") ? absint(intval(esc_attr($options['poll_title_font_size_mobile']))) : "20";
714
715 // Poll title font weight
716 $poll_title_font_weight = (isset($options['poll_title_font_weight']) && $options['poll_title_font_weight'] != "") ? esc_attr($options['poll_title_font_weight']) : "normal";
717
718 // Poll title font weight mobile
719 $poll_title_font_weight_mobile = (isset($options['poll_title_font_weight_mobile']) && $options['poll_title_font_weight_mobile'] != "") ? esc_attr($options['poll_title_font_weight_mobile']) : $poll_title_font_weight;
720
721 // Poll title alignment
722 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
723
724 // Poll title alignment mobile
725 $poll_title_alignment_mobile = ( isset($options['poll_title_alignment_mobile']) && $options['poll_title_alignment_mobile'] != "" ) ? esc_attr($options['poll_title_alignment_mobile']) : $poll_title_alignment;
726
727 // Poll title text transform
728 $poll_title_text_transform = ( isset($options['poll_title_text_transform']) && $options['poll_title_text_transform'] != "" ) ? esc_attr($options['poll_title_text_transform']) : "none";
729
730 // Poll view type
731 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
732
733
734 $options['show_votes_before_voting'] = isset($options['show_votes_before_voting']) ? $options['show_votes_before_voting'] : 'off';
735 $show_votes_before_voting = (isset($options['show_votes_before_voting']) && $options['show_votes_before_voting'] == 'on') ? true : false;
736 $show_votes_before_voting_by = (isset($options['show_votes_before_voting_by']) && $options['show_votes_before_voting_by'] != '') ? $options['show_votes_before_voting_by'] : 'by_count';
737
738
739
740 // ===== Poll text type options start =====
741 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
742 $poll_text_type_limit_type = ( isset($options['poll_text_type_limit_type']) && $options['poll_text_type_limit_type'] != "" ) ? esc_attr($options['poll_text_type_limit_type']) : "characters";
743 $poll_text_type_limit_length = ( isset($options['poll_text_type_limit_length']) && $options['poll_text_type_limit_length'] != "" ) ? esc_attr($options['poll_text_type_limit_length']) : "";
744 $poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false;
745 $poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : "";
746 $poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : "";
747 $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";
748 // ===== Poll text type options end =====
749
750 $poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false;
751 // Enable toggle password visibility
752 $options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off';
753 $poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false;
754 $poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : "";
755 $poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password";
756
757 // == Poll answer box shadow ==
758 // Poll answer box shadow enable
759 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
760 // Poll answer box shadow color
761 $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";
762 // answer hover color
763 $answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color'];
764 // answer bg color
765 $answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)";
766 // Poll answer box shadow parameters
767 $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;
768
769 $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;
770
771 $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;
772
773 // Poll answer box shadow color
774 $poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0;
775
776 $poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false;
777 $poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : '';
778 $poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false;
779 $poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false;
780 $poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false;
781 $poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false;
782
783 // Title text shadow
784 $options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off';
785
786 $enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false;
787
788 $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)';
789
790 $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;
791
792 $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;
793
794 $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;
795
796 // Display form fields labels
797 $options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off';
798 $display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false;
799
800 // Autofill user data
801 $options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off';
802 $autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false;
803
804 // Change the author of the current poll
805 $change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id;
806 $get_current_poll_author_data = get_userdata($change_poll_create_author);
807
808 // Poll main url
809 $poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : '';
810
811 //Open logo URL in new tab
812 $poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : "";
813
814 //Poll Logo title
815 $poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : '';
816
817 //Poll mobile width
818 $width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : '';
819
820 // Social Media links
821 $enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false;
822 $social_links = (isset($options['social_links'])) ? $options['social_links'] : array(
823 'linkedin_link' => '',
824 'facebook_link' => '',
825 'twitter_link' => '',
826 'vkontakte_link' => '',
827 'instagram_link' => '',
828 'youtube_link' => '',
829 'tiktok_link' => '',
830 );
831 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
832 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
834 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
835 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
836 $tiktok_link = isset($social_links['tiktok_link']) && $social_links['tiktok_link'] != '' ? $social_links['tiktok_link'] : '';
837 $instagram_link = isset($social_links['instagram_link']) && $social_links['instagram_link'] != '' ? $social_links['instagram_link'] : '';
838 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
839
840 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
841 $show_chart_type_google_height = (isset($options['show_chart_type_google_height']) && $options['show_chart_type_google_height'] != "") ? $options['show_chart_type_google_height'] : 400;
842
843 $next_poll_id = "";
844 $prev_poll_id = '';
845 if ( isset( $id ) && !is_null( $id ) ) {
846 $next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" );
847 $next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null;
848
849 $prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" );
850 $prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null;
851
852 }
853
854 $get_all_polls = Poll_Maker_Data::get_all_polls();
855
856 ?>
857 <!--LIVE PREVIEW STYLES-->
858 <?php
859 $emoji = array(
860 "<i class='ays_poll_far ays_poll_fa-dizzy'></i>",
861 "<i class='ays_poll_far ays_poll_fa-smile'></i>",
862 "<i class='ays_poll_far ays_poll_fa-meh'></i>",
863 "<i class='ays_poll_far ays_poll_fa-frown'></i>",
864 "<i class='ays_poll_far ays_poll_fa-tired'></i>",
865 ); ?>
866 <style>
867 /*save changing properties of poll in the css-variables*/
868 :root {
869 /*colors*/
870 --theme-main-color: <?php echo esc_attr($options['main_color']); ?>;
871 --theme-bg-color: <?php echo esc_attr($options['bg_color']); ?>;
872 --theme-answer-bg-color: <?php echo (isset($options['answer_bg_color']) && !empty($options['answer_bg_color'])) ? esc_attr($options['answer_bg_color']) : esc_attr($options['bg_color']); ?>;
873 --theme-answer-hover-color: <?php echo (isset($options['answer_hover_color']) && !empty($options['answer_hover_color'])) ? esc_attr($options['answer_hover_color']) : esc_attr($options['text_color']); ?>;
874 --theme-title-bg-color: <?php echo (isset($options['title_bg_color']) && !empty($options['title_bg_color'])) ? esc_attr($options['title_bg_color']) : esc_attr($options['bg_color']); ?>;
875 --theme-text-color: <?php echo esc_attr($options['text_color']); ?>;
876 --theme-button-text-color: <?php echo esc_attr($options['bg_color']); ?>;
877 --theme-icon-color: <?php echo esc_attr($options['icon_color']); ?>;
878 /*options*/
879 --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
880 --poll-border-style: <?php echo esc_attr($options['border_style']); ?>;
881 --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
882 --poll-border-width: <?php echo absint($options['border_width']); ?>px;
883 --poll-box-shadow: <?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) . ' 0px 0px 10px 0px' : ''; ?>;
884 --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . esc_url($options['bg_image']) . ")" : "unset"; ?>;
885 --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
886 --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
887 --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
888
889 }
890
891
892 input[type='button'].ays-poll-btn{
893 font-size: <?php echo esc_attr($poll_buttons_font_size); ?>px;
894 padding: <?php echo esc_attr($poll_buttons_top_bottom_padding). "px ". esc_attr($poll_buttons_left_right_padding). "px"; ?>;
895 border-radius: <?php echo esc_attr($poll_buttons_border_radius); ?>px;
896 width: <?php echo esc_attr($poll_buttons_width); ?>px;
897 }
898
899 @media (max-width: 768px) {
900 input[type='button'].ays-poll-btn{
901 width: <?php echo esc_attr($poll_buttons_mobile_width); ?>px;
902 }
903 }
904 </style>
905 <!--LIVE PREVIEW STYLES END-->
906 <div class="wrap">
907 <div class="ays-poll-heading-box">
908 <div class="ays-poll-wordpress-user-manual-box">
909 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
910 <i class="ays_poll_fas ays_fa_file_text"></i>
911 <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__("View Documentation", "poll-maker"); ?></span>
912 </a>
913 </div>
914 </div>
915 <div class="container-fluid">
916 <form class="ays-poll-form" id="ays-poll-form" method="post">
917 <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo esc_attr($active_tab); ?>"/>
918 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
919 <input type="hidden" name="ays_poll_author" value="<?php echo esc_attr(json_encode($poll_author)); ?>">
920 <input type="hidden" id="poll_choose_type_first" value="<?php echo esc_attr($poll['type']); ?>" >
921 <h1 class="wp-heading-inline">
922 <?php
923 echo esc_html($heading);
924 ?>
925 </h1>
926 <div>
927 <div class="ays-poll-subtitle-main-box">
928 <p class="ays-subtitle ays-poll-open-list">
929 <strong class="ays_poll_title_in_top"><?php echo esc_html($poll['title']); ?></strong>
930 <?php if(isset($id) && count($get_all_polls) > 1):?>
931 <img class="ays-poll-open-polls-list" src="<?php echo esc_url( POLL_MAKER_AYS_ADMIN_URL ) .'/images/icons/list-icon.svg'; ?>">
932 <?php endif; ?>
933 </p>
934 <?php if(isset($id) && count($get_all_polls) > 1):?>
935 <div class="ays-poll-polls-data">
936 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
937 <?php ?>
938 <label class="ays-poll-message-vars-each-data-label">
939 <input type="radio" class="ays-poll-polls-each-data-checker" hidden id="ays_poll_message_var_count_<?php echo esc_attr($var_counter); ?>" name="ays_poll_message_var_count">
940 <div class="ays-poll-polls-each-data">
941 <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo esc_attr($var); ?>">
942 <a href="?page=poll-maker-ays&action=edit&poll=<?php echo esc_attr($var_name['id']); ?>" target="_blank" class="ays-poll-go-to-polls"><span><?php echo esc_attr(stripslashes($var_name['title'])); ?></span></a>
943 </div>
944 </label>
945 <?php endforeach ?>
946 </div>
947 <?php endif; ?>
948 </div>
949 <?php if($id !== null): ?>
950 <div class="row">
951 <div class="col-sm-3">
952 <label> <?php echo esc_html__( "Shortcode text for editor", "poll-maker" ); ?> </label>
953 </div>
954 <div class="col-sm-9">
955 <p style="font-size:14px; font-style:italic;">
956 <?php echo esc_html__("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
957 <strong class="ays-poll-shortcode-box" data-toggle="tooltip" title="<?php echo esc_html__('Click for copy.',"poll-maker");?>" onClick="selectElementContents(this)" style="font-size:16px; font-style:normal;"><?php echo "[ays_poll id=". esc_attr($id) ."]"; ?></strong>
958 <?php echo " " .esc_html__( "and paste it at the desired place in the editor.", "poll-maker"); ?>
959 </p>
960 </div>
961 </div>
962 <?php endif;?>
963 </div>
964 <hr>
965 <div class='ays-all-container'>
966 <div class='ays-all-sub-container'>
967 <div class="ays-top-menu-wrapper">
968 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
969 <div class="ays-top-menu">
970 <div class="nav-tab-wrapper ays-top-tab-wrapper">
971 <a href="#tab1" data-title="General"
972 class="nav-tab <?php echo $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
973 <?php echo esc_html__('General', "poll-maker"); ?>
974 </a>
975 <a href="#tab2" data-title="Styles"
976 class="nav-tab <?php echo $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
977 <?php echo esc_html__('Styles', "poll-maker"); ?>
978 </a>
979 <a href="#tab3" data-title="Settings"
980 class="nav-tab <?php echo $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
981 <?php echo esc_html__('Settings', "poll-maker"); ?>
982 </a>
983 <a href="#tab8" data-title="Results Settings"
984 class="nav-tab <?php echo $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
985 <?php echo esc_html__('Results Settings', "poll-maker"); ?>
986 </a>
987 <a href="#tab4" data-title="Limitations"
988 class="nav-tab <?php echo $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
989 <?php echo esc_html__("Limitations", "poll-maker"); ?>
990 </a>
991 <a href="#tab5" data-title="Userdata"
992 class="nav-tab <?php echo $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
993 <?php echo esc_html__('User Data', "poll-maker"); ?>
994 </a>
995 <a href="#tab6" data-title="Email"
996 class="nav-tab <?php echo $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
997 <?php echo esc_html__('Email', "poll-maker"); ?>
998 </a>
999 <a href="#tab7" data-title="Integrations"
1000 class="nav-tab <?php echo $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
1001 <?php echo esc_html__('Integrations', "poll-maker"); ?>
1002 </a>
1003 </div>
1004 <div class='top-menu-buttons-container'>
1005 <?php
1006 echo wp_kses($loader_iamge, $loader_iamge_allow);
1007 $save_attributes = array(
1008 'id' => 'ays-button-top-apply',
1009 'title' => 'Ctrl + s',
1010 'data-toggle' => 'tooltip',
1011 'data-delay'=> '{"show":"1000"}'
1012 );
1013 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
1014 $save_close_attributes = array('id' => 'ays-button-top');
1015 submit_button( esc_html__('Save and close', "poll-maker"), 'primary ays-top-menu-save-and-close ays-bottom-menu-buttons', 'ays_submit_top', false, $save_close_attributes);
1016 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
1017 ?>
1018 </div>
1019 </div>
1020 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
1021 </div>
1022 <div id="tab1" class="ays-poll-tab-content <?php echo $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
1023 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
1024 <p class="ays-subtitle" style="margin-bottom:0;">
1025 <?php echo esc_html__('General options', "poll-maker"); ?>
1026 </p>
1027 <?php if ($poll_main_url != ''): ?>
1028 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
1029 <a data-toggle="tooltip" title="<?php echo esc_attr__("After clicking on the View button you will be redirected to the particular poll link.", "poll-maker");?>" href="<?php echo $poll_main_url != '' ? esc_url($poll_main_url) : 'javascript:void(0)'; ?>" target="<?php echo $poll_main_url != '' ? '_blank' : ''; ?>" type="button" class="button button-primary" style="margin-right: 12px;">
1030 <i class="fa fa-eye" aria-hidden="true"></i>
1031 <span style="margin-left: 5px;"><?php echo esc_html__( 'View', "poll-maker" ); ?></span>
1032 </a>
1033 </div>
1034 <?php endif; ?>
1035 </div>
1036 <hr>
1037 <div class="form-group row">
1038 <div class="col-sm-3">
1039 <label for='ays-poll-title'>
1040 <?php echo esc_html__('Title', "poll-maker"); ?>
1041 <a class="ays_help" data-toggle="tooltip"
1042 data-placement="top"
1043 title="<?php echo esc_html__("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
1044 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1045 </a>
1046 </label>
1047 </div>
1048 <div class="col-sm-9 ays_divider_left">
1049 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
1050 data-required="false" value="<?php echo esc_attr($poll_title); ?>"/>
1051 </div>
1052 </div>
1053 <hr>
1054 <div class="form-group row" style="display: flex;">
1055 <div class="col-sm-3">
1056 <label for='ays-poll-question'>
1057 <?php echo esc_html__('Question', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Write the main content/question, which will be shown inside the poll.", "poll-maker"); ?>">
1058 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1059 </a>
1060 <a href="javascript:void(0)" class="add-question-image button">
1061 <?php echo esc_html($image_text); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Add an image to the question.", "poll-maker"); ?>">
1062 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1063 </a></a>
1064 </label>
1065 <div class="ays-poll-question-image-container" style="<?php echo esc_attr($style); ?>">
1066 <span class="ays-remove-question-img"></span>
1067 <img src="<?php echo $poll['image']; ?>" id="ays-poll-img"/>
1068 <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?php echo $poll['image']; ?>"/>
1069 </div>
1070 </div>
1071 <div class="col-sm-9">
1072 <?php
1073 $content = stripslashes($poll["question"]);
1074 $editor_id = 'ays-poll-question';
1075 $settings = array(
1076 'editor_height' => $poll_wp_editor_height,
1077 'textarea_name' => 'ays_poll_question',
1078 'editor_class' => 'ays-textarea',
1079 'media_buttons' => true,
1080 'tinymce' => array(
1081 "init_instance_callback" => "function(editor) {
1082 editor.on('Change', function(e) {
1083 document.querySelector('.box-apm .ays_question').innerHTML = e.level.content;
1084 });
1085 }",
1086 )
1087 );
1088 wp_editor($content, $editor_id, $settings);
1089 ?>
1090 </div>
1091 </div>
1092 <hr>
1093
1094 <?php if ($poll['type'] == 'choosing') : ?>
1095 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
1096 <div class="col-sm-3">
1097 <label for="ays-poll-answer" >
1098 <?php echo esc_html__('Options', "poll-maker"); ?>
1099 </label>
1100 </div>
1101 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1102 <div>
1103 <div class='add-option-top-container'>
1104 <a class="ays-add-answer ays-click-once" id='add-answer'>
1105 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1106 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1107 </a>
1108 </div>
1109 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1110 <thead>
1111 <tr class="ui-state-default">
1112 <th class="th-150"><?php echo esc_html__('Ordering', "poll-maker"); ?></th>
1113 <th style="width: 100vw;"><?php echo esc_html__('Option', "poll-maker"); ?></th>
1114 <th class="th-350 ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"><?php echo esc_html__('Redirect URL', "poll-maker"); ?></th>
1115 <th class="th-150 only_pro"><?php echo esc_html__('Image', "poll-maker"); ?></th>
1116 <th class="th-150"><?php echo esc_html__('Delete', "poll-maker"); ?></th>
1117 </tr>
1118 </thead>
1119 <tbody class="">
1120 <?php
1121 $answers = $poll['answers'];
1122 $answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count;
1123 $loop_iteration = 0;
1124 $rows_count = count($answers);
1125 $ays_key_enter = "";
1126 $user_add_html = '';
1127 $user_add_html_allow = array(
1128 'input' => array(
1129 'type' => array(),
1130 'class' => array(),
1131 'style' => array(),
1132 'title' => array(),
1133 'checked' => array()
1134 )
1135 );
1136 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1137 foreach ($answers as $index => $answer) {
1138 $user_add_html = '';
1139 $class = (($index + 1) % 2 == 0) ? "even" : "";
1140 $answer_val = stripslashes(htmlentities($answer["answer"]));
1141 $answer_id = $answer["id"];
1142 $answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;';
1143 $answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img'];
1144 $answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : '';
1145 $user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false;
1146 $show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false;
1147
1148 if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on")
1149 && (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) {
1150 $disable_show_user_added = '';
1151 }else{
1152 $disable_show_user_added = 'display: none;';
1153 }
1154
1155 $show_user_added_checkbox = '';
1156 if ($show_user_added == 1) {
1157 $show_user_added_checkbox = 'checked';
1158 }
1159 if ( $user_added ) {
1160 $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 .' />';
1161 }
1162
1163 if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){
1164 $check_show_user_added = "1";
1165 }elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) {
1166 $check_show_user_added = "0";
1167 }else{
1168 $check_show_user_added = "1";
1169 }
1170
1171 if($loop_iteration == $rows_count - 1){
1172 $ays_key_enter = "ays_poll_enter_key";
1173 }
1174 $loop_iteration++;
1175 ?>
1176 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($class); ?>">
1177 <td class="ays-sort">
1178 <div class='ays_poll_move_arrows'></div>
1179 <td>
1180 <div class="ays_poll_display_flex">
1181 <input type="hidden" class="<?php echo ( $user_added ) ? 'ays_show_user_added_hid' : ''; ?>" name="ays_poll_show_user_added[]" value="<?php echo esc_attr($check_show_user_added) ?>" />
1182 <input type="text" class="ays-text-input ays-answer-value <?php echo esc_attr($ays_key_enter);?>" name="ays-poll-answers[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_html($answer_val); ?>">
1183 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1184 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_attr($answer_id); ?>">
1185 </div>
1186 </td>
1187 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1188 <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo esc_attr($answer_id); ?>" name="ays_submit_redirect_url[]" value="<?php echo esc_url($answer_redirect); ?>"/>
1189 </td>
1190 <td>
1191 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1192 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1193 </label>
1194 <div class="ays-poll-answer-image-container" style="<?php echo esc_attr($answer_img_class); ?>">
1195 <span class="ays-poll-remove-answer-img"></span>
1196 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1197 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1198 </div>
1199 </td>
1200 <td>
1201 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($index);?>" data-lid="<?php echo esc_attr($index);?>">
1202 </a>
1203 </td>
1204 </tr>
1205 <?php
1206 }
1207 ?>
1208 <?php
1209 else:
1210 for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) :
1211 if($loop_iteration == intval($answer_default_count) - 1){
1212 $ays_key_enter = "ays_poll_enter_key";
1213 }
1214 $loop_iteration++;
1215 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1216 ?>
1217 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($ays_even_or_not); ?>">
1218 <td class="ays-sort">
1219 <div class='ays_poll_move_arrows'></div>
1220 </td>
1221 <td class="ays-choosing-answer-container">
1222 <div class="ays_poll_display_flex">
1223 <input type="text" class="ays-text-input ays-answer-value <?php echo esc_attr($ays_key_enter);?>" name="ays-poll-answers[]" data-id="<?php echo esc_attr($dac_i);?>" value="<?php echo esc_html__("Option", "poll-maker") . " " . (esc_attr($dac_i+1)); ?>">
1224 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1225 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($dac_i);?>" value="0">
1226 </div>
1227 </td>
1228 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1229 <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo esc_attr($dac_i); ?>" name="ays_submit_redirect_url[]" value=""/>
1230 </td>
1231 <td>
1232 <label class='ays-label' for='ays-answer'>
1233 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
1234 </label>
1235 <div class="ays-poll-answer-image-container" style="display:none;">
1236 <span class="ays-poll-remove-answer-img"></span>
1237 <img src="" class="ays-poll-answer-img"/>
1238 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/>
1239 </div>
1240 </td>
1241
1242 <td>
1243 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($dac_i);?>" data-lid="<?php echo esc_attr($dac_i);?>">
1244 </a>
1245 </td>
1246 </tr>
1247 <?php
1248 endfor;
1249 endif;
1250 ?>
1251 </tbody>
1252 </table>
1253 <div class='add-option-top-container'>
1254 <a class="ays-add-answer" id='add-answer'>
1255 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1256 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1257 </a>
1258 </div>
1259 <input type="hidden" id="ays_poll_answers_count" value="<?php echo esc_attr($answers_count); ?>">
1260 <input type="hidden" id="ays_answer_checker" value="<?php echo esc_attr($checking_answer_hover_live); ?>">
1261 </div>
1262
1263 </div>
1264 </div>
1265 <?php endif; ?>
1266 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1267 <div class="form-group row" style="display: flex;">
1268 <div class="col-sm-3">
1269 <label for="ays-poll-answer" >
1270 <?php echo esc_html__('Option Settings', "poll-maker")?>
1271 </label>
1272 </div>
1273 <div class="col-sm-9">
1274 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
1275 <div class="col-sm-12">
1276 <div class="form-group row">
1277 <div class="col-1">
1278 <input type="checkbox" class="ays-enable-timer1" id="ays_redirect_after_submit" name="ays_redirect_after_submit" value="on" <?php echo $redirect_after_submit ? 'checked' : '' ?>/>
1279 </div>
1280 <div class="col-4 unset-padding-left">
1281 <label for="ays_redirect_after_submit" >
1282 <?php echo esc_html__('Answer Redirection', "poll-maker")?>
1283 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable redirection to the custom URL(s) after the user votes the poll. Assign different URLs to each answer separately.', "poll-maker")?>">
1284 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1285 </a>
1286 </label>
1287 </div>
1288 </div>
1289 </div>
1290 </div>
1291 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1292 <div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent">
1293 <div class="col-sm-12">
1294 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1295 <div class="col-1">
1296 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1297 value="on" <?php echo esc_attr($poll_allow_answer) ?>>
1298 </div>
1299 <div class="col-4 unset-padding-left">
1300 <label for="ays_poll_allow_add_answers">
1301 <?php echo esc_html__('Allow custom answer', "poll-maker"); ?>
1302 <a class="ays_help" data-toggle="tooltip"
1303 data-placement="top"
1304 title="<?php echo esc_html__("Allow users to add their custom answer.", "poll-maker"); ?>">
1305 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1306 </a>
1307 </label>
1308 </div>
1309 <div class="col-7 allow_add_answers_not_show_up_container">
1310 <div class="ays_toggle_target" <?php echo esc_attr($poll_allow_answer) ? '' : 'style="display:none;"'; ?>>
1311 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1312 <div class="col-2 ays_divider_left">
1313 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1314 value="on" <?php echo esc_attr($poll_allow_answer_require) ?> />
1315 </div>
1316 <div class="col-10">
1317 <label for="ays_poll_allow_answer_require">
1318 <?php echo esc_html__('Require admin approval', "poll-maker"); ?>
1319 <a class="ays_help" data-toggle="tooltip"
1320 data-placement="top"
1321 title="<?php echo esc_html__("If the option is enabled, the answers added by users will require admin approval to be shown up inside the poll (public).", "poll-maker"); ?>">
1322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1323 </a>
1324 </label>
1325 </div>
1326 <?php
1327 $poll_answers = $poll['answers'];
1328 $is_user_added_exist = 0;
1329 foreach ($poll_answers as $index => $answer) {
1330 if($answer['user_added'] == 1) {
1331 $is_user_added_exist++;
1332 }
1333 }
1334 if($is_user_added_exist > 0):
1335 ?>
1336 <div class="col-12 row ays_toggle_target" <?php echo ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1337 <div class="col-2 ays_divider_left" style="align-items: center;">
1338 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1339 </div>
1340 <div class="col-10">
1341 <label for="ays_poll_require_approve_select_all">
1342 <?php echo esc_html__('Select all', "poll-maker"); ?>
1343 <a class="ays_help" data-toggle="tooltip"
1344 data-placement="top"
1345 title="<?php echo esc_html__("If the option is enabled, all the custom answers will be ticked in bulk and will be displayed for the poll on the front end.", "poll-maker"); ?>">
1346 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1347 </a>
1348 </label>
1349 </div>
1350 </div>
1351 <?php
1352 endif;
1353 ?>
1354 </div>
1355 </div>
1356 </div>
1357 </div>
1358 </div>
1359 </div> <!-- Allow custom answer -->
1360 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1361 <div class="if-voting poll-type-block form-group row">
1362 <div class="col-sm-3">
1363 <label for="ays-poll-vote-type">
1364 <?php echo esc_html__('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Select the appearance of the poll.", "poll-maker"); ?>">
1365 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1366 </a></label>
1367 </div>
1368 <div class="col-sm-9 answers-col">
1369 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1370 <option value='hand' <?php echo $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1371 <?php echo esc_html__('Hand', "poll-maker"); ?>
1372 </option>
1373 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1374 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1375 </option>
1376 </select>
1377 <?php
1378 switch ($poll['view_type']) {
1379 case 'hand':
1380 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1381 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1382 break;
1383
1384 case 'emoji':
1385 $vote_res = 'ays_poll_fas ays_poll_fa-smile';
1386 $rate_res = 'ays_poll_fas ays_poll_fa-smile';
1387 break;
1388
1389 case 'star':
1390 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1391 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1392 break;
1393
1394 default:
1395 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1396 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1397 break;
1398 }
1399 ?>
1400 <i id="vote-res" class="<?php echo esc_attr($vote_res); ?>"></i>
1401 </div>
1402 </div>
1403 <div class="if-rating poll-type-block form-group row">
1404 <div class="col-sm-3">
1405 <label for="ays-poll-rate-type">
1406 <?php echo esc_html__('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Select the appearance and the scale of assessment of the poll.", "poll-maker"); ?>">
1407 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1408 </a></label>
1409 </div>
1410 <div class="col-sm-9 answers-col">
1411 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1412 <option value='star' <?php echo $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1413 <?php echo esc_html__('Stars', "poll-maker"); ?>
1414 </option>
1415 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1416 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1417 </option>
1418 </select>
1419 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1420 <option value="<?php echo count($poll['answers']); ?>" selected>
1421 <?php echo count($poll['answers']); ?>
1422 </option>
1423 </select>
1424 <i id="rate-res" class="<?php echo esc_attr($rate_res); ?>"></i>
1425 </div>
1426 </div>
1427 <hr class="if-voting if-rating">
1428 <div class="form-group row">
1429 <div class="col-sm-12 only_pro" style="padding:15px;">
1430 <div class="pro_features pro_features_popup">
1431 <div class="pro-features-popup-conteiner">
1432 <div class="pro-features-popup-title">
1433 <?php echo esc_html__("Add Fake Votes", "poll-maker"); ?>
1434 </div>
1435 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1436 <p>
1437 <?php echo esc_html__("Have you just created your poll and want it to look trustworthy and popular? You can add this \"Add Fake Votes\" feature to your polls and increase the number of votes for your polls by making them look more credible. Add as many fake votes as you want to every poll option, then remove them easily.", "poll-maker"); ?>
1438 </p>
1439 </div>
1440 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-add-fake-votes-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
1441 <?php echo esc_html__("Pricing", "poll-maker"); ?>
1442 </div>
1443 </div>
1444 </div>
1445 <div class="pro_features" style="justify-content:flex-end;">
1446 </div>
1447 <div class="form-group row">
1448 <div class="col-1">
1449 <input type="checkbox" name="ays_add_f_votes"
1450 value="on">
1451 </div>
1452 <div class="col-11 unset-padding-left">
1453 <label for="ays_add_f_votes">
1454 <?php echo esc_html__('Add fake votes', "poll-maker"); ?>
1455 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Allow users to add their fake votes to each option.", "poll-maker"); ?>">
1456 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1457 </a>
1458 </label>
1459 </div>
1460 </div>
1461 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1462 <div class="ays-poll-new-upgrade-button-box">
1463 <div>
1464 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1465 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1466 </div>
1467 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1468 </div>
1469 </a>
1470 <div class="ays-poll-new-watch-video-button-box">
1471 <div>
1472 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
1473 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
1474 </div>
1475 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
1476 </div>
1477 </div>
1478 </div>
1479 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1480 <div class="if-text poll-type-block form-group row">
1481 <div class="col-sm-3">
1482 <label for="">
1483 <?php echo esc_html__('Choose text type', "poll-maker"); ?>
1484 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1485 <?php echo esc_html__( 'Choose the type of the question:' , "poll-maker" ); ?>
1486 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'Short text', "poll-maker" ); ?></strong><?php echo esc_html__( ' - a question that requires to be answered by writing short text.' , "poll-maker" ); ?></p>
1487 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'Paragraph', "poll-maker" ); ?></strong><?php echo esc_html__( ' - a question that requires to be answered by writing text.', "poll-maker" ); ?></p>">
1488 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1489 </a>
1490 </label>
1491 </div>
1492 <div class="col-sm-9 answers-col row">
1493 <div class="d-flex" style="padding: 0 15px;">
1494 <div class="form-check-inline">
1495 <input type="radio" id="ays_poll_text_type_short" name="ays_poll_text_type" value="short_text" class="ays-poll-text-types-type" <?php echo ($poll_view_type_for_text == "short_text") ? "checked" : ""; ?>>
1496 <label for="ays_poll_text_type_short"><?php echo esc_html__("Short text", "poll-maker");?>
1497 </label>
1498 </div>
1499 <div class="form-check-inline">
1500 <input type="radio" id="ays_poll_text_type_paragraph" name="ays_poll_text_type" value="paragraph" class="ays-poll-text-types-type" <?php echo ($poll_view_type_for_text == "paragraph") ? "checked" : ""; ?>>
1501 <label for="ays_poll_text_type_paragraph"><?php echo esc_html__("Paragraph", "poll-maker");?>
1502 </label>
1503 </div>
1504 </div>
1505 </div>
1506 </div>
1507 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1508 <div class="if-text poll-type-block form-group row">
1509 <div class="col-sm-3">
1510 <label for='ays_poll_text_type_placeholder'>
1511 <?php echo esc_html__("Placeholder", "poll-maker"); ?>
1512 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1513 title="<?php echo esc_html__("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1514 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1515 </a>
1516 </label>
1517 </div>
1518 <div class="col-sm-3 ays_divider_left">
1519 <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo esc_attr($poll_text_type_placeholder); ?>">
1520 </div>
1521 </div>
1522 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1523 <div class="if-text poll-type-block form-group row">
1524 <div class="col-sm-3">
1525 <label for='ays_poll_text_type_width'>
1526 <?php echo esc_html__("Width", "poll-maker"); ?>
1527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1528 title="<?php echo esc_html__("Specify the width of the text field.", "poll-maker"); ?>">
1529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1530 </a>
1531 </label>
1532 </div>
1533 <div class="col-sm-3 ays_divider_left">
1534 <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo esc_attr($poll_text_type_width); ?>">
1535 </div>
1536 <div class="col-sm-6">
1537 <select class="ays-text-input ays-text-input-short ays_enable_answer_field ays_poll_select_short" name="ays_poll_text_type_width_type" id="ays_poll_text_type_width_type">
1538 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
1539 <option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option>
1540 </select>
1541 </div>
1542 </div>
1543 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1544 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1545 <div class="col-sm-3">
1546 <label for="ays_poll_enable_question_length">
1547 <?php echo esc_html__('Maximum length of a text field', "poll-maker"); ?>
1548 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php echo esc_html__( 'Restrict the number of characters/words to be inserted in the text field by the user.' , "poll-maker" ); ?>">
1549 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1550 </a>
1551 </label>
1552 </div>
1553 <div class="col-sm-1 ays_divider_left">
1554 <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' : ''; ?>>
1555 </div>
1556 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1557 <div class="form-group row">
1558 <div class="col-sm-4">
1559 <label for="ays_poll_question_limit_text_type">
1560 <?php echo esc_html__('Limit by', "poll-maker"); ?>
1561 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred type of limitation.', "poll-maker"); ?>">
1562 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1563 </a>
1564 </label>
1565 </div>
1566 <div class="col-sm-8">
1567 <select class="ays-text-input ays-text-input-select" id="ays_poll_question_limit_text_type" name="ays_poll_question_limit_text_type" style="max-width: 100%;">
1568 <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo esc_html__( 'Characters' , "poll-maker" ); ?></option>
1569 <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo esc_html__( 'Words' , "poll-maker" ); ?></option>
1570 </select>
1571 </div>
1572 </div>
1573 <hr>
1574 <div class="form-group row">
1575 <div class="col-sm-4">
1576 <label for="ays_poll_question_text_max_length">
1577 <?php echo esc_html__('Length', "poll-maker"); ?>
1578 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Indicate the length of the characters/words.', "poll-maker"); ?>">
1579 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1580 </a>
1581 </label>
1582 </div>
1583 <div class="col-sm-8">
1584 <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%;">
1585 </div>
1586 </div>
1587 <hr>
1588 <div class="form-group row">
1589 <div class="col-sm-4">
1590 <label for="ays_poll_question_enable_text_message">
1591 <?php echo esc_html__('Show word/character counter', "poll-maker"); ?>
1592 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tick the checkbox and the live box will appear under the text field. It will indicate the current state of word/character usage.', "poll-maker"); ?>">
1593 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1594 </a>
1595 </label>
1596 </div>
1597 <div class="col-sm-8">
1598 <div class="form-check form-check-inline">
1599 <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" : ""; ?> />
1600 </div>
1601 </div>
1602 </div>
1603 </div>
1604 </div>
1605 </div>
1606 </div>
1607 </div>
1608 <div id="tab2" class="ays-poll-tab-content <?php echo $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1609 <p class="ays-subtitle">
1610 <?php echo esc_html__('Styling options', "poll-maker"); ?>
1611 </p>
1612 <hr>
1613 <div class="form-group row ays-poll-all-themes-container">
1614 <div class="col-sm-1">
1615 <label for='ays-poll-theme' class="ays_label_flex">
1616 <?php echo esc_html__('Theme', "poll-maker"); ?>
1617 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1618 title="<?php echo esc_html__("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1619 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1620 </a>
1621 </label>
1622 </div>
1623 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1624 <div class="ays_poll_theme_image_div col">
1625 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1626 <p><?php echo esc_html__('Minimal', "poll-maker") ?></p>
1627 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/minimal.png' ?>"
1628 alt="<?php echo esc_html__('Minimal', "poll-maker") ?>">
1629 </label>
1630 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1631 value="3" <?php echo ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1632 </div>
1633 <div class="ays_poll_theme_image_div col">
1634 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1635 <p><?php echo esc_html__('Classic Light', "poll-maker") ?></p>
1636 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicLight.png' ?>"
1637 alt="<?php echo esc_html__('Classic Light', "poll-maker") ?>">
1638 </label>
1639 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1640 value="1" <?php echo ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1641 </div>
1642 <div class="ays_poll_theme_image_div col">
1643 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1644 <p><?php echo esc_html__('Classic Dark', "poll-maker") ?></p>
1645 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicDark.png' ?>"
1646 alt="<?php echo esc_html__('Classic Dark', "poll-maker") ?>">
1647 </label>
1648 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1649 value="2" <?php echo ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1650 </div>
1651 <div class="col">
1652 <div class="form-group row" style="margin: 0px;">
1653 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
1654 <div class="pro_features" style="justify-content:flex-end;">
1655 </div>
1656 <div class="ays_poll_theme_image_div_pro">
1657 <div class="ays_poll_theme_image_div col apm-pro-feature">
1658 <label class="ays-poll-theme-item">
1659 <p>Light Shape</p>
1660 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/LightShape.png' ?>"
1661 alt="Light Shape"
1662 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1663 </label>
1664 </div>
1665 <div class="ays_poll_theme_image_div col apm-pro-feature">
1666 <label class="ays-poll-theme-item">
1667 <p>Dark Shape</p>
1668 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/DarkShape.png' ?>"
1669 alt="Light Shape"
1670 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1671 </label>
1672 </div>
1673 <div class="ays_poll_theme_image_div col apm-pro-feature">
1674 <label class="ays-poll-theme-item">
1675 <p>Coffee Fluid</p>
1676 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/CoffeeFluid.png' ?>"
1677 alt="Coffee Fluid"
1678 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1679 </label>
1680 </div>
1681 <div class="ays_poll_theme_image_div col apm-pro-feature">
1682 <label class="ays-poll-theme-item">
1683 <p><?php echo esc_html__("Aquamarine", "poll-maker") ?></p>
1684 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/Aquamarine.png' ?>"
1685 alt="Aquamarine"
1686 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1687 </label>
1688 </div>
1689 </div>
1690 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1691 <div class="ays-poll-new-upgrade-button-box">
1692 <div>
1693 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1694 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1695 </div>
1696 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1697 </div>
1698 </a>
1699 </div>
1700 </div>
1701 </div>
1702 </div>
1703 </div>
1704 <hr>
1705 <div class="col ays-poll-styles-page-main-container">
1706 <div class="row">
1707 <div class="col-lg-6 col-sm-12">
1708 <div class="ays-poll-accordion-options-main-container">
1709 <div class="ays-poll-accordion-header">
1710 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
1711 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Poll styles', "poll-maker"); ?></p>
1712 </div>
1713 <hr class="ays-poll-bolder-hr"/>
1714 <div class="ays-poll-accordion-body">
1715 <div class="form-group row">
1716 <div class="col-sm-4">
1717 <label for='ays-poll-main-color'>
1718 <?php echo esc_html__('Main Color', "poll-maker"); ?>
1719 <a class="ays_help"
1720 data-toggle="tooltip"
1721 data-placement="top"
1722 title="<?php echo esc_html__("Specify the color of the poll's main attributes. It includes border color, the color of the rate percentage and the background color of the vote button.", "poll-maker"); ?>">
1723 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1724 </a>
1725 </label>
1726 </div>
1727 <div class="col-sm-8 ays_divider_left">
1728 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1729 name='ays_poll_main_color'
1730 value="<?php echo !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1731 </div>
1732 </div>
1733 <hr>
1734 <div class="form-group row">
1735 <div class="col-sm-4">
1736 <label for='ays-poll-text-color'>
1737 <?php echo esc_html__('Text Color', "poll-maker"); ?>
1738 <a class="ays_help"
1739 data-toggle="tooltip"
1740 data-placement="top"
1741 title="<?php echo esc_html__("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1743 </a>
1744 </label>
1745 </div>
1746 <div class="col-sm-8 ays_divider_left">
1747 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1748 name='ays_poll_text_color'
1749 value="<?php echo !empty($options['text_color']) ? esc_attr($options['text_color']) : esc_attr($default_colors['text_color']); ?>"/>
1750 </div>
1751 </div>
1752 <hr>
1753 <div class="form-group row">
1754 <div class="col-sm-4">
1755 <label for='ays-poll-icon-color'>
1756 <?php echo esc_html__('Icons Color', "poll-maker"); ?>
1757 <a class="ays_help"
1758 data-toggle="tooltip"
1759 data-placement="top"
1760 title="<?php echo esc_html__("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1761 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1762 </a>
1763 </label>
1764 </div>
1765 <div class="col-sm-8 ays_divider_left">
1766 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1767 name='ays_poll_icon_color'
1768 value="<?php echo !empty($options['icon_color']) ? esc_attr($options['icon_color']) : esc_attr($default_colors['icon_color']); ?>"/>
1769 </div>
1770 </div>
1771 <hr>
1772 <div class="form-group row">
1773 <div class="col-sm-4">
1774 <label for='ays-poll-bg-color'>
1775 <?php echo esc_html__('Background Color', "poll-maker"); ?>
1776 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Specify the background color of the poll.", "poll-maker"); ?>">
1777 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1778 </a>
1779 </label>
1780 </div>
1781 <div class="col-sm-8 ays_divider_left">
1782 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1783 name='ays_poll_bg_color'
1784 value="<?php echo !empty($options['bg_color']) ? esc_attr($options['bg_color']) : esc_attr($default_colors['bg_color']); ?>"/>
1785 </div>
1786 </div>
1787 <hr>
1788 <div class="form-group row">
1789 <div class="col-sm-4">
1790 <label for='ays-poll-bg-image'>
1791 <?php echo esc_html__('Background Image', "poll-maker"); ?>
1792 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1793 title="<?php echo esc_html__("Add a background image to the poll. If you add a background image, the background color will not be applied.", "poll-maker"); ?>">
1794 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1795 </a>
1796 </label>
1797 </div>
1798 <div class="col-sm-8 ays_divider_left">
1799 <a href="javascript:void(0)" class="add-bg-image button">
1800 <?php echo esc_html($image_text_bg); ?>
1801 </a>
1802 <div class="form-group row" style="<?php echo esc_attr($style_bg); ?>">
1803 <div class="ays-poll-bg-image-container">
1804 <span class="ays-remove-bg-img"></span>
1805 <img src="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"
1806 id="ays-poll-bg-img"/>
1807 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1808 value="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"/>
1809 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1810 value="<?php echo isset($options['poll_bg_image_position']) ? esc_attr($options['poll_bg_image_position']) : ""; ?>"/>
1811 </div>
1812 </div>
1813 <div style="<?php echo esc_attr($style_bg_options); ?>" id="ays-poll-background-image-options">
1814 <hr>
1815 <div class="form-group row">
1816 <div class="col-sm-12">
1817 <label for="ays_poll_bg_image_position">
1818 <?php echo esc_html__( "Background image position", "poll-maker" ); ?>
1819 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The position of background image of the polls',"poll-maker")?>">
1820 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1821 </a>
1822 </label>
1823 <select id="ays_poll_bg_image_position" name="ays_poll_bg_image_position" class="ays-text-input ays-select-short ays-text-input-short ays_poll_aysDropdown" style="display:inline-block;">
1824 <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo esc_html__( "Left Top", "poll-maker" ); ?></option>
1825 <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo esc_html__( "Left Center", "poll-maker" ); ?></option>
1826 <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Left Bottom", "poll-maker" ); ?></option>
1827 <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo esc_html__( "Center Top", "poll-maker" ); ?></option>
1828 <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo esc_html__( "Center Center", "poll-maker" ); ?></option>
1829 <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Center Bottom", "poll-maker" ); ?></option>
1830 <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo esc_html__( "Right Top", "poll-maker" ); ?></option>
1831 <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo esc_html__( "Right Center", "poll-maker" ); ?></option>
1832 <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Right Bottom", "poll-maker" ); ?></option>
1833 </select>
1834 </div>
1835 </div>
1836 <hr>
1837 <div class="form-group row">
1838 <div class="col-sm-8">
1839 <label for="ays_poll_bg_img_in_finish_page">
1840 <?php echo esc_html__( "Hide background image on result page", "poll-maker" ); ?>
1841 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('If this option is enabled background image of poll will disappear on the result page.',"poll-maker")?>">
1842 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1843 </a>
1844 </label>
1845 </div>
1846 <div class="col-sm-4">
1847 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1848 id="ays_poll_bg_img_in_finish_page"
1849 name="ays_poll_bg_img_in_finish_page"
1850 <?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/>
1851 <label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label>
1852 </div>
1853 </div>
1854 </div>
1855 </div>
1856 </div>
1857 <hr>
1858 <div class="form-group row">
1859 <div class="col-sm-4">
1860 <label for='ays_poll_enable_box_shadow'><?php echo esc_html__('Box shadow', "poll-maker"); ?>
1861 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1862 title="<?php echo esc_html__("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1863 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1864 </a>
1865 </label>
1866 </div>
1867 <div class="col-sm-8 ays_divider_left">
1868 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1869 id="ays_poll_enable_box_shadow"
1870 name="ays_poll_enable_box_shadow" <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1871 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1872 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1873 style="margin-top: 10px; padding-top: 10px; <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1874 <label for="ays-poll-box-shadow-color">
1875 <?php echo esc_html__('Box shadow color', "poll-maker") ?>
1876 <a class="ays_help" data-toggle="tooltip"
1877 title="--><?php echo esc_html__('The shadow color of Poll container', "poll-maker") ?>">
1878 <i class="ays_fa ays_fa_info_circle"></i>
1879 </a>
1880 </label>
1881 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1882 name='ays_poll_box_shadow_color'
1883 value="<?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) : '#000000'; ?>"/>
1884 </div>
1885 <!---->
1886 <hr class="ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1887 <div class="form-group row ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1888 <div class="col-sm-12">
1889 <div class="col-sm-3" style="display: inline-block;">
1890 <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_x_offset' name='ays_poll_box_shadow_x_offset' value="<?php echo esc_attr($poll_box_shadow_x_offset); ?>" />
1891 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
1892 </div>
1893 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1894 <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_y_offset' name='ays_poll_box_shadow_y_offset' value="<?php echo esc_attr($poll_box_shadow_y_offset); ?>" />
1895 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
1896 </div>
1897 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1898 <input type="number" class="ays-text-input ays-text-input-90-width ays-box-shadow-coord-change" id='ays_poll_box_shadow_z_offset' name='ays_poll_box_shadow_z_offset' value="<?php echo esc_attr($poll_box_shadow_z_offset); ?>" />
1899 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
1900 </div>
1901 </div>
1902 </div>
1903 <!---->
1904 </div>
1905 </div>
1906 <hr>
1907 <!-- ---------Aro start gradient -->
1908 <div class="form-group row">
1909 <div class="col-sm-4">
1910 <label for="ays-enable-background-gradient">
1911 <?php echo esc_html__('Background Gradient', "poll-maker")?>
1912 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add a color gradient background in the poll. Moreover, you can choose Color 1, Color 2 and the direction of the gradient.', "poll-maker")?>">
1913 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1914 </a>
1915 </label>
1916 </div>
1917 <div class="col-sm-8 ays_divider_left">
1918 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1919 id="ays-enable-background-gradient"
1920 name="ays_enable_background_gradient"
1921 <?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/>
1922 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1923 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1924 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1925 <label for='ays-background-gradient-color-1'>
1926 <?php echo esc_html__('Color 1', "poll-maker"); ?>
1927 </label>
1928 <input type="text" class="ays-text-input" id='ays-background-gradient-color-1' name='ays_background_gradient_color_1' data-alpha="true" value="<?php echo esc_attr($background_gradient_color_1); ?>"/>
1929 </div>
1930 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1931 <label for='ays-background-gradient-color-2'>
1932 <?php echo esc_html__('Color 2', "poll-maker"); ?>
1933 </label>
1934 <input type="text" class="ays-text-input" id='ays-background-gradient-color-2' name='ays_background_gradient_color_2' data-alpha="true" value="<?php echo esc_attr($background_gradient_color_2); ?>"/>
1935 </div>
1936 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1937 <label for="ays_poll_gradient_direction">
1938 <?php echo esc_html__('Gradient direction',"poll-maker")?>
1939 </label>
1940 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1941 <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo esc_html__( 'Vertical', "poll-maker"); ?></option>
1942 <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo esc_html__( 'Horizontal', "poll-maker"); ?></option>
1943 <option <?php echo ($poll_gradient_direction == 'diagonal_left_to_right') ? 'selected' : ''; ?> value="diagonal_left_to_right"><?php echo esc_html__( 'Diagonal left to right', "poll-maker"); ?></option>
1944 <option <?php echo ($poll_gradient_direction == 'diagonal_right_to_left') ? 'selected' : ''; ?> value="diagonal_right_to_left"><?php echo esc_html__( 'Diagonal right to left', "poll-maker"); ?></option>
1945 </select>
1946 </div>
1947 </div>
1948 </div>
1949 </div>
1950 <hr>
1951 <div class="form-group row ays_toggle_parent">
1952 <div class="col-sm-4">
1953 <label for="ays_poll_image_text_logo">
1954 <?php echo esc_html__('Poll Logo', "poll-maker"); ?>
1955 <a class="ays_help" data-toggle="tooltip"
1956 data-placement="top"
1957 title="<?php echo esc_html__("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1958 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1959 </a>
1960 </label>
1961 </div>
1962 <div class="col-sm-8 ays_logo_container ays_divider_left">
1963 <div class="form-group row">
1964 <div class="col-sm-4">
1965 <a href="javascript:void(0)" class="add-logo-image button"><?php echo esc_html($image_text_logo); ?></a>
1966 </div>
1967 <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?php echo esc_attr($style_logo); ?>">
1968 <div class="ays-poll-logo-image-container">
1969 <div class="col-sm-3" style="padding:0;">
1970 <img src="<?php echo isset($options['logo_image']) ? esc_attr($options['logo_image']) : ""; ?>"
1971 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1972 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1973 value="<?php echo isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1974 </div>
1975 <div class="col-sm-9">
1976 <a href="javascript:void(0)" class="add-logo-remove-image button"><?php echo esc_html__("Remove", "poll-maker"); ?></a>
1977 </div>
1978 </div>
1979 </div>
1980 </div>
1981 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1982 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1983 <div class="col-sm-4 ">
1984 <label for="ays_disable_answer_hover">
1985 <?php echo esc_html__('Logo URL', "poll-maker"); ?>
1986 <a class="ays_help" data-toggle="tooltip"
1987 data-placement="top"
1988 title="<?php echo esc_html__("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1989 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1990 </a>
1991 </label>
1992 </div>
1993 <div class="col-sm-8 ays_divider_left">
1994 <input type="checkbox"
1995 name="ays_poll_logo_enable_image_url"
1996 id="ays_poll_logo_enable_image_url"
1997 value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>>
1998 <label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label>
1999 <hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>">
2000 <div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" >
2001 <input type="text"
2002 name="ays_poll_logo_image_url"
2003 id="ays_poll_logo_image_url"
2004 value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL">
2005 </div>
2006 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
2007 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
2008 <div class="col-sm-6">
2009 <label for="ays_poll_logo_enable_image_url_new_tab">
2010 <?php echo esc_html__('Open in a new tab', "poll-maker"); ?>
2011 <a class="ays_help" data-toggle="tooltip"
2012 data-placement="top"
2013 title="<?php echo esc_html__("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
2014 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2015 </a>
2016 </label>
2017 </div>
2018 <div class="col-sm-6">
2019 <input type="checkbox"
2020 name="ays_poll_logo_enable_image_url_new_tab"
2021 id="ays_poll_logo_enable_image_url_new_tab"
2022 value="on" class="ays_toggle ays_toggle_slide " <?php echo esc_attr($poll_logo_image_url_check_new_tab); ?>>
2023 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
2024 </div>
2025 </div>
2026 </div>
2027 </div>
2028 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2029 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2030 <div class="col-sm-4">
2031 <label for="ays_poll_logo_title">
2032 <?php echo esc_html__('Logo title', "poll-maker"); ?>
2033 <a class="ays_help" data-toggle="tooltip"
2034 data-placement="top"
2035 title="<?php echo esc_html__("Specify the title of the Logo image.", "poll-maker"); ?>">
2036 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2037 </a>
2038 </label>
2039 </div>
2040 <div class="col-sm-8 ays_divider_left">
2041 <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); ?>">
2042 </div>
2043 </div>
2044 </div>
2045 </div>
2046 <!-- Poll logo start -->
2047 <hr>
2048 <div class="form-group row">
2049 <div class="col-sm-4">
2050 <label for='ays-poll-title-bg-color'>
2051 <?php echo esc_html__('Title Background Color', "poll-maker"); ?>
2052 <a class="ays_help"
2053 data-toggle="tooltip"
2054 data-placement="top"
2055 title="<?php echo esc_html__("Specify the background color of the title.", "poll-maker"); ?>">
2056 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2057 </a>
2058 </label>
2059 </div>
2060 <div class="col-sm-8 ays_divider_left">
2061 <input type="text" class="ays-text-input" data-alpha="true"
2062 id='ays-poll-title-bg-color'
2063 name='ays_poll_title_bg_color'
2064 value="<?php echo !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2065 </div>
2066 </div>
2067 <hr>
2068 <div class="form-group row">
2069 <div class="col-sm-4">
2070 <label for='ays_poll_title_font_size'>
2071 <?php echo esc_html__('Title font size', "poll-maker"); ?>
2072 <a class="ays_help"
2073 data-toggle="tooltip"
2074 data-placement="top"
2075 title="<?php echo esc_html__("Specify the font size of the title.", "poll-maker"); ?>">
2076 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2077 </a>
2078 </label>
2079 </div>
2080 <div class="col-sm-8 ays_divider_left">
2081 <div>
2082 <div>
2083 <label for='ays_poll_title_font_size'>
2084 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2085 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2086 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2087 </a>
2088 </label>
2089 </div>
2090 <div>
2091 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_title_font_size' name='ays_poll_title_font_size' value="<?php echo esc_attr($poll_title_font_size); ?>"/>
2092 </div>
2093 </div>
2094 <hr>
2095 <div>
2096 <div>
2097 <label for='ays_poll_title_font_size_mobile'>
2098 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2099 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2100 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2101 </a>
2102 </label>
2103 </div>
2104 <div>
2105 <input type="number" class="ays-text-input ays-text-input-short" name="ays_poll_title_font_size_mobile" id="ays_poll_title_font_size_mobile" value="<?php echo esc_attr($poll_title_font_size_mobile);?>">
2106 </div>
2107 </div>
2108 </div>
2109 </div>
2110 <hr>
2111 <div class="form-group row">
2112 <div class="col-sm-4">
2113 <label for='ays_poll_title_font_weight'>
2114 <?php echo esc_html__('Title font weight', "poll-maker"); ?>
2115 <a class="ays_help"
2116 data-toggle="tooltip"
2117 data-placement="top"
2118 title="<?php echo esc_html__("Specify the font weight of the title.", "poll-maker"); ?>">
2119 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2120 </a>
2121 </label>
2122 </div>
2123 <div class="col-sm-8 ays_divider_left">
2124 <div>
2125 <div>
2126 <label for='ays_poll_title_font_weight'>
2127 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2128 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for PC devices.', "poll-maker")?>">
2129 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2130 </a>
2131 </label>
2132 </div>
2133 <div>
2134 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight" name="ays_poll_title_font_weight">
2135 <option value="normal" <?php echo ($poll_title_font_weight == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2136 <option value="bold" <?php echo ($poll_title_font_weight == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2137 <option value="bolder" <?php echo ($poll_title_font_weight == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2138 <option value="100" <?php echo ($poll_title_font_weight == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2139 <option value="200" <?php echo ($poll_title_font_weight == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2140 <option value="300" <?php echo ($poll_title_font_weight == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2141 <option value="400" <?php echo ($poll_title_font_weight == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2142 <option value="500" <?php echo ($poll_title_font_weight == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2143 <option value="600" <?php echo ($poll_title_font_weight == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2144 <option value="700" <?php echo ($poll_title_font_weight == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2145 <option value="800" <?php echo ($poll_title_font_weight == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2146 <option value="900" <?php echo ($poll_title_font_weight == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2147 </select>
2148 </div>
2149 </div>
2150 <hr>
2151 <div>
2152 <div>
2153 <label for='ays_poll_title_font_weight_mobile'>
2154 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2155 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for mobile devices.', "poll-maker")?>">
2156 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2157 </a>
2158 </label>
2159 </div>
2160 <div>
2161 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight_mobile" name="ays_poll_title_font_weight_mobile">
2162 <option value="normal" <?php echo ($poll_title_font_weight_mobile == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2163 <option value="bold" <?php echo ($poll_title_font_weight_mobile == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2164 <option value="bolder" <?php echo ($poll_title_font_weight_mobile == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2165 <option value="100" <?php echo ($poll_title_font_weight_mobile == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2166 <option value="200" <?php echo ($poll_title_font_weight_mobile == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2167 <option value="300" <?php echo ($poll_title_font_weight_mobile == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2168 <option value="400" <?php echo ($poll_title_font_weight_mobile == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2169 <option value="500" <?php echo ($poll_title_font_weight_mobile == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2170 <option value="600" <?php echo ($poll_title_font_weight_mobile == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2171 <option value="700" <?php echo ($poll_title_font_weight_mobile == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2172 <option value="800" <?php echo ($poll_title_font_weight_mobile == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2173 <option value="900" <?php echo ($poll_title_font_weight_mobile == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2174 </select>
2175 </div>
2176 </div>
2177 </div>
2178 </div>
2179 <hr>
2180 <div class="form-group row">
2181 <div class="col-sm-4">
2182 <label for='ays_poll_title_alignment'>
2183 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2184 <a class="ays_help"
2185 data-toggle="tooltip"
2186 data-placement="top"
2187 title="<?php echo esc_html__("Specify the alignment of the title.", "poll-maker"); ?>">
2188 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2189 </a>
2190 </label>
2191 </div>
2192 <div class="col-sm-8 ays_divider_left">
2193 <div>
2194 <div>
2195 <label for='ays_poll_title_alignment'>
2196 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2197 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2198 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2199 </a>
2200 </label>
2201 </div>
2202 <div>
2203 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2204 <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2205 <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2206 <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2207 </select>
2208 </div>
2209 </div>
2210 <hr>
2211 <div>
2212 <div>
2213 <label for='ays_poll_title_alignment_mobile'>
2214 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2215 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2216 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2217 </a>
2218 </label>
2219 </div>
2220 <div>
2221 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2222 <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2223 <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2224 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2225 </select>
2226 </div>
2227 </div>
2228 </div>
2229 </div>
2230 <hr>
2231 <div class="form-group row">
2232 <div class="col-sm-4">
2233 <label for='ays_poll_title_text_transform'>
2234 <?php echo esc_html__('Title text transform', "poll-maker"); ?>
2235 <a class="ays_help"
2236 data-toggle="tooltip"
2237 data-placement="top"
2238 title="<?php echo esc_html__("Specify the text transformation of the title.", "poll-maker"); ?>">
2239 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2240 </a>
2241 </label>
2242 </div>
2243 <div class="col-sm-8 ays_divider_left">
2244 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_text_transform" name="ays_poll_title_text_transform">
2245 <option value="none" <?php echo ($poll_title_text_transform == "none") ? "selected" : "";?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2246 <option value="capitalize" <?php echo ($poll_title_text_transform == "capitalize") ? "selected" : "";?>><?php echo esc_html__("Capitalize", "poll-maker"); ?></option>
2247 <option value="uppercase" <?php echo ($poll_title_text_transform == "uppercase") ? "selected" : "";?>><?php echo esc_html__("Uppercase", "poll-maker"); ?></option>
2248 <option value="lowercase" <?php echo ($poll_title_text_transform == "lowercase") ? "selected" : "";?>><?php echo esc_html__("Lowercase", "poll-maker"); ?></option>
2249 </select>
2250 </div>
2251 </div>
2252 <hr>
2253 <!-- title text shadow start -->
2254 <div class="form-group row">
2255 <div class="col-sm-4">
2256 <label for="ays_poll_enable_title_text_shadow">
2257 <?php echo esc_html__('Title text shadow', "poll-maker")?>
2258 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add text shadow for the poll title.', "poll-maker")?>">
2259 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2260 </a>
2261 </label>
2262 </div>
2263 <div class="col-sm-8 ays_divider_left">
2264 <input type="checkbox" class="ays_toggle ays_toggle_slide" id="ays_poll_enable_title_text_shadow" name="ays_poll_enable_title_text_shadow" <?php echo ($enable_poll_title_text_shadow) ? 'checked' : ''; ?>/>
2265 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2266 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px; <?php echo ($enable_poll_title_text_shadow) ? '' : 'display: none;' ?>">
2267 <label for='ays_poll_title_text_shadow_color'>
2268 <?php echo esc_html__('Color', "poll-maker"); ?>
2269 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify text shadow color.', "poll-maker")?>">
2270 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2271 </a>
2272 </label>
2273 <input type="text" class="ays-text-input" id='ays_poll_title_text_shadow_color' data-alpha="true" name='ays_poll_title_text_shadow_color' value="<?php echo esc_attr($poll_title_text_shadow); ?>"/>
2274 </div>
2275 <!---->
2276 <hr class="ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2277 <div class="form-group row ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2278 <div class="col-sm-12">
2279 <div class="col-sm-3" style="display: inline-block;">
2280 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_title_text_shadow_x_offset' name='ays_poll_title_text_shadow_x_offset' value="<?php echo $poll_title_text_shadow_x_offset; ?>" />
2281 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2282 </div>
2283 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2284 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_title_text_shadow_y_offset' name='ays_poll_title_text_shadow_y_offset' value="<?php echo $poll_title_text_shadow_y_offset; ?>" />
2285 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2286 </div>
2287 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2288 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_title_text_shadow_z_offset' name='ays_poll_title_text_shadow_z_offset' value="<?php echo $poll_title_text_shadow_z_offset; ?>" />
2289 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2290 </div>
2291 </div>
2292 </div>
2293 <!---->
2294 </div>
2295 </div>
2296 <!-- title text shadow end -->
2297 <div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>">
2298 <hr>
2299 <div class="form-group row">
2300 <div class="col-sm-4">
2301 <label for='ays-poll-icon-size'>
2302 <?php echo esc_html__('Icon size (px)', "poll-maker"); ?>
2303 <a class="ays_help"
2304 data-toggle="tooltip"
2305 data-placement="top"
2306 title="<?php echo esc_html__("Specify the size of the icons in rating and voting types of the poll in pixels. It should be 10 and more.", "poll-maker"); ?>">
2307 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2308 </a>
2309 </label>
2310 </div>
2311 <div class="col-sm-8 ays_divider_left">
2312 <input type="number" class="ays-text-input ays-text-input-short"
2313 id='ays-poll-icon-size' name='ays_poll_icon_size'
2314 value="<?php echo (isset($options['icon_size'])) ? esc_attr($options['icon_size']) : '24'; ?>"/>
2315 </div>
2316 </div>
2317 </div>
2318 <hr>
2319 <div class="form-group row">
2320 <div class="col-sm-4">
2321 <label for='ays-poll-width'>
2322 <?php echo esc_html__('Width (px)', "poll-maker"); ?>
2323 <a class="ays_help"
2324 data-toggle="tooltip"
2325 data-placement="top"
2326 title="<?php echo esc_html__("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2327 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2328 </a>
2329 </label>
2330 </div>
2331 <div class="col-sm-8 ays_divider_left">
2332 <div>
2333 <div>
2334 <label for='ays-poll-width'>
2335 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2336 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker")?>">
2337 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2338 </a>
2339 </label>
2340 </div>
2341 <div>
2342 <input type="number" step="1" min="0" class="ays-text-input ays-text-input-short" id='ays-poll-width' name='ays_poll_width' value="<?php echo $options['width'] ?>"/>
2343 </div>
2344 </div>
2345 <hr>
2346 <div>
2347 <div>
2348 <label for='ays_poll_width_for_mobile'>
2349 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2350 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker")?>">
2351 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2352 </a>
2353 </label>
2354 </div>
2355 <div>
2356 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_width_for_mobile' name='ays_poll_width_for_mobile' value="<?php echo $width_for_mobile ?>"/>
2357 <p class="ays_poll_small_hint_text_for_message_variables">
2358 <span><?php echo esc_html__( "For 100% leave blank" , "poll-maker" ); ?></span>
2359 </p>
2360 </div>
2361 </div>
2362 </div>
2363 </div>
2364 <hr/>
2365 <div class="form-group row">
2366 <div class="col-sm-4">
2367 <label for='ays_poll_min_height'>
2368 <?php echo esc_html__('Min-height', "poll-maker"); ?>
2369 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2370 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2371 </a>
2372 </label>
2373 </div>
2374 <div class="col-sm-8 ays_divider_left">
2375 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_min_height' name='ays_poll_min_height' value="<?php echo esc_attr($poll_min_height); ?>"/>
2376 </div>
2377 </div>
2378 <hr>
2379 <div class="form-group row">
2380 <div class="col-sm-4">
2381 <label for='ays_poll_mobile_max_width'>
2382 <?php echo esc_html__('Poll max-width for mobile', "poll-maker"); ?>
2383 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__('Poll container max-width for mobile in percentage. This option will work for the screens with less than 640 pixels width.', "poll-maker")?>">
2384 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2385 </a>
2386 </label>
2387 </div>
2388 <div class="col-sm-8 ays_divider_left">
2389 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2390 name='ays_poll_mobile_max_width' style="display: inline-block;"
2391 value="<?php echo esc_attr($poll_mobile_max_width); ?>"/> %
2392 <span class="ays_poll_small_hint_text"><?php echo esc_html__("For 100% leave blank", "poll-maker");?></span>
2393 </div>
2394 </div> <!-- Poll max-width for mobile -->
2395 <hr>
2396 </div>
2397 </div>
2398 <div class="ays-poll-accordion-options-main-container">
2399 <div class="ays-poll-accordion-header">
2400 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2401 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Question styles', "poll-maker"); ?></p>
2402 </div>
2403 <hr class="ays-poll-bolder-hr"/>
2404 <div class="ays-poll-accordion-body">
2405 <div class="form-group row">
2406 <div class="col-sm-4">
2407 <label for='ays_questions_font_size'>
2408 <?php echo esc_html__('Question font size', "poll-maker"); ?> (px)
2409 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the font size of the questions( only for <p> tag ). It accepts only numerical values.', "poll-maker")?>">
2410 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2411 </a>
2412 </label>
2413 </div>
2414 <div class="col-sm-8 ays_divider_left">
2415 <div>
2416 <div>
2417 <label for='ays_questions_font_size'>
2418 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2419 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2420 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2421 </a>
2422 </label>
2423 </div>
2424 <div>
2425 <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;?>">
2426 </div>
2427 </div>
2428 <hr>
2429 <div>
2430 <div>
2431 <label for='ays_poll_answers_font_size_mobile'>
2432 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2433 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2434 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2435 </a>
2436 </label>
2437 </div>
2438 <div>
2439 <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;?>">
2440 </div>
2441 </div>
2442 </div>
2443 </div><!-- Question font size -->
2444 <hr>
2445 <div class="form-group row">
2446 <div class="col-sm-4">
2447 <label for='ays_poll_question_image_height'><?php echo esc_html__('Question image height', "poll-maker"); ?>
2448 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2449 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2450 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2451 </a>
2452 </label>
2453 </div>
2454 <div class="col-sm-8 ays_divider_left">
2455 <input type="number"
2456 class="ays-text-input ays-text-input-short"
2457 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2458 value="<?php echo esc_attr($poll_question_image_height); ?>"/>
2459 </div>
2460 </div><!-- Question image height -->
2461 <hr>
2462 <div class="form-group row">
2463 <div class="col-sm-4">
2464 <label for='ays_poll_question_image_object_fit'><?php echo esc_html__('Question object fit', "poll-maker"); ?>
2465 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2466 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2467 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2468 </a>
2469 </label>
2470 </div>
2471 <div class="col-sm-8 ays_divider_left">
2472 <select class="ays-text-input ays-text-input-short ays_poll_aysDropdown ays-poll-dropdown-select-width-250" id="ays_poll_question_image_object_fit" name="ays_poll_question_image_object_fit">
2473 <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo esc_html__("Cover", "poll-maker"); ?></option>
2474 <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo esc_html__("Fill", "poll-maker"); ?></option>
2475 <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo esc_html__("Contain", "poll-maker"); ?></option>
2476 <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo esc_html__("Scale-down", "poll-maker"); ?></option>
2477 <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2478 </select>
2479 </div>
2480 </div><!-- Question image object fit -->
2481 <hr>
2482 </div>
2483 </div>
2484 <div class="ays-poll-accordion-options-main-container">
2485 <div class="ays-poll-accordion-header">
2486 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2487 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Answer Styles', "poll-maker"); ?></p>
2488 </div>
2489 <hr class="ays-poll-bolder-hr"/>
2490 <div class="ays-poll-accordion-body">
2491 <div class="form-group row">
2492 <div class="col-sm-4">
2493 <label for='ays_poll_enable_answer_style'><?php echo esc_html__('Enable answer styles', "poll-maker"); ?>
2494 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2495 title="<?php echo esc_html__("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2496 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2497 </a>
2498 </label>
2499 </div>
2500 <div class="col-sm-8 ays_divider_left">
2501 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2502 id="ays_poll_enable_answer_style"
2503 name="ays_poll_enable_answer_style" <?php echo ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2504 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2505 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2506 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2507 <label for="ays-poll-box-shadow-color">
2508 <?php echo esc_html__('Answers Background Color', "poll-maker"); ?>
2509 <a class="ays_help" data-toggle="tooltip"
2510 title="<?php echo esc_html__("Specify the background color of the answers' boxes.", "poll-maker"); ?>">
2511 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2512 </a>
2513 </label>
2514 <input type="text" class="ays-text-input" data-alpha="true"
2515 id='ays-poll-answer-bg-color'
2516 name='ays_poll_answer_bg_color'
2517 value="<?php echo esc_attr($answer_bg_color); ?>"/>
2518 </div>
2519 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2520 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2521 <label for="ays-poll-answer-hover-color">
2522 <?php echo esc_html__('Answer Hover Color', "poll-maker"); ?>
2523 <a class="ays_help" data-toggle="tooltip"
2524 title="<?php echo esc_html__('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2525 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2526 </a>
2527 </label>
2528 <input type="text" class="ays-text-input" data-alpha="true"
2529 id='ays-poll-answer-hover-color'
2530 name='ays_poll_answer_hover_color'
2531 value="<?php echo esc_attr($answer_hover_color); ?>"/>
2532 </div>
2533 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2534 <div>
2535 <label for='ays-poll-border-side'>
2536 <?php echo esc_html__('Border side', "poll-maker"); ?>
2537 <a class="ays_help"
2538 data-toggle="tooltip"
2539 data-placement="top"
2540 title="<?php echo esc_html__("Choose your preferred style for the border of the answers' boxes.", "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-border-side-box">
2546 <select name="ays_poll_border_side" id="ays-poll-border-side"
2547 class="ays-select ays-select-short ays_poll_aysDropdown">
2548 <option value="all_sides" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2549 <?php echo esc_html__("All sides", "poll-maker"); ?>
2550 </option>
2551 <option value="none" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2552 <?php echo esc_html__("None", "poll-maker"); ?>
2553 </option>
2554 <option value="top" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2555 <?php echo esc_html__("Top", "poll-maker"); ?>
2556 </option>
2557 <option value="bottom" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2558 <?php echo esc_html__("Bottom", "poll-maker"); ?>
2559 </option>
2560 <option value="left" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2561 <?php echo esc_html__("Left", "poll-maker"); ?>
2562 </option>
2563 <option value="right" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2564 <?php echo esc_html__("Right", "poll-maker"); ?>
2565 </option>
2566 </select>
2567 </div>
2568 </div>
2569 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2570 <div>
2571 <label for='ays_answer_font_size'>
2572 <?php echo esc_html__('Answer font size', "poll-maker"); ?>
2573 <a class="ays_help"
2574 data-toggle="tooltip"
2575 data-placement="top"
2576 title="<?php echo esc_html__("Choose your preferred size for the font of the answers. Size should be not less than 5 and not higher than 90", "poll-maker"); ?>">
2577 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2578 </a>
2579 </label>
2580 </div>
2581 <div class="ays_answer_font_size_box">
2582 <input type="number" class="ays-text-input ays-text-input-short ays-poll-answer-font-size-all" name="ays_answer_font_size" id="ays_answer_font_size" value="<?php echo $poll_answer_font_size;?>">
2583 </div>
2584 </div>
2585 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2586 <div>
2587 <label for='ays_poll_answer_font_size_mobile'>
2588 <?php echo esc_html__('Answer font size for mobile', "poll-maker"); ?>
2589 <a class="ays_help"
2590 data-toggle="tooltip"
2591 data-placement="top"
2592 title="<?php echo esc_html__("Choose your preferred size for the font of the answers on mobile devies. Size should be not less than 5 and not higher than 90", "poll-maker"); ?>">
2593 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2594 </a>
2595 </label>
2596 </div>
2597 <div class="ays_answer_font_size_box">
2598 <input type="number" class="ays-text-input ays-text-input-short ays-poll-answer-font-size-all" name="ays_poll_answer_font_size_mobile" id="ays_poll_answer_font_size_mobile" data-device="mobile" value="<?php echo $poll_answer_font_size_mobile;?>">
2599 </div>
2600 </div>
2601 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2602 <div>
2603 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2604 <?php echo esc_html__('Answer image height (px)', "poll-maker")?>
2605 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2606 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2607 </a>
2608 </label>
2609 </div>
2610 <div>
2611 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answer_img_height' name='ays_poll_answer_img_height' value="<?php echo $poll_answer_image_height; ?>" />
2612 </div>
2613 </div> <!-- Answers image height -->
2614 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2615 <div>
2616 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2617 <?php echo esc_html__('Answer image height for mobile (px)', "poll-maker")?>
2618 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images on the mobile devices.', "poll-maker")?>">
2619 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2620 </a>
2621 </label>
2622 </div>
2623 <div>
2624 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answer_image_height_for_mobile' name='ays_poll_answer_image_height_for_mobile' value="<?php echo $poll_answer_image_height_for_mobile; ?>" />
2625 </div>
2626 </div> <!-- Answers image height for mobile-->
2627 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2628 <div>
2629 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2630 <?php echo esc_html__('Answer image border radius (px)', "poll-maker")?>
2631 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Border radius of answers images.', "poll-maker")?>">
2632 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2633 </a>
2634 </label>
2635 </div>
2636 <div>
2637 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answer_image_border_radius' name='ays_poll_answer_image_border_radius' value="<?php echo $poll_answer_image_border_radius; ?>" />
2638 </div>
2639 </div> <!-- Answers image border radius -->
2640 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2641 <div >
2642 <label for="ays_poll_image_background_size">
2643 <?php echo esc_html__('Answer image object fit', "poll-maker"); ?>
2644 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify how an answers’ images should be resized to fit its container.', "poll-maker"); ?>">
2645 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2646 </a>
2647 </label>
2648 </div>
2649 <div id="ays_poll_image_background_size_box">
2650 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2651 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2652 <?php echo esc_html__('Cover', "poll-maker")?>
2653 </option>
2654 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2655 <?php echo esc_html__('Fill', "poll-maker")?>
2656 </option>
2657 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2658 <?php echo esc_html__('Contain', "poll-maker")?>
2659 </option>
2660 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2661 <?php echo esc_html__('Scale-down', "poll-maker")?>
2662 </option>
2663 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2664 <?php echo esc_html__('None', "poll-maker")?>
2665 </option>
2666 </select>
2667 </div>
2668 </div> <!-- Answer image object fit -->
2669 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2670 <div>
2671 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2672 <?php echo esc_html__('Answer padding (px)', "poll-maker")?>
2673 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Padding of answers.', "poll-maker")?>">
2674 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2675 </a>
2676 </label>
2677 </div>
2678 <div>
2679 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answers_padding' name='ays_poll_answers_padding' value="<?php echo esc_attr($poll_answer_padding); ?>"/>
2680 </div>
2681 </div> <!-- Answers padding -->
2682 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2683 <div >
2684 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2685 <?php echo esc_html__('Answer gap (px)', "poll-maker")?>
2686 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Gap between answers.', "poll-maker")?>">
2687 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2688 </a>
2689 </label>
2690 </div>
2691 <div>
2692 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" id='ays_poll_answers_margin' name='ays_poll_answers_margin' value="<?php echo $poll_answer_margin; ?>" />
2693 </div>
2694 </div> <!-- Answers gap -->
2695 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2696 <div>
2697 <label for="ays_poll_answer_border_radius">
2698 <?php echo esc_html__('Answer border radius', "poll-maker")?>
2699 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the radius of the answers container.', "poll-maker")?>">
2700 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2701 </a>
2702 </label>
2703 </div>
2704 <div>
2705 <input type="number" class="ays-text-input ays-text-input-short ays_enable_answer_field" name="ays_poll_answer_border_radius" id="ays_poll_answer_border_radius" value="<?php echo esc_attr($poll_answer_border_radius); ?>"/>
2706 </div>
2707 </div> <!-- Answers border radius -->
2708 </div>
2709 </div>
2710 <hr>
2711 <div class="form-group row">
2712 <div class="col-sm-4">
2713 <label for="ays_poll_show_answers_icon">
2714 <?php echo esc_html__('Answer icon', "poll-maker"); ?>
2715 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2716 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2717 </a>
2718 </label>
2719 </div>
2720 <div class="col-sm-8 ays_divider_left">
2721 <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' : ''; ?> />
2722 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2723 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2724 <div class="form-check form-check-inline">
2725 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2726 <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_radio" name="ays_poll_answer_icon" value="radio" <?php echo ($poll_answer_icon == 'radio') ? 'checked' : ''; ?> />
2727 </label>
2728 </div>
2729 <div class="form-check form-check-inline">
2730 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2731 <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_checkbox" name="ays_poll_answer_icon" value="checkbox" <?php echo ($poll_answer_icon == 'checkbox') ? 'checked' : ''; ?> />
2732 </label>
2733 </div>
2734 </div>
2735 </div>
2736 </div> <!-- Answer icon -->
2737 <hr>
2738 <div class="form-group row">
2739 <div class="col-sm-4">
2740 <label for="ays_answers_view" class="ays_enable_answer_style">
2741 <?php echo esc_html__('Answer view', "poll-maker")?>
2742 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the view of the answers: List or Grid. Select the column number if you have chosen Grid view.', "poll-maker")?>">
2743 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2744 </a>
2745 </label>
2746 </div>
2747 <div class="col-sm-8">
2748 <div class="form-group row">
2749 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2750 <select class="ays-text-input ays-text-input-short ays-select-short ays_enable_answer_field ays_poll_aysDropdown" id="ays_answers_view" name="ays_poll_choose_answer_type">
2751 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2752 <?php echo esc_html__('List', "poll-maker")?>
2753 </option>
2754 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2755 <?php echo esc_html__('Grid', "poll-maker")?>
2756 </option>
2757 </select>
2758 </div>
2759 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
2760 <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;">
2761 <option value='2' selected>
2762 2
2763 </option>
2764 <option value='3' class="ays-poll-grid-type-columns">
2765 3
2766 </option>
2767 <option value='4' class="ays-poll-grid-type-columns">
2768 4
2769 </option>
2770 </select>
2771 </div>
2772 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2773 <div class="col-sm-8" style="display:flex;align-items:center;">
2774 <label for="ays_answers_grid_column_mobile">
2775 <?php echo esc_html__('Mobile Single Column View',"poll-maker")?>
2776 </label>
2777 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable this toggle to display poll answers in a single column on mobile devices for the Grid View.',"poll-maker")?>">
2778 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2779 </a>
2780 </div>
2781 <div class="col-sm-1 ays_divider_left">
2782 <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'/>
2783 <label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label>
2784 </div>
2785 </div>
2786 </div>
2787 </div>
2788 </div> <!-- Answers view -->
2789 <hr>
2790 <div class="form-group row">
2791 <div class="col-sm-4">
2792 <label for="ays_poll_answers_box_shadow_enable">
2793 <?php echo esc_html__('Answer box shadow', "poll-maker")?>
2794 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer container box shadow', "poll-maker")?>">
2795 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2796 </a>
2797 </label>
2798 </div>
2799 <div class="col-sm-8 ays_divider_left">
2800 <input type="checkbox" class="ays_toggle ays_toggle_slide" id="ays_poll_answers_box_shadow_enable" name="ays_poll_answers_box_shadow_enable" value="on" <?php echo ($poll_answer_enable_box_shadow) ? "checked" : ""; ?>>
2801 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2802 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px; <?php echo ($poll_answer_enable_box_shadow) ? "" : "display: none;"; ?>">
2803 <label for="ays_poll_answers_box_shadow_color">
2804 <?php echo esc_html__('Answer shadow color', "poll-maker")?>
2805 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The shadow color of answers container', "poll-maker")?>">
2806 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2807 </a>
2808 </label>
2809 <input type="text" class="ays-text-input" data-alpha="true" data-default-color="#000000" value="<?php echo $poll_answer_box_shadow_color; ?>" id="ays_poll_answers_box_shadow_color" name="ays_poll_answers_box_shadow_color">
2810 </div>
2811 <!---->
2812 <hr class="ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none'; ?>">
2813 <div class="form-group row ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none' ?>">
2814 <div class="col-sm-12">
2815 <div class="col-sm-3" style="display: inline-block;">
2816 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_answer_box_shadow_x_offset' name='ays_poll_answer_box_shadow_x_offset' value="<?php echo $poll_answer_box_shadow_x_offset; ?>" />
2817 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2818 </div>
2819 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2820 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_answer_box_shadow_y_offset' name='ays_poll_answer_box_shadow_y_offset' value="<?php echo $poll_answer_box_shadow_y_offset; ?>" />
2821 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2822 </div>
2823 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2824 <input type="number" class="ays-text-input ays-text-input-90-width ays-title-text-shadow-coord-change" id='ays_poll_answer_box_shadow_z_offset' name='ays_poll_answer_box_shadow_z_offset' value="<?php echo $poll_answer_box_shadow_z_offset; ?>" />
2825 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2826 </div>
2827 </div>
2828 </div>
2829 <!---->
2830 </div>
2831 </div> <!-- Answers box shadow -->
2832 <hr>
2833 <div class="form-group row">
2834 <div class="col-sm-4">
2835 <label for="ays_disable_answer_hover">
2836 <?php echo esc_html__('Disable answers hover', "poll-maker"); ?>
2837 <a class="ays_help" data-toggle="tooltip"
2838 data-placement="top"
2839 title="<?php echo esc_html__("Disable the hover effect for answers.", "poll-maker"); ?>">
2840 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2841 </a>
2842 </label>
2843 </div>
2844 <div class="col-sm-8 ays_divider_left">
2845 <input type="checkbox"
2846 name="ays_disable_answer_hover"
2847 id="ays_disable_answer_hover"
2848 value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?>
2849 >
2850 </div>
2851 </div>
2852 <hr>
2853 <!--PRO ANSWER STYLEs-->
2854 <div class="form-group row">
2855 <div class="col-sm-12 only_pro">
2856 <div class="pro_features" style="justify-content:flex-end;">
2857 </div>
2858 <div class="form-group row" style="padding: 15px 15px 0">
2859 <div class="" style="width: 100%;">
2860 <div class="form-group row">
2861 <div class="col-sm-5">
2862 <label for="ays_answers_border">
2863 <?php echo esc_html__('Answer border', "poll-maker")?>
2864 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer border', "poll-maker")?>">
2865 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2866 </a>
2867 </label>
2868 </div>
2869 <div class="col-sm-7 ays_divider_left">
2870 <input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on"
2871 checked/>
2872 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2873 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2874 <label for="ays_answers_border_width">
2875 <?php echo esc_html__('Border width', "poll-maker")?> (px)
2876 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The width of answers border', "poll-maker")?>">
2877 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2878 </a>
2879 </label>
2880 <input type="number" class="ays-text-input"
2881 value="" min="0"/>
2882 </div>
2883 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2884 <label for="ays_answers_border_style">
2885 <?php echo esc_html__('Border style', "poll-maker")?>
2886 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The style of answers border', "poll-maker")?>">
2887 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2888 </a>
2889 </label>
2890 <select name="ays_answers_border_style" class="ays-text-input ays-select-short">
2891 <option>Solid</option>
2892 </select>
2893 </div>
2894 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2895 <label for="ays_answers_border_color">
2896 <?php echo esc_html__('Border color', "poll-maker")?>
2897 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The color of the answers border', "poll-maker")?>">
2898 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2899 </a>
2900 </label>
2901 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
2902 </div>
2903 </div>
2904 </div> <!-- Answers border -->
2905 <hr/>
2906 <div class="form-group row ays_grid_show">
2907 <div class="col-sm-5">
2908 <label for="ays_poll_show_answers_caption">
2909 <?php echo esc_html__('Show answers caption', "poll-maker")?>
2910 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Show answers caption near the answer image. This option will be work only when answer has image.', "poll-maker"); ?>">
2911 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2912 </a>
2913 </label>
2914 </div>
2915 <div class="col-sm-7 ays_divider_left">
2916 <input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/>
2917 <label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label>
2918 </div>
2919 </div> <!-- Show answers caption -->
2920 <hr/>
2921 <div class="form-group row">
2922 <div class="col-sm-5">
2923 <label for="ays_ans_img_caption_style">
2924 <?php echo esc_html__('Answers image caption style', "poll-maker")?>
2925 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2926 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2927 </a>
2928 </label>
2929 </div>
2930 <div class="col-sm-7 ays_divider_left">
2931 <select class="ays-text-input ays-text-input-short">
2932 <option><?php echo esc_html__('Outside', "poll-maker"); ?></option>
2933 </select>
2934 </div>
2935 </div> <!-- Answers image caption style -->
2936 <hr/>
2937 <div class="form-group row">
2938 <div class="col-sm-5">
2939 <label for="ays_ans_img_caption_position">
2940 <?php echo esc_html__('Answers image caption position', "poll-maker")?>
2941 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2942 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2943 </a>
2944 </label>
2945 </div>
2946 <div class="col-sm-7 ays_divider_left">
2947 <select class="ays-text-input ays-text-input-short">
2948 <option value="top"><?php echo esc_html__('Top', "poll-maker"); ?></option>
2949 </select>
2950 </div>
2951 </div> <!-- Answers image caption position -->
2952 <hr>
2953 </div>
2954 </div>
2955 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2956 <div class="ays-poll-new-upgrade-button-box">
2957 <div>
2958 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2959 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2960 </div>
2961 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
2962 </div>
2963 </a>
2964 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2965 <div class="ays-poll-center-big-main-button-box">
2966 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2967 <div class="ays-poll-center-new-big-upgrade-button">
2968 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
2969 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2970 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
2971 </div>
2972 </a>
2973 </div>
2974 </div>
2975 </div>
2976 </div>
2977 <hr/>
2978 </div>
2979 </div>
2980 <div class="ays-poll-accordion-options-main-container">
2981 <div class="ays-poll-accordion-header">
2982 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2983 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Border styles', "poll-maker"); ?></p>
2984 </div>
2985 <hr class="ays-poll-bolder-hr"/>
2986 <div class="ays-poll-accordion-body">
2987 <div class="form-group row">
2988 <div class="col-sm-4">
2989 <label for='ays-poll-border-style'>
2990 <?php echo esc_html__('Border style', "poll-maker"); ?>
2991 <a class="ays_help"
2992 data-toggle="tooltip"
2993 data-placement="top"
2994 title="<?php echo esc_html__("Choose your preferred style of the border.", "poll-maker"); ?>">
2995 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2996 </a>
2997 </label>
2998 </div>
2999 <div class="col-sm-8 ays_divider_left">
3000 <select name="ays_poll_border_style" id="ays-poll-border-style"
3001 class="ays-select ays-select-short ays_poll_aysDropdown">
3002 <option value="solid" <?php echo $options['border_style'] == "solid" ? 'selected' : ''; ?>>
3003 <?php echo esc_html__("Solid", "poll-maker"); ?>
3004 </option>
3005 <option value="dashed" <?php echo $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
3006 <?php echo esc_html__("Dashed", "poll-maker"); ?>
3007 </option>
3008 <option value="dotted" <?php echo $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
3009 <?php echo esc_html__("Dotted", "poll-maker"); ?>
3010 </option>
3011 <option value="double" <?php echo $options['border_style'] == "double" ? 'selected' : ''; ?>>
3012 <?php echo esc_html__("Double", "poll-maker"); ?>
3013 </option>
3014 <option value="groove" <?php echo $options['border_style'] == "groove" ? 'selected' : ''; ?>>
3015 <?php echo esc_html__("Groove", "poll-maker"); ?>
3016 </option>
3017 <option value="ridge" <?php echo $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
3018 <?php echo esc_html__("Ridge", "poll-maker"); ?>
3019 </option>
3020 <option value="inset" <?php echo $options['border_style'] == "inset" ? 'selected' : ''; ?>>
3021 <?php echo esc_html__("Inset", "poll-maker"); ?>
3022 </option>
3023 <option value="outset" <?php echo $options['border_style'] == "outset" ? 'selected' : ''; ?>>
3024 <?php echo esc_html__("Outset", "poll-maker"); ?>
3025 </option>
3026 <option value="none" <?php echo $options['border_style'] == "none" ? 'selected' : ''; ?>>
3027 <?php echo esc_html__("None", "poll-maker"); ?>
3028 </option>
3029 </select>
3030 </div>
3031 </div>
3032 <hr>
3033 <div class="form-group row">
3034 <div class="col-sm-4">
3035 <label for='ays-poll-border-radius'><?php echo esc_html__('Border radius', "poll-maker"); ?>
3036 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3037 title="<?php echo esc_html__("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
3038 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3039 </a>
3040 </label>
3041 </div>
3042 <div class="col-sm-8 ays_divider_left">
3043 <input type="number" min="0"
3044 class="ays-text-input ays-text-input-short"
3045 id='ays-poll-border-radius' name='ays_poll_border_radius'
3046 value="<?php echo (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
3047 </div>
3048 </div>
3049 <hr>
3050 <div class="form-group row">
3051 <div class="col-sm-4">
3052 <label for='ays-poll-border-width'><?php echo esc_html__('Border width', "poll-maker"); ?>
3053 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3054 title="<?php echo esc_html__("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
3055 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3056 </a>
3057 </label>
3058 </div>
3059 <div class="col-sm-8 ays_divider_left">
3060 <input type="number" min="0"
3061 class="ays-text-input ays-text-input-short"
3062 id='ays-poll-border-width' name='ays_poll_border_width'
3063 value="<?php echo isset($options['border_width']) && $options['border_width'] != '' ? esc_attr($options['border_width']) : 2; ?>"/>
3064 </div>
3065 </div>
3066 <hr>
3067 <div class="form-group row">
3068 <div class="col-sm-4">
3069 <label for='ays-poll-border-color'><?php echo esc_html__('Border color', "poll-maker"); ?>
3070 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3071 title="<?php echo esc_html__("Specify the color of the border.", "poll-maker"); ?>">
3072 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3073 </a>
3074 </label>
3075 </div>
3076 <div class="col-sm-8 ays_divider_left">
3077 <input type="text"
3078 class="ays-text-input"
3079 data-alpha="true"
3080 id='ays-poll-border-color'
3081 name='ays_poll_border_color'
3082 value="<?php echo esc_attr($default_border); ?>"/>
3083 </div>
3084 </div>
3085 <hr>
3086 <!-- Buttons Styles Start -->
3087 </div>
3088 </div>
3089 <div class="ays-poll-accordion-options-main-container">
3090 <div class="ays-poll-accordion-header">
3091 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3092 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Button Styles', "poll-maker"); ?></p>
3093 </div>
3094 <hr class="ays-poll-bolder-hr"/>
3095 <div class="ays-poll-accordion-body">
3096 <div class="form-group row">
3097 <div class="col-sm-4">
3098 <label for="ays_poll_buttons_size">
3099 <?php echo esc_html__('Buttons Size', "poll-maker"); ?>
3100 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
3101 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3102 </a>
3103 </label>
3104 </div>
3105 <div class="col-sm-8 ays_divider_left">
3106 <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">
3107 <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo esc_html__('Small', "poll-maker"); ?></option>
3108 <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo esc_html__('Medium', "poll-maker"); ?></option>
3109 <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo esc_html__('Large', "poll-maker"); ?></option>
3110 </select>
3111 </div>
3112 </div> <!-- Buttons Size -->
3113 <hr>
3114 <div class="form-group row">
3115 <div class="col-sm-4">
3116 <label for='ays-poll-button-text-color'>
3117 <?php echo esc_html__('Buttons Text Color', "poll-maker"); ?>
3118 <a class="ays_help"
3119 data-toggle="tooltip"
3120 data-placement="top"
3121 title="<?php echo esc_html__("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
3122 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3123 </a>
3124 </label>
3125 </div>
3126 <div class="col-sm-8 ays_divider_left">
3127 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
3128 name='ays_poll_button_text_color'
3129 value="<?php echo esc_attr($poll_button_text_color); ?>"/>
3130 </div>
3131 </div><!-- Buttons text color -->
3132 <hr>
3133 <div class="form-group row">
3134 <div class="col-sm-4">
3135 <label for='ays-poll-button-bg-color'>
3136 <?php echo esc_html__('Buttons Background Color', "poll-maker"); ?>
3137 <a class="ays_help"
3138 data-toggle="tooltip"
3139 data-placement="top"
3140 title="<?php echo esc_html__("Specify the background color of the poll button.", "poll-maker"); ?>">
3141 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3142 </a>
3143 </label>
3144 </div>
3145 <div class="col-sm-8 ays_divider_left">
3146 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
3147 name='ays_poll_button_bg_color'
3148 value="<?php echo esc_attr($poll_button_bg_color); ?>"/>
3149 </div>
3150 </div><!-- Buttons background color -->
3151 <hr>
3152 <div class="form-group row">
3153 <div class="col-sm-4">
3154 <label for='ays_poll_buttons_font_size'>
3155 <?php echo esc_html__('Buttons font size', "poll-maker"); ?> (px)
3156 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the size of the button(s) inside the poll in pixels.', "poll-maker"); ?>">
3157 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3158 </a>
3159 </label>
3160 </div>
3161 <div class="col-sm-8 ays_divider_left">
3162 <input type="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; ?>"/>
3163 </div>
3164 </div> <!-- Buttons font size -->
3165 <hr>
3166 <div class="form-group row">
3167 <div class="col-sm-4">
3168 <label for='ays_poll_buttons_mobile_font_size'>
3169 <?php echo esc_html__('Buttons mobile font size', "poll-maker"); ?> (px)
3170 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the size of the button(s) inside the poll in pixels for mobile devices.', "poll-maker"); ?>">
3171 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3172 </a>
3173 </label>
3174 </div>
3175 <div class="col-sm-8 ays_divider_left">
3176 <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; ?>"/>
3177 </div>
3178 </div> <!-- Buttons font size -->
3179 <hr>
3180 <div class="form-group row">
3181 <div class="col-sm-4">
3182 <label for="ays_poll_buttons_left_right_padding">
3183 <?php echo esc_html__('Buttons padding (px)', "poll-maker"); ?>
3184 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the distance between the text and the border of the button in pixels․', "poll-maker"); ?>">
3185 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3186 </a>
3187 </label>
3188 </div>
3189 <div class="col-sm-8 ays_divider_left">
3190 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
3191 <input type="number" class="ays-text-input ays_buttons_padding" id='ays_poll_buttons_left_right_padding' name='ays_poll_buttons_left_right_padding' value="<?php echo $poll_buttons_left_right_padding; ?>" style="width: 100px;" />
3192 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Left / Right', "poll-maker"); ?></span>
3193 </div>
3194 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
3195 <input type="number" class="ays-text-input ays_buttons_padding" id='ays_poll_buttons_top_bottom_padding' name='ays_poll_buttons_top_bottom_padding' value="<?php echo $poll_buttons_top_bottom_padding; ?>" style="width: 100px;" />
3196 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Top / Bottom', "poll-maker"); ?></span>
3197 </div>
3198 </div>
3199 </div> <!-- Buttons padding -->
3200 <hr>
3201 <div class="form-group row">
3202 <div class="col-sm-4">
3203 <label for="ays_poll_buttons_border_radius">
3204 <?php echo esc_html__('Buttons border radius', "poll-maker"); ?> (px)
3205 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the radius of the corners of the button. Allows adding rounded corners to the button.', "poll-maker"); ?>">
3206 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3207 </a>
3208 </label>
3209 </div>
3210 <div class="col-sm-8 ays_divider_left">
3211 <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; ?>"/>
3212 </div>
3213 </div>
3214 <hr>
3215 <div class="form-group row">
3216 <div class="col-sm-4">
3217 <label for='ays_poll_buttons_width'>
3218 <?php echo esc_html__('Buttons width', "poll-maker"); ?> (px)
3219 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the button width in pixels. For an initial width, leave the field blank.', "poll-maker"); ?>">
3220 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3221 </a>
3222 </label>
3223 </div>
3224 <div class="col-sm-8 ays_divider_left">
3225 <div>
3226 <div>
3227 <label for="ays_poll_buttons_width">
3228 <?php echo esc_html__('On desktop', "poll-maker"); ?>
3229 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker"); ?>">
3230 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3231 </a>
3232 </label>
3233 </div>
3234 <div>
3235 <input type="number" class="ays-text-input ays-text-input-short" id="ays_poll_buttons_width" name="ays_poll_buttons_width" value="<?php echo $poll_buttons_width; ?>"/>
3236 <span style="display:block;" class="ays_poll_small_hint_text"><?php echo esc_html__('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3237 </div>
3238 </div>
3239 <hr>
3240 <div>
3241 <div>
3242 <label for="ays_poll_buttons_mobile_width">
3243 <?php echo esc_html__('On mobile', "poll-maker"); ?>
3244 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker"); ?>">
3245 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3246 </a>
3247 </label>
3248 </div>
3249 <div>
3250 <input type="number" class="ays-text-input ays-text-input-short" id="ays_poll_buttons_mobile_width" name="ays_poll_buttons_mobile_width" value="<?php echo $poll_buttons_mobile_width; ?>"/>
3251 <span style="display:block;" class="ays_poll_small_hint_text"><?php echo esc_html__('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3252 </div>
3253 </div>
3254 </div>
3255 </div>
3256 <hr/>
3257 <div class="form-group row">
3258 <div class="col-sm-4">
3259 <label for="ays_poll_custom_class">
3260 <?php echo esc_html__('Custom class for poll container', "poll-maker")?>
3261 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Use your custom HTML class for adding your custom styles to the poll container.', "poll-maker")?>">
3262 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3263 </a>
3264 </label>
3265 </div>
3266 <div class="col-sm-8 ays_divider_left">
3267 <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; ?>">
3268 </div>
3269 </div>
3270 </div>
3271 </div>
3272 </div>
3273 <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3274 <?php
3275
3276 $content = "
3277 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
3278 <div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''>
3279 <div class='apm-title-box'>
3280 <h5>{$poll['title']}</h5>
3281 </div>";
3282
3283 $content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div>
3284 <div class='apm-img-box'>";
3285 $content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : "";
3286 $checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
3287 $content .= "</div>
3288 <div class='apm-answers ays_poll_list_view_container'>";
3289 $minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ;
3290 $minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ;
3291 if ($poll_answer_icon_check && $poll['theme_id'] != 3) {
3292 switch ($poll_answer_icon) {
3293 case 'radio':
3294 $answer_icon_class = 'ays_poll_answer_icon_radio';
3295 break;
3296 case 'checkbox':
3297 $answer_icon_class = 'ays_poll_answer_icon_checkbox';
3298 break;
3299 default:
3300 $answer_icon_class = '';
3301 break;
3302 }
3303 }else{
3304 $answer_icon_class = '';
3305 }
3306 switch ( $poll['type'] ) {
3307 case 'choosing':
3308 if(empty($poll['answers'])){
3309 for ($i = 0 ; $i < $answer_default_count ; $i++){
3310 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i.">
3311 <input type='radio' name='answer' id='radio-".$i."-' value='".$i."'>
3312 <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>
3313
3314 </div>";
3315 }
3316 }
3317 else{
3318 foreach ( $poll['answers'] as $index => $answer ) {
3319 $answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : "";
3320 $poll_class_for_answer_label = "";
3321 $poll_class_for_answer_label_text = "";
3322 if($answer_image != ""){
3323 $poll_class_for_answer_label = "ays_poll_label_without_padding";
3324 $poll_class_for_answer_label_text = "ays_poll_label_text_with_padding";
3325 }
3326 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index.">
3327 <input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'>
3328 <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>
3329 </div>";
3330 }
3331 }
3332 break;
3333 case 'voting':
3334 $poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand";
3335 switch ( $poll_view_type_voting ) {
3336 case 'hand':
3337 foreach ( $poll['answers'] as $index => $answer ) {
3338 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3339 <label for='radio-$index-'>";
3340 $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>";
3341 }
3342 break;
3343 case 'emoji':
3344 foreach ( $poll['answers'] as $index => $answer ) {
3345 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3346 <label for='radio-$index-'>";
3347 $content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>";
3348 }
3349 break;
3350 default:
3351 break;
3352 }
3353 break;
3354 case 'rating':
3355 $poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star";
3356 switch ( $poll_view_type_rating ) {
3357 case 'star':
3358 foreach ( $poll['answers'] as $index => $answer ) {
3359 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3360 <label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>";
3361 }
3362 break;
3363 case 'emoji':
3364 foreach ( $poll['answers'] as $index => $answer ) {
3365 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3366 <label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>";
3367 }
3368 break;
3369 default:
3370 break;
3371 }
3372 break;
3373 case 'text':
3374 $poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text";
3375 switch ( $poll_view_type_text ) {
3376 case 'short_text':
3377 $content .= "<div class='ays-poll-maker-text-live-preview'>
3378 <input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'>
3379 <label for='ays_poll_text_type_short_live'></label>
3380 </div>";
3381 break;
3382 case 'paragraph':
3383 $content .= "<div class='ays-poll-maker-text-live-preview'>
3384 <textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea>
3385 <label for='ays_poll_text_type_paragraph_live'></label>
3386 </div>";
3387 break;
3388 default:
3389 break;
3390 }
3391 break;
3392 default:
3393 break;
3394 }
3395 $content .= "</div>
3396 <div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . ">
3397 <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') . '">
3398 </div>';
3399 $content .= "<div class='".$poll_logo_img." ays_live_logo_container'>";
3400 if($poll_check_logo){
3401 $content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>";
3402 }
3403 $content .= "</div>";
3404
3405 $content .='</div>
3406 </div>';
3407 print wp_kses_post($content);
3408 ?>
3409 </div>
3410 </div>
3411 <hr/>
3412 <div class="form-group row">
3413 <div class="col-sm-2">
3414 <label for="ays_custom_css">
3415 <?php echo esc_html__("Custom CSS", "poll-maker"); ?>
3416 </label>
3417 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("In this field, you can write your own CSS code. For example: p{color:red !important}", "poll-maker"); ?>">
3418 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3419 </a>
3420 <br>
3421 </div>
3422 <div class="col-sm-10 ays_divider_left">
3423 <textarea class="ays-textarea" id="ays_custom_css" name="ays_custom_css" cols="30" rows="10"><?php echo (isset($poll['custom_css'])) ? wp_kses_post($poll['custom_css']) : ''; ?></textarea>
3424 </div>
3425 </div>
3426 <hr/>
3427 <div class="form-group row">
3428 <div class="col-sm-2">
3429 <label for="ays_poll_reset_to_default">
3430 <?php echo esc_html__('Reset styles', "poll-maker") ?>
3431 <a class="ays_help" data-toggle="tooltip"
3432 title="<?php echo esc_html__('Reset styles to default values', "poll-maker") ?>">
3433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3434 </a>
3435 </label>
3436 </div>
3437 <div class="col-sm-10 ays_divider_left">
3438 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3439 id="ays_poll_reset_to_default"><?php echo esc_html__("Reset", "poll-maker") ?>
3440 </button>
3441 </div>
3442 </div>
3443 </div>
3444 <hr>
3445 <div class="only_pro" style="position: relative; display: inline-block">
3446 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
3447 <div class="pro-features-popup-conteiner">
3448 <div class="pro-features-popup-title">
3449 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
3450 </div>
3451 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
3452 <p>
3453 <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
3454 </p>
3455 <p>
3456 <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
3457 </p>
3458 </div>
3459 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
3460 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3461 </div>
3462 </div>
3463 </div>
3464 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
3465 <span class="ays_save_as_default_content_for_mobile">
3466 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
3467 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
3468 </a>
3469 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
3470 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3471 </a>
3472 </span>
3473 </div>
3474 </div>
3475 </div>
3476 <div id="tab3" class="ays-poll-tab-content <?php echo $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3477 <div class="ays-poll-accordion-options-main-container">
3478 <div class="ays-poll-accordion-header">
3479 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3480 <p class="ays-subtitle"><?php echo esc_html__('Feature options', "poll-maker"); ?> </p>
3481 </div>
3482 <hr class="ays-poll-bolder-hr"/>
3483 <div class="ays-poll-accordion-body">
3484 <div class="form-group row">
3485 <div class="col-sm-3">
3486 <label>
3487 <?php echo esc_html__('Status', "poll-maker"); ?>
3488 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3489 title="<?php echo esc_html__('Choose whether the poll is active or not. If you choose an unpublished option, the poll won’t be shown anywhere on your website. (You do not need to remove shortcodes).', "poll-maker") ?>">
3490 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3491 </a>
3492 </label>
3493 </div>
3494 <div class="col-sm-9">
3495 <div class="d-flex">
3496 <div class="form-check form-check-inline">
3497 <input type="radio" id="ays-publish" name="ays_publish"
3498 value="1" <?php echo ($published == 1) ? 'checked' : ''; ?> />
3499 <label class="form-check-label"
3500 for="ays-publish"> <?php echo esc_html__('Published', "poll-maker"); ?> </label>
3501 </div>
3502 <div class="form-check form-check-inline">
3503 <input type="radio" id="ays-unpublish" name="ays_publish"
3504 value="0" <?php echo ($published == 0) ? 'checked' : ''; ?> />
3505 <label class="form-check-label"
3506 for="ays-unpublish"> <?php echo esc_html__('Unpublished', "poll-maker"); ?> </label>
3507 </div>
3508 </div>
3509 </div>
3510 </div>
3511 <hr>
3512 <div class='form-group row'>
3513 <div class="col-sm-3">
3514 <label for='ays-poll-category'>
3515 <?php echo esc_html__('Categories', "poll-maker"); ?>
3516 <a class="ays_help" data-toggle="tooltip"
3517 data-placement="top"
3518 title="<?php echo esc_html__("Choose the category your poll belongs to. For creating a category, go to the `Categories` page (find it on the Poll Maker left navbar).", "poll-maker"); ?>">
3519 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3520 </a>
3521 </label>
3522 </div>
3523 <div class="col-sm-9">
3524 <?php if (!empty($categories)): ?>
3525 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3526 data-placeholder='<?php echo esc_html__("Select category", "poll-maker") ?>'>
3527 <?php
3528 foreach ( $categories as $cat ) {
3529 ?>
3530 <option value="<?php echo esc_attr($cat['id']); ?>" <?php echo in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3531 <?php echo esc_html($cat['title']); ?>
3532 </option>
3533 <?php }
3534 ?>
3535 </select>
3536 <div class="ays_poll_small_hint_text_for_message_variables" style="margin-top: 5px;">
3537 <span>
3538 <?php
3539 echo (sprintf(
3540 /* translators: %s: opening and closing <a> HTML code */
3541 wp_kses_post(__('Create a new category %s here %s', 'poll-maker')),
3542 '<a href="'. esc_url( $poll_category_page_url ) .'" target="_blank">',
3543 '</a>'
3544 ));
3545 ?>
3546 </span>
3547 </div>
3548 <?php else: ?>
3549 <a href="?page=poll-maker-ays-cats&action=add"><?php echo esc_html__("Create category", "poll-maker") ?></a>
3550 <?php endif; ?>
3551 </div>
3552 </div>
3553 <hr>
3554 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3555 <div class="form-group row ays_toggle_parent">
3556 <div class="col-sm-3">
3557 <label for="ays_add_post_for_poll">
3558 <?php echo esc_html__('Create post for poll', "poll-maker")?>
3559 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('A new WordPress post will be created automatically and will include the shortcode of this poll. This function will be executed only once. You can find this post on Posts page, which will have the same title as the poll. The image of the poll will be the featured image of the post.', "poll-maker")?>">
3560 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3561 </a>
3562 </label>
3563 </div>
3564 <div class="col-sm-1">
3565 <input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/>
3566 </div>
3567 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3568 <div class="form-group row">
3569 <div class="col-sm-4">
3570 <label for="ays_add_postcat_for_poll">
3571 <?php echo esc_html__('Choose Post Categories', "poll-maker")?>
3572 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose the category of the new post. For creating a category, go to the Categories page of the Posts.', "poll-maker")?>">
3573 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3574 </a>
3575 </label>
3576 </div>
3577 <div class="col-sm-8">
3578 <div class="input-group">
3579 <select name="ays_add_postcat_for_poll[]"
3580 id="ays_add_postcat_for_poll"
3581 class="apm-cat-select2"
3582 multiple>
3583 <?php
3584
3585 foreach ($cat_list as $cat) {
3586 echo "<option value='" . wp_kses_post($cat->cat_ID) . "' >" . wp_kses_post($cat->name) . "</option>";
3587 }
3588 ?>
3589 </select>
3590 </div>
3591 </div>
3592 </div>
3593 </div>
3594 </div> <!-- Create post for poll -->
3595 <hr/>
3596 <?php else: ?>
3597 <div class="form-group row">
3598 <div class="col-sm-3">
3599 <label for="ays_add_post_for_poll">
3600 <?php echo esc_html__('WP Post', "poll-maker")?>
3601 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Via these two links you can see the connected post in front end and make changes in the dashboard.', "poll-maker")?>">
3602 <i class="ays_fa ays_fa_info_circle"></i>
3603 </a>
3604 </label>
3605 </div>
3606 <div class="col-sm-8" style="margin-left: 15px;">
3607 <div class="row">
3608 <div style="margin-right: 10px;">
3609 <a class="button action" href="<?php echo esc_url($ays_poll_view_post_url); ?>" target="_blank"><?php echo esc_html__( "View Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3610 </div>
3611 <div>
3612 <a class="button action" href="<?php echo esc_url($ays_poll_edit_post_url); ?>" target="_blank"><?php echo esc_html__( "Edit Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3613 </div>
3614 </div>
3615 </div>
3616 <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo esc_attr($post_id); ?>">
3617 </div>
3618 <hr>
3619 <?php endif; ?>
3620 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3621 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3622 <div class="pro_features" style="justify-content:flex-end;">
3623 </div>
3624 <div class="form-group row">
3625 <div class="col-sm-3">
3626 <label for="ays_poll_enable_copy_protection">
3627 <?php echo esc_html__('Enable copy protection',"poll-maker"); ?>
3628 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Disable copy functionality in poll page(CTRL+C) and Right-click',"poll-maker"); ?>">
3629 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3630 </a>
3631 </label>
3632 </div>
3633 <div class="col-sm-9">
3634 <input type="checkbox" class="ays-enable-timer1" />
3635 </div>
3636 </div>
3637 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3638 <div class="ays-poll-new-upgrade-button-box">
3639 <div>
3640 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3641 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3642 </div>
3643 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3644 </div>
3645 </a>
3646 </div>
3647 </div>
3648 <hr/>
3649 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3650 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3651 <div class="pro_features" style="justify-content:flex-end;">
3652 </div>
3653 <div class="form-group row">
3654 <div class="col-sm-3">
3655 <label for="ays_poll_question_text_to_speech">
3656 <?php echo esc_html__('Enable text to speech',"poll-maker")?>
3657 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable this option to convert question text into spoken words, providing an audio representation of the question for improved accessibility and convenience.',"poll-maker")?>">
3658 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3659 </a>
3660 </label>
3661 </div>
3662 <div class="col-sm-9">
3663 <input type="checkbox" class="ays-enable-timer1"
3664 name="ays_poll_question_text_to_speech"
3665 value="on"/>
3666 </div>
3667 </div>
3668 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3669 <div class="ays-poll-new-upgrade-button-box">
3670 <div>
3671 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3672 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3673 </div>
3674 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3675 </div>
3676 </a>
3677 </div>
3678 </div> <!-- Questions text to speech -->
3679 <hr>
3680 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3681 <div class="col-sm-3">
3682 <label for='ays_poll_allow_multivote'>
3683 <?php echo esc_html__('Allow multivote', "poll-maker"); ?>
3684 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Allow users to choose more than one answer. It will work with choosing type.", "poll-maker"); ?>">
3685 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3686 </a>
3687 </label>
3688 </div>
3689 <div class="col-sm-1">
3690 <input type="checkbox" name="ays_poll_allow_multivote" id="ays_poll_allow_multivote" class="ays-enable-timer1 ays_toggle_checkbox" value="on" <?php echo $poll_allow_multivote; ?>>
3691 </div>
3692 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="<?php echo esc_attr($poll_enable_multivote_answer) ? '' : 'display: none'; ?>">
3693 <div class="row">
3694 <div class="col-sm-3">
3695 <label for='ays_poll_multivote_min_count'>
3696 <?php echo esc_html__('Min', "poll-maker"); ?>
3697 <a class="ays_help"
3698 data-toggle="tooltip"
3699 data-placement="top"
3700 title="<?php echo esc_html__("Indicate the minimum count of answers.", "poll-maker"); ?>">
3701 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3702 </a>
3703 </label>
3704 </div>
3705 <div class="col-sm-9">
3706 <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; ?>">
3707 </div>
3708 </div>
3709 <hr>
3710 <div class="row">
3711 <div class="col-sm-3">
3712 <label for='ays_poll_multivote_count'>
3713 <?php echo esc_html__('Max', "poll-maker"); ?>
3714 <a class="ays_help"
3715 data-toggle="tooltip"
3716 data-placement="top"
3717 title="<?php echo esc_html__("Indicate the maximum count of answers.", "poll-maker"); ?>">
3718 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3719 </a>
3720 </label>
3721 </div>
3722 <div class="col-sm-9">
3723 <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; ?>">
3724 </div>
3725 </div>
3726 </div>
3727 </div>
3728 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3729 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3730 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3731 <div class="pro_features" style="justify-content:flex-end;">
3732 </div>
3733 <div class="form-group row">
3734 <div class="col-sm-3">
3735 <label for="ays-poll-allow-edit">
3736 <?php echo esc_html__('Edit previous submission', "poll-maker") ?>
3737 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
3738 data-placement="top"
3739 title="<?php echo esc_html__("By activating this option, the previous answers will be displayed and the user will be able to edit them. Note: This option will be available only for the logged-in users.", "poll-maker"); ?>">
3740 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3741 </a>
3742 </label>
3743 </div>
3744 <div class="col-sm-9">
3745 <input type="checkbox" class="ays-enable-timer1"
3746 name="ays_edit_previous_submission"
3747 value="on"/>
3748 </div>
3749 </div>
3750 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3751 <div class="ays-poll-new-upgrade-button-box">
3752 <div>
3753 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3754 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3755 </div>
3756 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3757 </div>
3758 </a>
3759 </div>
3760 </div>
3761 <hr>
3762 <div class="form-group row">
3763 <div class="col-sm-3">
3764 <label for='show-title'>
3765 <?php echo esc_html__('Show Title', "poll-maker"); ?>
3766 <a class="ays_help" data-toggle="tooltip"
3767 data-placement="top"
3768 title="<?php echo esc_html__("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3769 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3770 </a>
3771 </label>
3772 </div>
3773 <div class="col-sm-9">
3774 <input type="checkbox" name="show_title" id="show-title"
3775 value="show" <?php echo $poll['show_title'] ? 'checked' : ''; ?>>
3776 </div>
3777 </div>
3778 <hr>
3779 <div class="ays_poll_option_for_choosing_type ays_poll_option_for_text_type form-group row" style="display: <?php echo ($poll['type'] == 'choosing' || $poll['type'] == 'text') ? 'flex' : 'none' ?>" >
3780 <div class="col-sm-3">
3781 <label>
3782 <?php echo esc_html__('Alignment', "poll-maker"); ?>
3783 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3784 title="<?php echo esc_html__('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3785 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3786 </a>
3787 </label>
3788 </div>
3789 <div class="col-sm-9">
3790 <div class="d-flex">
3791 <div class="form-check form-check-inline">
3792 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3793 value="ltr" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3794 <label class="form-check-label"
3795 for="apm-dir-ltr"> <?php echo esc_html__('Left', "poll-maker"); ?> </label>
3796 </div>
3797 <div class="form-check form-check-inline">
3798 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3799 value="center" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3800 <label class="form-check-label"
3801 for="apm-dir-center"> <?php echo esc_html__('Center', "poll-maker"); ?> </label>
3802 </div>
3803 <div class="form-check form-check-inline">
3804 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3805 value="rtl" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3806 <label class="form-check-label"
3807 for="apm-dir-rtl"> <?php echo esc_html__('Right', "poll-maker"); ?> </label>
3808 </div>
3809 </div>
3810 </div>
3811 </div>
3812 <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' ?>" >
3813 <div class="form-group row">
3814 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3815 <div class="pro_features pro_features_popup">
3816 <div class="pro-features-popup-conteiner">
3817 <div class="pro-features-popup-title">
3818 <?php echo esc_html__("Allow Anonymity", "poll-maker"); ?>
3819 </div>
3820 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3821 <p>
3822 <?php echo esc_html__("Increase the poll response rates by allowing anonymity in your polls. Let your respondents vote in your polls without revealing their identity. This will allow you to get more accurate poll results as the participants will be more confident to express their honest opinions.", "poll-maker"); ?>
3823 </p>
3824 </div>
3825 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-allow-anonymity-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
3826 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3827 </div>
3828 </div>
3829 </div>
3830 <div class="pro_features" style="justify-content:flex-end;">
3831 </div>
3832 <div class="form-group row">
3833 <div class="col-sm-3">
3834 <label for='ays-poll-allow-anonymity'>
3835 <?php echo esc_html__('Allow anonymity', "poll-maker"); ?>
3836 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("It allows participants to respond to your polls without ever revealing their identities, even if they are registered on your website. After enabling the option, the WP User and User IP will not be stored in the database.", "poll-maker"); ?>">
3837 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3838 </a>
3839 </label>
3840 </div>
3841 <div class="col-sm-9">
3842 <input type="checkbox" name="ays_allow_anonymity"
3843 value="1" >
3844 </div>
3845 </div>
3846 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3847 <div class="ays-poll-new-upgrade-button-box">
3848 <div>
3849 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3850 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3851 </div>
3852 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3853 </div>
3854 </a>
3855 <div class="ays-poll-new-watch-video-button-box">
3856 <div>
3857 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
3858 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
3859 </div>
3860 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
3861 </div>
3862 </div>
3863 </div>
3864 <hr>
3865 <div class="form-group row">
3866 <div class="col-sm-3">
3867 <label for='ays_poll_change_creation_date'>
3868 <?php echo esc_html__('Change current poll creation date', "poll-maker"); ?>
3869 <a class="ays_help" data-toggle="tooltip"
3870 data-placement="top"
3871 title="<?php echo esc_html__("Choose your preferred creation date.", "poll-maker"); ?>">
3872 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3873 </a>
3874 </label>
3875 </div>
3876 <div class="col-sm-9" style="display: inherit;">
3877 <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"
3878 value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3879 <div class="input-group-append" style="display: block">
3880 <label for="ays_poll_change_creation_date" class="input-group-text">
3881 <span><i class="ays_fa ays_fa_calendar"></i></span>
3882 </label>
3883 </div>
3884 </div>
3885 </div>
3886 <hr>
3887 <div class="form-group row">
3888 <div class="col-sm-3">
3889 <label for="ays_poll_create_author">
3890 <?php echo esc_html__('Change the author of the current poll', "poll-maker"); ?>
3891 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('You can change the author who created the current poll to your preferred one. You need to write the User ID here. Please note, that in case you write an ID, by which there are no users found, the changes will not be applied and the previous author will remain the same.', "poll-maker"); ?>">
3892 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3893 </a>
3894 </label>
3895 </div>
3896 <div class="col-sm-9">
3897 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3898 <option value=""><?php echo esc_html__('Select User', "poll-maker")?></option>
3899 <?php
3900 $poll_user_id = ( isset($get_current_poll_author_data->ID) && $get_current_poll_author_data->ID != '' ) ? absint( sanitize_text_field($get_current_poll_author_data->ID) ) : 0;
3901 $poll_user_display_name = ( isset($get_current_poll_author_data->display_name) && $get_current_poll_author_data->display_name != '' ) ? stripslashes( esc_html($get_current_poll_author_data->display_name) ) : '';
3902 $selected = '';
3903 ?>
3904 <option value="<?php echo esc_attr($poll_user_id);?>" selected>
3905 <?php echo esc_html($poll_user_display_name); ?>
3906 </option>
3907 </select>
3908 </div>
3909 </div> <!-- Change the author of the current poll -->
3910 <hr/>
3911 <!-- Poll Main URL Start -->
3912 <div class="form-group row">
3913 <div class="col-sm-3">
3914 <label for="ays_poll_main_url">
3915 <?php echo esc_html__('Poll main URL', "poll-maker")?>
3916 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write the URL link where your poll is located (in Front-end). To open your poll right from the polls page, please fill in this field and navigate to the general tab to see the \'View\' button', "poll-maker");
3917 ?>">
3918 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3919 </a>
3920 </label>
3921 </div>
3922 <div class="col-sm-9">
3923 <input type="url" id="ays_poll_main_url" name="ays_poll_main_url" class="ays-text-input" value="<?php echo esc_url($poll_main_url); ?>">
3924 </div>
3925 </div>
3926 <!-- Poll Main URL End -->
3927 <hr>
3928 <div class="form-group row">
3929 <div class="col-sm-3">
3930 <label for='show-poll-create-dates'>
3931 <?php echo esc_html__('Show creation date', "poll-maker"); ?>
3932 <a class="ays_help" data-toggle="tooltip"
3933 data-placement="top"
3934 title="<?php echo esc_html__("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3935 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3936 </a>
3937 </label>
3938 </div>
3939 <div class="col-sm-9">
3940 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3941 value="1" <?php echo esc_attr($show_create_date) ? 'checked' : '' ?> >
3942 </div>
3943 </div>
3944 <hr>
3945 <div class="form-group row">
3946 <div class="col-sm-3">
3947 <label for='show-poll-author'>
3948 <?php echo esc_html__('Show author', "poll-maker"); ?>
3949 <a class="ays_help" data-toggle="tooltip"
3950 data-placement="top"
3951 title="<?php echo esc_html__("Enable to show the author inside the poll.", "poll-maker"); ?>">
3952 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3953 </a>
3954 </label>
3955 </div>
3956 <div class="col-sm-9">
3957 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3958 value="1" <?php echo esc_attr($show_author) ? 'checked' : '' ?> >
3959 </div>
3960 </div>
3961 <hr>
3962 <div class="form-group row">
3963 <div class="col-sm-3">
3964 <label for="schedule_the_poll">
3965 <?php echo esc_html__('Schedule', "poll-maker"); ?>
3966 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3967 title="<?php echo esc_html__('Specify the period of time when the poll will be active. Choose the start and the end date and write the pre-start and expiration messages.', "poll-maker") ?>">
3968 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3969 </a>
3970 </label>
3971 </div>
3972 <div class="col-sm-1">
3973 <input type="checkbox"
3974 id="schedule_the_poll"
3975 class="active_date_check"
3976 name="active_date_check" <?php echo (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3977 </div>
3978 <div class="col-sm-8">
3979 <div class="row">
3980 <div class="col-sm-12 active_date ays_divider_left"
3981 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3982 <!-- -1- -->
3983 <div class="form-group row">
3984 <div class="col-sm-3">
3985 <label class="form-check-label" for="ays-active"> <?php echo esc_html__('Start date:', "poll-maker"); ?> </label>
3986 </div>
3987 <div class="col-sm-9">
3988 <div class="input-group mb-3">
3989 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
3990 value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3991 <div class="input-group-append">
3992 <label for="ays-active" class="input-group-text">
3993 <span><i class="ays_fa ays_fa_calendar"></i></span>
3994 </label>
3995 </div>
3996 </div>
3997 </div>
3998 </div>
3999 <!-- -2- -->
4000 <div class="form-group row">
4001 <div class="col-sm-3">
4002 <label class="form-check-label" for="ays-deactive"> <?php echo esc_html__('End date:', "poll-maker"); ?> </label>
4003 </div>
4004 <div class="col-sm-9">
4005 <div class="input-group mb-3">
4006 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
4007 value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
4008 <div class="input-group-append">
4009 <label for="ays-deactive" class="input-group-text">
4010 <span><i class="ays_fa ays_fa_calendar"></i></span>
4011 </label>
4012 </div>
4013 </div>
4014 </div>
4015 </div>
4016 <!-- ////////// -->
4017 <hr>
4018 <div class="form-group row">
4019 <div class="col-sm-3">
4020 <label for='ays_poll_show_timer'>
4021 <?php echo esc_html__('Show timer', "poll-maker"); ?>
4022 <a class="ays_help" data-toggle="tooltip"
4023 data-placement="top"
4024 title="<?php echo esc_html__("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
4025 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4026 </a>
4027 </label>
4028 </div>
4029 <div class="col-sm-1">
4030 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
4031 value="1" <?php echo $schedule_show_timer ? 'checked' : '' ?> >
4032 </div>
4033 <div class="col-sm-8">
4034 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
4035 <div class="d-flex">
4036 <div class="form-check form-check-inline">
4037 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
4038 value="countdown" <?php echo $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
4039 <label class="form-check-label"
4040 for="show_time_countdown"> <?php echo esc_html__('Show countdown', "poll-maker"); ?> </label>
4041 </div>
4042 <div class="form-check form-check-inline">
4043 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
4044 value="enddate" <?php echo $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
4045 <label class="form-check-label"
4046 for="show_time_enddate"> <?php echo esc_html__('Show end date', "poll-maker"); ?> </label>
4047 </div>
4048 </div>
4049 <hr>
4050 <div class='form-group row'>
4051 <div class='col-sm-5'>
4052 <label class="form-check-label" for="show_bottom_timer">
4053 <?php echo esc_html__(' Show timer at the bottom', "poll-maker"); ?>
4054 <a class="ays_help" data-toggle="tooltip"
4055 data-placement="top"
4056 title="<?php echo esc_html__("If you enable this option, the timer will be displayed at the bottom of the poll instead of the top.", "poll-maker"); ?>">
4057 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4058 </a>
4059 </label>
4060 </div>
4061 <div class='col-sm-7'>
4062 <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?php echo $show_bottom_timer == true ? 'checked' : ''; ?> >
4063 </div>
4064 </div>
4065 </div>
4066 </div>
4067 </div>
4068 <hr>
4069 <div class="form-group row">
4070 <div class="col-sm-3">
4071 <label class="form-check-label"
4072 for="active_date_message"><?php echo esc_html__("Pre start message:", "poll-maker") ?></label>
4073 </div>
4074 <div class="col-sm-9">
4075 <div class="editor">
4076 <?php
4077 $content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']);
4078 $editor_id = 'active_date_message_soon';
4079 $settings = array(
4080 'editor_height' => $poll_wp_editor_height,
4081 'textarea_name' => 'active_date_message_soon',
4082 'editor_class' => 'ays-textarea',
4083 'media_elements' => false
4084 );
4085 wp_editor($content, $editor_id, $settings);
4086 ?>
4087 </div>
4088 </div>
4089 </div>
4090 <hr>
4091 <!-- -3- -->
4092 <div class="form-group row">
4093 <div class="col-sm-3">
4094 <label class="form-check-label"
4095 for="active_date_message"><?php echo esc_html__("Expiration message:", "poll-maker") ?></label>
4096 </div>
4097 <div class="col-sm-9">
4098 <div class="editor">
4099 <?php
4100 $content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']);
4101 $editor_id = 'active_date_message';
4102 $settings = array(
4103 'editor_height' => $poll_wp_editor_height,
4104 'textarea_name' => 'active_date_message',
4105 'editor_class' => 'ays-textarea',
4106 'media_elements' => false
4107 );
4108 wp_editor($content, $editor_id, $settings);
4109 ?>
4110 </div>
4111 </div>
4112 </div>
4113 <hr>
4114 <div class="form-group row">
4115 <div class="col-sm-3">
4116 <label for='show_result_btn_schedule'>
4117 <?php echo esc_html__('Show result button', "poll-maker"); ?>
4118 <a class="ays_help" data-toggle="tooltip"
4119 data-placement="top"
4120 title="<?php echo esc_html__("Enable to show the result button after the schedule.", "poll-maker"); ?>">
4121 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4122 </a>
4123 </label>
4124 </div>
4125 <div class="col-sm-1">
4126 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
4127 value="1" <?php echo $showresbtnschedule ? 'checked' : '' ?> >
4128 </div>
4129 <div class="col-sm-8">
4130 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
4131 <div class="form-check form-check-inline">
4132 <label class="form-check-label">
4133 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
4134 <span>
4135 <?php echo esc_html__('With See Results button', "poll-maker"); ?>
4136 </span>
4137 </label>
4138 </div>
4139 <div class="form-check form-check-inline">
4140 <label class="form-check-label">
4141 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
4142 <span>
4143 <?php echo esc_html__('Without See Results button', "poll-maker"); ?>
4144 </span>
4145 </label>
4146 </div>
4147 </div>
4148 </div>
4149 </div>
4150 <hr>
4151 <div class="form-group row">
4152 <div class="col-sm-3">
4153 <label for='ays_show_poll_container'>
4154 <?php echo esc_html__("Don't show poll", "poll-maker"); ?>
4155 <a class="ays_help" data-toggle="tooltip"
4156 data-placement="top"
4157 title="<?php echo esc_html__("Do not show the poll container on the front-end at all when it is expired or has not started yet.", "poll-maker"); ?>">
4158 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4159 </a>
4160 </label>
4161 </div>
4162 <div class="col-sm-9">
4163 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
4164 value="on" <?php echo esc_attr($poll_check_exp_cont); ?> >
4165 </div>
4166 </div>
4167 </div>
4168 </div>
4169 </div>
4170 </div>
4171 <hr>
4172 <div class="form-group row ays_toggle_parent">
4173 <div class="col-sm-3">
4174 <label for='ays-poll-allow-not-vote'>
4175 <?php echo esc_html__('Allow not to vote', "poll-maker"); ?>
4176 <a class="ays_help"
4177 data-toggle="tooltip"
4178 data-placement="top"
4179 title="<?php echo esc_html__("Allow the user to directly see the results without participating in the vote. If the option is checked, it is impossible to hide the results.", "poll-maker"); ?>">
4180 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4181 </a></label>
4182 </div>
4183 <div class="col-sm-1">
4184 <input type="checkbox" name="ays-poll-allow-not-vote" id="ays-poll-allow-not-vote" class="ays_toggle_checkbox" value="allow" <?php echo isset($options['allow_not_vote']) && $options['allow_not_vote'] ? 'checked' : ''; ?>>
4185 </div>
4186 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
4187 <div class="row">
4188 <div class="col-sm-3 ays_divider_left">
4189 <label for="ays-poll-btn-text">
4190 <?php echo esc_html__("Results button text", "poll-maker"); ?>
4191 <a class="ays_help"
4192 data-toggle="tooltip"
4193 data-placement="top"
4194 title="<?php echo esc_html__("Write the text of the button, which shows results.", "poll-maker"); ?>">
4195 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4196 </a>
4197 </label>
4198 </div>
4199 <div class="col-sm-9">
4200 <input type="text" class="ays-text-input ays-text-input-short" id="ays-poll-btn-text" name="ays_poll_res_btn_text" value="<?php echo (isset($options['see_res_btn_text']) && '' != $options['see_res_btn_text']) ? (esc_attr(stripslashes($options['see_res_btn_text']) )) :esc_html__("See Results", "poll-maker"); ?>"/>
4201 </div>
4202 </div>
4203 </div>
4204 </div>
4205 <hr>
4206 <div class="form-group row">
4207 <div class="col-sm-3" style="padding-right: 0px;">
4208 <label for="ays_enable_pass_count">
4209 <?php echo esc_html__('Show passed users count', "poll-maker") ?>
4210 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4211 title="<?php echo esc_html__('Show how many users have passed the poll. It will be shown at the bottom right corner inside the poll.', "poll-maker") ?>">
4212 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4213 </a>
4214 </label>
4215 </div>
4216 <div class="col-sm-9">
4217 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
4218 value="on" <?php echo ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
4219 </div>
4220 </div>
4221 <hr>
4222 <div class="form-group row ays_toggle_parent">
4223 <div class="col-sm-3">
4224 <label for="ays_redirect_after_vote">
4225 <?php echo esc_html__('Redirect after voting', "poll-maker"); ?>
4226 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4227 title="<?php echo esc_html__('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
4228 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4229 </a>
4230 </label>
4231 </div>
4232 <div class="col-sm-1">
4233 <input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> />
4234 </div>
4235 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>">
4236 <div class="row">
4237 <div class="col-sm-12 ays_divider_left">
4238 <div class="form-group row">
4239 <div class="col-sm-3">
4240 <label for="redirection_url">
4241 <?php echo esc_html__('URL', "poll-maker"); ?>
4242 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__('Choose the Redirection URL for redirecting after the user takes the poll.', "poll-maker"); ?>">
4243 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4244 </a>
4245 </label>
4246 </div>
4247 <div class="col-sm-9">
4248 <input type="text" class="ays-text-input" name="redirection_url" placeholder="https://www.google.com" id="redirection_url" value="<?php echo isset($options['redirect_after_vote_url']) && !empty($options['redirect_after_vote_url']) ? esc_url($options['redirect_after_vote_url']) : ""; ?>" size="25">
4249 </div>
4250 </div>
4251 <hr>
4252 <div class="form-group row">
4253 <div class="col-sm-3">
4254 <label for="redirectio_delay">
4255 <?php echo esc_html__('Delay', "poll-maker"); ?>
4256 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4257 title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
4258 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4259 </a>
4260 </label>
4261 </div>
4262 <div class="col-sm-9">
4263 <input type="text" class="ays-text-input" name="redirection_delay" id="redirectio_delay" value="<?php echo isset($options['redirect_after_vote_delay']) && !empty($options['redirect_after_vote_delay']) ? $options['redirect_after_vote_delay'] : ""; ?>" size="15">
4264 </div>
4265 </div>
4266 </div>
4267 </div>
4268
4269 </div>
4270 </div>
4271 <hr/>
4272 <div class="form-group row">
4273 <div class="col-sm-3">
4274 <label for="randomize-answers">
4275 <?php echo esc_html__('Randomize Answers', "poll-maker"); ?>
4276 <a class="ays_help" data-toggle="tooltip"
4277 data-placement="top"
4278 title="<?php echo esc_html__("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
4279 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4280 </a>
4281 </label>
4282 </div>
4283 <div class="col-sm-9">
4284 <input type="checkbox"
4285 name="randomize_answers"
4286 id="randomize-answers"
4287 value="on"
4288 <?php echo $randomize_answers ? 'checked' : ''; ?>
4289 />
4290 </div>
4291 </div>
4292 <hr/>
4293 <div class="form-group row ays_toggle_parent">
4294 <div class="col-sm-3" style="padding-right: 0px;">
4295 <label for="ays_enable_asnwers_sound">
4296 <?php echo esc_html__('Enable answers sound', "poll-maker")?>
4297 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to play a sound when the user clicks on one of the answers. To select a sound, go to the Poll answers sound option in the General Settings page.', "poll-maker")?>">
4298 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4299 </a>
4300 </label>
4301 </div>
4302 <div class="col-sm-1">
4303 <input type="checkbox" id="ays_enable_asnwers_sound"
4304 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
4305 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
4306 </div>
4307 <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo esc_attr($enable_asnwers_sound) ? '' : 'display:none;' ?>">
4308 <?php if($answers_sound_status): ?>
4309 <blockquote class=""><?php echo esc_html__('Sound are selected. For change sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo esc_html__('General options', "poll-maker"); ?></a> <?php echo esc_html__('page', "poll-maker"); ?></blockquote>
4310 <?php else: ?>
4311 <blockquote class=""><?php echo esc_html__('Sound are not selected. For selecting sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo esc_html__('General options', "poll-maker"); ?></a> <?php echo esc_html__('page', "poll-maker"); ?></blockquote>
4312 <?php endif; ?>
4313 </div>
4314 </div>
4315 <hr/>
4316 <div class="form-group row">
4317 <div class="col-3">
4318 <label for="ays-poll-reason">
4319 <?php echo esc_html__('Vote Reason', "poll-maker"); ?>
4320 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4321 title="<?php echo esc_html__("Allow users to add their vote reason", "poll-maker"); ?>">
4322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4323 </a>
4324 </label>
4325 </div>
4326 <div class="col-9">
4327 <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo esc_attr($poll_vote_reason); ?>>
4328 </div>
4329 </div>
4330 <hr/>
4331 <div class="form-group row ays_toggle_parent">
4332 <div class="col-sm-3">
4333 <label for="ays_enable_vote_button">
4334 <?php echo esc_html__('Enable Vote button', "poll-maker") ?>
4335 <a class="ays_help" data-toggle="tooltip"
4336 title="<?php echo esc_html__('Show the vote button during the vote. If this option is disabled, then the user needs to click on the answer to vote without a chance of changing it.', "poll-maker") ?>">
4337 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4338 </a>
4339 </label>
4340 </div>
4341 <div class="col-sm-1">
4342 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4343 value="1" <?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4344 </div>
4345 <div class="col-sm-8 if-enable-vote-button ays_toggle_target" style="<?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? 'display:none;' : '' ?>">
4346 <div class="row">
4347 <div class="col-sm-3 ays_divider_left">
4348 <label for="ays-poll-btn-text_vote">
4349 <?php echo esc_html__("Vote button text", "poll-maker"); ?>
4350 <a class="ays_help"
4351 data-toggle="tooltip"
4352 data-placement="top"
4353 title="<?php echo esc_html__("Write the text of the vote button.", "poll-maker"); ?>">
4354 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4355 </a>
4356 </label>
4357 </div>
4358 <div class="col-sm-9">
4359 <input type="text" class="ays-text-input ays-text-input-short"
4360 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4361 value="<?php echo esc_attr(stripslashes($options['btn_text'])) ?>"/>
4362 </div>
4363 </div>
4364 </div>
4365 </div>
4366 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4367 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4368 <div class="col-sm-3">
4369 <label for="ays_enable_view_more_button">
4370 <?php echo esc_html__('Enable View more button', "poll-maker") ?>
4371 <a class="ays_help" data-toggle="tooltip"
4372 title="<?php echo esc_html__('Show only part of the answers and show the rest of the answers only when the user clicks on this button. It works only with the choosing type of polls.', "poll-maker"); ?>">
4373 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4374 </a>
4375 </label>
4376 </div>
4377 <div class="col-sm-1">
4378 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_view_more_button" name="ays_enable_view_more_button"
4379 value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> />
4380 </div>
4381 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4382 <div class="form-group row">
4383 <div class="col-sm-3">
4384 <label for="ays_poll_view_more_button_count">
4385 <?php echo esc_html__("Count", "poll-maker"); ?>
4386 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Indicate the number of answers which will be shown in the first place.", "poll-maker"); ?>">
4387 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4388 </a>
4389 </label>
4390 </div>
4391 <div class="col-sm-9">
4392 <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; ?>"/>
4393 </div>
4394 </div>
4395 </div>
4396 </div>
4397 <hr>
4398 <div class="form-group row">
4399 <div class="col-sm-3">
4400 <label for="ays_answers_sort_select">
4401 <?php echo esc_html__('Answers sorting', "poll-maker") ?>
4402 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4403 title="<?php
4404 echo esc_html__("Select the way of arrangement of the answers on the voting page of the poll. This works only with the Choosing type.", "poll-maker") .
4405 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4406 "<li>".esc_html__('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4407 "<li>".esc_html__('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4408 "<li>".esc_html__('Most voted – by most votes', "poll-maker") ."</li>".
4409 "<li>".esc_html__('Less voted - by less votes', "poll-maker") ."</li>".
4410 "<li>".esc_html__('Default - upon your preferences', "poll-maker") ."</li>".
4411 "</ul>";
4412 ?>">
4413 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4414 </a>
4415 </label>
4416 </div>
4417 <div class="col-sm-9">
4418 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4419 <option value="default" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo esc_html__('Default', "poll-maker") ?></option>
4420 <option value="ascending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo esc_html__('Ascending', "poll-maker") ?></option>
4421 <option value="descending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo esc_html__('Descending', "poll-maker") ?></option>
4422 <option value="votes_asc" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_asc" ? 'selected' : ''; ?>><?php echo esc_html__('Most Voted', "poll-maker") ?></option>
4423 <option value="votes_desc" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_desc" ? 'selected' : ''; ?>><?php echo esc_html__('Less Voted', "poll-maker") ?></option>
4424 </select>
4425 </div>
4426 </div>
4427 <hr>
4428 <div class="form-group row">
4429 <div class="col-sm-3">
4430 <label for="ays_poll_aysDropdown">
4431 <?php echo esc_html__('Answers numbering', "poll-maker"); ?>
4432 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Assign numbering to each answer in ascending sequential order. Choose your preferred type from the list.', "poll-maker"); ?>">
4433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4434 </a>
4435 </label>
4436 </div>
4437 <div class="col-sm-9">
4438 <select class="ays_poll_aysDropdown" id="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4439 <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo esc_html__( "None", "poll-maker"); ?></option>
4440 <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo esc_html__( "1.", "poll-maker"); ?></option>
4441 <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo esc_html__( "1)", "poll-maker"); ?></option>
4442 <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo esc_html__( "A.", "poll-maker"); ?></option>
4443 <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo esc_html__( "A)", "poll-maker"); ?></option>
4444 <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo esc_html__( "a.", "poll-maker"); ?></option>
4445 <option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo esc_html__( "a)", "poll-maker"); ?></option>
4446 <option <?php echo $show_answers_numbering == "VI." ? "selected" : ""; ?> value="VI."><?php echo esc_html__( "VI.", "poll-maker"); ?></option>
4447 </select>
4448 </div>
4449 </div> <!-- Show answers numbering -->
4450 <hr>
4451 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="<?php echo ($id === null || (isset($poll['type']) && $poll['type'] != 'choosing')) ? 'display: none;' : ''; ?>">
4452 <div class="col-sm-3">
4453 <label for="ays_show_votes_before_voting">
4454 <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4455 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4456 title="<?= __('Display the votes count per answer to the poll participants beforehand. It will show the last result. There are two ways to represent the votes count: by count and by percentage.', "poll-maker") ?>">
4457 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4458 </a>
4459 </label>
4460 </div>
4461 <div class="col-sm-1">
4462 <input type="checkbox" class="ays_toggle_checkbox" id="ays_show_votes_before_voting" name="ays_show_votes_before_voting"
4463 value="on" <?php echo ($show_votes_before_voting) ? 'checked' : ''; ?> />
4464 </div>
4465 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($show_votes_before_voting) ? '' : 'display: none'; ?>">
4466 <div class="d-flex">
4467 <div class="form-check-inline ays_poll_loader">
4468 <label class="form-check-label">
4469 <input type="radio" name="ays_show_votes_before_voting_by" value="by_count" <?php echo ($show_votes_before_voting_by == 'by_count') ? 'checked' : ''; ?> />
4470 <span><?= __('By count', "poll-maker"); ?></span>
4471 </label>
4472 </div>
4473 <div class="form-check-inline ays_poll_loader">
4474 <label class="form-check-label">
4475 <input type="radio" name="ays_show_votes_before_voting_by" value="by_percentage" <?php echo ($show_votes_before_voting_by == 'by_percentage') ? 'checked' : ''; ?> />
4476 <span><?= __('By percentage', "poll-maker"); ?></span>
4477 </label>
4478 </div>
4479 </div>
4480 </div>
4481 </div>
4482 </div>
4483 </div>
4484 <div class="only_pro" style="position: relative; display: inline-block">
4485 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4486 <div class="pro-features-popup-conteiner">
4487 <div class="pro-features-popup-title">
4488 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4489 </div>
4490 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4491 <p>
4492 <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
4493 </p>
4494 <p>
4495 <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
4496 </p>
4497 </div>
4498 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
4499 <?php echo esc_html__("Pricing", "poll-maker"); ?>
4500 </div>
4501 </div>
4502 </div>
4503 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
4504 <span class="ays_save_as_default_content_for_mobile">
4505 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
4506 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
4507 </a>
4508 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
4509 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4510 </a>
4511 </span>
4512 </div>
4513 </div>
4514 </div>
4515 <div id="tab4" class="ays-poll-tab-content <?php echo $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4516 <div class="ays-poll-accordion-options-main-container">
4517 <div class="ays-poll-accordion-header">
4518 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
4519 <p class="ays-subtitle"><?php echo esc_html__('Limitation of Users', "poll-maker"); ?></p>
4520 </div>
4521 <hr class="ays-poll-bolder-hr"/>
4522 <div class="ays-poll-accordion-body">
4523 <div class="form-group row ays_toggle_parent">
4524 <div class="col-sm-3">
4525 <label for="apm_limit_users">
4526 <?php echo esc_html__('Maximum number of attempts per user', "poll-maker"); ?>
4527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4528 title="<?php echo esc_html__('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4530 </a>
4531 </label>
4532 </div>
4533 <div class="col-sm-1">
4534 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4535 value="on" <?php echo $options['limit_users'] ? 'checked' : ''; ?> />
4536 </div>
4537 <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo $options['limit_users'] ? '' : 'display: none;'; ?>">
4538 <div class="ays-limitation-options">
4539 <!-- Limitation method -->
4540 <div class="form-group row">
4541 <div class="col-sm-3">
4542 <label for="ays_redirect_method">
4543 <?php echo esc_html__('Detects users by', "poll-maker"); ?>
4544 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'><?php echo esc_html__( 'Choose the method of detection of the user:' , "poll-maker" ); ?>
4545 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By IP', "poll-maker" ); ?></strong> <?php echo esc_html__( ' - Detect the users by their IP addresses and limit them. It will work both for guests and registered users. Note: in general, IP is not a static variable, it is constantly changing when the user changes his location/ WIFI/ Internet provider.' , "poll-maker" ); ?></p>
4546 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By User ID', "poll-maker" ); ?></strong><?php echo esc_html__( ' - Detect the users by their WP User IDs and limit them. It will work only for registered users. Recommended using this method to get more reliable results.', "poll-maker" ); ?></p>
4547 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By Cookie ', "poll-maker" ); ?></strong><?php echo esc_html__( ' - Detect the users by their browser cookies and limit them. It will work both for guests and registered users.', "poll-maker" ); ?></p>
4548 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'By Cookie and IP ', "poll-maker" ); ?></strong><?php echo esc_html__( ' - Detect the users both by their browser cookies and IP addresses and limit them. It will work both for guests and registered users.', "poll-maker" ); ?></p>"
4549 >
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="ays-poll-sel-fields d-flex p-0">
4556 <div class="ays-poll-check-box mr-2">
4557 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4558 value="ip" <?php echo (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4559 <label class="form-check-label"
4560 for="ays_limit_method_ip"><?php echo esc_html__('IP', "poll-maker"); ?> </label>
4561 </div>
4562 <div class="ays-poll-check-box mr-2">
4563 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4564 value="user" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4565 <label class="form-check-label"
4566 for="ays_limit_method_user"><?php echo esc_html__('User ID', "poll-maker"); ?> </label>
4567 </div>
4568 <div class="ays-poll-check-box mr-2">
4569 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4570 value="cookie" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4571 <label class="form-check-label"
4572 for="ays_limit_method_cookie"><?php echo esc_html__('Cookie', "poll-maker"); ?> </label>
4573 </div>
4574 <div class="ays-poll-check-box mr-2">
4575 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4576 value="cookie_ip" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4577 <label class="form-check-label"
4578 for="ays_limit_method_cookie_ip"><?php echo esc_html__('Cookie and IP', "poll-maker"); ?> </label>
4579 </div>
4580 </div>
4581 </div>
4582 </div>
4583 <hr>
4584 <!-- Limitation message -->
4585 <div class="form-group row">
4586 <div class="col-sm-3">
4587 <label for="ays_limitation_message">
4588 <?php echo esc_html__('Message', "poll-maker"); ?>
4589 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4590 title="<?php echo esc_html__('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4591 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4592 </a>
4593 </label>
4594 </div>
4595 <div class="col-sm-9">
4596 <?php
4597 $content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']);
4598 $editor_id = 'ays_limitation_message';
4599 $settings = array(
4600 'editor_height' => $poll_wp_editor_height,
4601 'textarea_name' => 'ays_limitation_message',
4602 'editor_class' => 'ays-textarea',
4603 'media_elements' => false
4604 );
4605 wp_editor($content, $editor_id, $settings);
4606 ?>
4607 </div>
4608 </div>
4609 <hr>
4610 <!-- Limitation redirect url -->
4611 <div class="form-group row">
4612 <div class="col-sm-3">
4613 <label for="ays_redirect_url">
4614 <?php echo esc_html__('Redirect URL', "poll-maker"); ?>
4615 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4616 title="<?php echo esc_html__('Enable redirection to the custom URL for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4617 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4618 </a>
4619 </label>
4620 </div>
4621 <div class="col-sm-9">
4622 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4623 class="ays-text-input"
4624 value="<?php echo $options['redirect_url'] ?>"/>
4625 </div>
4626 </div>
4627 <hr>
4628 <!-- Limitation redirect delay -->
4629 <div class="form-group row">
4630 <div class="col-sm-3">
4631 <label for="ays_redirection_delay">
4632 <?php echo esc_html__('Redirect delay (sec)', "poll-maker"); ?>
4633 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4634 title="<?php echo esc_html__('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4635 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4636 </a>
4637 </label>
4638 </div>
4639 <div class="col-sm-9">
4640 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4641 class="ays-text-input"
4642 value="<?php echo $options['redirection_delay'] ?>"/>
4643 </div>
4644 </div>
4645 <hr>
4646 <div class="form-group row">
4647 <div class="col-sm-3">
4648 <label for="ays_see_result_show">
4649 <?php echo esc_html__('See results', "poll-maker"); ?>
4650 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4651 title="<p style='margin-bottom:3px;'><?php echo esc_html__( 'Display the live results of the poll to those who have already passed the poll under the given conditions. There are two ways of displaying the results:' , "poll-maker" ); ?>
4652 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'After clicking on the button:', "poll-maker" ); ?></strong> <?php echo esc_html__( '- It will show the results after clicking on the See Results button.' , "poll-maker" ); ?></p>
4653 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo esc_html__( 'Directly:', "poll-maker" ); ?></strong><?php echo esc_html__( ' - It will show the results immediately.', "poll-maker" ); ?></p>">
4654 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4655 </a>
4656 </label>
4657 </div>
4658 <div class="col-sm-9">
4659 <div class="row">
4660 <div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;">
4661 <input type="checkbox" id="ays_see_result_show"
4662 name="ays_see_result_show"
4663 class="ays_poll_show_hide_button"
4664 value="on" <?php echo esc_attr($poll_see_result_button); ?>>
4665 </div>
4666
4667 <div class="col-sm-10" id="ays_poll_show_hide_button">
4668 <div class="row <?php echo esc_attr($poll_see_result_button_cont); ?>">
4669 <div class="col-sm-6">
4670 <div class="ays-poll-check-box d-flex align-items-center"
4671 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4672 <input type="radio"
4673 id="ays_see_result_button_show"
4674 name="ays_poll_see_result_show"
4675 class="ays_poll_show_hide_button mr-2"
4676 value="ays_see_result_button"
4677 <?php echo esc_attr($poll_see_result_botton_show) ?>>
4678 <label for="ays_see_result_button_show" class="form-check-label">
4679 <?php echo esc_html__('After clicking on the button', "poll-maker"); ?>
4680 </label>
4681 </div>
4682 </div>
4683 <div class="col-sm-6">
4684 <div class="ays-poll-check-box d-flex align-items-center"
4685 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4686 <input type="radio"
4687 id="ays_see_result_button_hide"
4688 name="ays_poll_see_result_show"
4689 class="ays_poll_show_hide_button mr-2"
4690 value="ays_see_result_immediately"
4691 <?php echo esc_attr($poll_see_result_immediately) ?>>
4692 <label for="ays_see_result_button_hide" class="form-check-label">
4693 <?php echo esc_html__('Directly', "poll-maker"); ?>
4694 </label>
4695 </div>
4696 </div>
4697
4698 </div>
4699 </div>
4700 </div>
4701 </div>
4702 </div>
4703 <hr>
4704 <div class="form-group row">
4705 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4706 <div class="pro_features" style="justify-content:flex-end;">
4707 </div>
4708 <div class="form-group row d-flex">
4709 <div class="col-sm-3">
4710 <label for="ays_attempts_count">
4711 <?php echo esc_html__('Attempts count', "poll-maker")?>
4712 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the count of the attempts per user for passing the poll.', "poll-maker")?>">
4713 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4714 </a>
4715 </label>
4716 </div>
4717 <div class="col-sm-9">
4718 <input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input">
4719 </div>
4720 </div>
4721 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4722 <div class="ays-poll-new-upgrade-button-box">
4723 <div>
4724 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4725 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4726 </div>
4727 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4728 </div>
4729 </a>
4730 </div>
4731 </div>
4732 </div>
4733 </div>
4734 </div><!-- Maximum number of attempts per user -->
4735 <hr/>
4736 <div class="form-group row ays_toggle_parent">
4737 <div class="col-sm-3">
4738 <label for="ays_enable_logged_users">
4739 <?php echo esc_html__('Only for logged in users', "poll-maker"); ?>
4740 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4741 title="<?php echo esc_html__('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4743 </a>
4744 </label>
4745 </div>
4746 <div class="col-sm-1">
4747 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4748 value="on" <?php echo $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4749 </div>
4750 <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?php echo $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4751 <div class="form-group row">
4752 <div class="col-sm-3">
4753 <label for="ays_logged_in_message">
4754 <?php echo esc_html__('Message', "poll-maker"); ?>
4755 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4756 title="<?php echo esc_html__('Write the message for unauthorized users.', "poll-maker"); ?>">
4757 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4758 </a>
4759 </label>
4760 </div>
4761 <div class="col-sm-9">
4762 <?php
4763 $content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message'];
4764 $editor_id = 'ays_logged_in_message';
4765 $settings = array(
4766 'editor_height' => $poll_wp_editor_height,
4767 'textarea_name' => 'ays_enable_logged_users_message',
4768 'editor_class' => 'ays-textarea',
4769 'media_elements' => false
4770 );
4771 wp_editor($content, $editor_id, $settings);
4772 ?>
4773 </div>
4774 </div>
4775 <hr/>
4776 <div class="form-group row">
4777 <div class="col-sm-3">
4778 <label for="ays_show_login_form">
4779 <?php echo esc_html__('Show Login form', "poll-maker")?>
4780 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to show the login form.', "poll-maker")?>">
4781 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4782 </a>
4783 </label>
4784 </div>
4785 <div class="col-sm-9">
4786 <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' : ''; ?>/>
4787 </div>
4788 </div>
4789 </div>
4790 </div> <!-- Only for logged in users -->
4791 <hr/>
4792 <div class="form-group row ays_toggle_parent">
4793 <div class="col-sm-3">
4794 <label for="ays_enable_restriction_pass">
4795 <?php echo esc_html__('Only for selected user role', "poll-maker"); ?>
4796 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4797 title="<?php echo esc_html__('After enabling this option, only the user roles mentioned in the list will be able to pass the poll.', "poll-maker"); ?>">
4798 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4799 </a>
4800 </label>
4801 </div>
4802 <div class="col-sm-1">
4803 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4804 value="on" <?php echo (isset($options['enable_restriction_pass']) &&
4805 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4806 </div>
4807 <div class="if-users-roles col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo (isset($options['enable_restriction_pass']) && $options['enable_restriction_pass'] == 1) ? '' : 'display: none;'; ?>">
4808 <div class="form-group row">
4809 <div class="col-sm-3">
4810 <label for="ays_users_roles">
4811 <?php echo esc_html__('User role', "poll-maker"); ?></label>
4812 </div>
4813 <div class="col-sm-9">
4814 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4815 <?php
4816 foreach ($ays_users_roles as $key => $user_role) {
4817 $selected_role = "";
4818 if(is_array($users_role)){
4819 if(in_array($user_role['name'], $users_role)){
4820 $selected_role = 'selected';
4821 }else{
4822 $selected_role = '';
4823 }
4824 }else{
4825 if($users_role == $user_role['name']){
4826 $selected_role = 'selected';
4827 }else{
4828 $selected_role = '';
4829 }
4830 }
4831 echo "<option value='" . esc_attr($user_role['name']) . "' " . esc_attr($selected_role) . ">" . esc_html($user_role['name']) . "</option>";
4832 }
4833 ?>
4834 </select>
4835 </div>
4836 </div>
4837 <hr>
4838 <div class="form-group row">
4839 <div class="col-sm-3">
4840 <label for="restriction_pass_message">
4841 <?php echo esc_html__('Message', "poll-maker"); ?>
4842 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4843 title="<?php echo esc_html__('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4844 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4845 </a>
4846 </label>
4847 </div>
4848 <div class="col-sm-9">
4849 <?php
4850 $content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']);
4851 $editor_id = 'restriction_pass_message';
4852 $settings = array(
4853 'editor_height' => $poll_wp_editor_height,
4854 'textarea_name' => 'restriction_pass_message',
4855 'editor_class' => 'ays-textarea',
4856 'media_elements' => false
4857 );
4858 wp_editor($content, $editor_id, $settings);
4859 ?>
4860 </div>
4861 </div>
4862 </div>
4863 </div> <!-- Only for selected user role -->
4864 <hr>
4865 <div class="form-group row ays_toggle_parent">
4866 <div class="col-sm-3">
4867 <label for="ays_poll_enable_password">
4868 <?php echo esc_html__('Password for passing Poll', "poll-maker")?>
4869 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose a password for users to pass the poll.' , "poll-maker")?>">
4870 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4871 </a>
4872 </label>
4873 </div>
4874 <div class="col-sm-1">
4875 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password"
4876 name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>>
4877 </div>
4878 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4879 <div class="form-group row">
4880 <div class="col-sm-3">
4881 <label for="ays_poll_password">
4882 <?php echo esc_html__('Password' , "poll-maker")?>
4883 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.' , "poll-maker")?>">
4884 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4885 </a>
4886 </label>
4887 </div>
4888 <div class="col-sm-9">
4889 <input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>">
4890 </div>
4891 </div>
4892 <hr>
4893 <div class="form-group row">
4894 <div class="col-sm-3">
4895 <label for="ays_poll_enable_password_visibility">
4896 <?php echo esc_html__('Enable toggle password visibility', "poll-maker"); ?>
4897 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tick the option, and it will let you enable and disable password visibility in a password input field.', "poll-maker"); ?>">
4898 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4899 </a>
4900 </label>
4901 </div>
4902 <div class="col-sm-9">
4903 <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' : ''; ?>/>
4904 </div>
4905 </div>
4906 <hr>
4907 <div class="form-group row">
4908 <div class="col-sm-3">
4909 <label for="ays_poll_password">
4910 <?php echo esc_html__('Message', "poll-maker")?>
4911 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.', "poll-maker")?>">
4912 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4913 </a>
4914 </label>
4915 </div>
4916
4917 <div class="col-sm-9">
4918 <?php
4919 $content = $poll_password_message;
4920 $editor_id = 'ays-poll-password-message';
4921 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
4922 wp_editor($content, $editor_id, $settings);
4923 ?>
4924 </div>
4925 </div>
4926 </div>
4927 </div><!-- Password for passing Poll PRO Feautre-->
4928 <hr>
4929 <div class="form-group row">
4930 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4931 <div class="pro_features" style="justify-content:flex-end;">
4932 </div>
4933 <div class="form-group row ays_toggle_parent">
4934 <div class="col-sm-3">
4935 <label for="ays_enable_tackers_count">
4936 <?php echo esc_html__('Limitation count of takers', "poll-maker")?>
4937 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('You can choose how many users can pass the poll.', "poll-maker")?>">
4938 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4939 </a>
4940 </label>
4941 </div>
4942 <div class="col-sm-1">
4943 <input type="checkbox" class="ays-enable-timer1"
4944 name="ays_enable_tackers_count" value="on">
4945 </div>
4946 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4947 <div class="form-group row">
4948 <div class="col-sm-3">
4949 <label for="ays_tackers_count">
4950 <?php echo esc_html__('Count', "poll-maker")?>
4951 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('The number of users who can pass the poll.', "poll-maker")?>">
4952 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4953 </a>
4954 </label>
4955 </div>
4956 <div class="col-sm-9">
4957 <input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input"
4958 >
4959 </div>
4960 </div>
4961 </div>
4962 </div>
4963 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4964 <div class="ays-poll-new-upgrade-button-box">
4965 <div>
4966 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4967 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4968 </div>
4969 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4970 </div>
4971 </a>
4972 </div>
4973 </div><!-- Limitation count of takers Poll PRO Feautre-->
4974 <hr>
4975 <div class="form-group row">
4976 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4977 <div class="pro_features" style="justify-content:flex-end;">
4978 </div>
4979 <div class="form-group row ays_toggle_parent">
4980 <div class="col-sm-3">
4981 <label for="ays_enable_vote_limitation">
4982 <?php echo esc_html__('Allow to vote once per session', "poll-maker")?>
4983 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('If you enable this feature, you can select the frequency the users can have access to the poll after the first attempt. For example, if you give a 1-day value to the session period, the user will have access to the poll once in 1-day.', "poll-maker")?>">
4984 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4985 </a>
4986 </label>
4987 </div>
4988 <div class="col-sm-1">
4989 <input type="checkbox" class="ays-enable-timer1"
4990 name="ays_enable_vote_limitation" value="on" >
4991 </div>
4992 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4993 <div class="form-group row">
4994 <div class="col-sm-3">
4995 <label for="ays_vote_limitation">
4996 <?php echo esc_html__('Session Period', "poll-maker")?>
4997 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Specify the time for one session.', "poll-maker")?>">
4998 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4999 </a>
5000 </label>
5001 </div>
5002 <div class="col-sm-7">
5003 <input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input">
5004
5005 </div>
5006 <div class="col-sm-2 ays_vote_limitation_time_period_box">
5007 <select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period">
5008 <option>Minute(s)
5009 </option>
5010 </select>
5011 </div>
5012 </div>
5013 <div class="form-group row d-flex w-100">
5014 <div class="col-sm-3">
5015 <label for="">
5016 <?php echo esc_html__('Message', "poll-maker"); ?>
5017 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5018 title="<?php echo esc_html__('Write the message, which will be shown during the restricted time, when the user has already passed his/her limit for the session.', "poll-maker"); ?>">
5019 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5020 </a>
5021 </label>
5022 </div>
5023 <div class="col-sm-9">
5024 <?php
5025 $editor_id = 'vote_limit_message';
5026 $settings = array(
5027 'editor_height' => 100,
5028 'textarea_name' => 'vote_limit_message',
5029 'editor_class' => 'ays-textarea',
5030 'media_elements' => false
5031 );
5032 wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings);
5033 ?>
5034 </div>
5035 </div>
5036 </div>
5037 </div>
5038 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5039 <div class="ays-poll-new-upgrade-button-box">
5040 <div>
5041 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5042 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5043 </div>
5044 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5045 </div>
5046 </a>
5047 </div>
5048 </div> <!-- Allow to vote once per session PRO Feautre-->
5049 <hr>
5050 <div class="form-group row">
5051 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5052 <div class="pro_features" style="justify-content:flex-end;">
5053 </div>
5054 <div class="form-group row ays_toggle_parent">
5055 <div class="col-sm-3">
5056 <label for="enable_limit_by_country">
5057 <?php echo esc_html__('Limit by country', "poll-maker")?>
5058 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__(' After enabling this option, the given poll will not be available in the selected country.', "poll-maker")?>">
5059 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5060 </a>
5061 </label>
5062 </div>
5063 <div class="col-sm-1">
5064 <input type="checkbox" class="ays-enable-timer1"/>
5065 </div>
5066 <div class="col-sm-8 ays_toggle_target ays_divider_left">
5067 <select id="ays-poll-countries" class="apm-cat-select2 select2-hidden-accessible" name="ays-poll-countries[]" multiple="" data-placeholder="Select countries" tabindex="-1" aria-hidden="true" disabled>
5068 <option selected value="AD">Andorra</option>
5069 <option selected value="US">United States</option>
5070 <option selected value="GB">United Kingdom</option>
5071 <option selected value="FR">France</option>
5072 </select>
5073 </div>
5074 </div>
5075 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5076 <div class="ays-poll-new-upgrade-button-box">
5077 <div>
5078 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5079 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5080 </div>
5081 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5082 </div>
5083 </a>
5084 </div>
5085 </div> <!-- Limit by country PRO Feautre -->
5086 <hr>
5087 </div>
5088 </div>
5089 <div class="only_pro" style="position: relative; display: inline-block">
5090 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5091 <div class="pro-features-popup-conteiner">
5092 <div class="pro-features-popup-title">
5093 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5094 </div>
5095 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5096 <p>
5097 <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
5098 </p>
5099 <p>
5100 <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
5101 </p>
5102 </div>
5103 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5104 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5105 </div>
5106 </div>
5107 </div>
5108 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5109 <span class="ays_save_as_default_content_for_mobile">
5110 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5111 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5112 </a>
5113 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
5114 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5115 </a>
5116 </span>
5117 </div>
5118 </div>
5119 </div>
5120 <div id="tab5" class="ays-poll-tab-content <?php echo $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
5121 <div class="ays-poll-accordion-options-main-container">
5122 <div class="ays-poll-accordion-header">
5123 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5124 <p class="ays-subtitle"><?php echo esc_html__('User Data Settings', "poll-maker"); ?></p>
5125 </div>
5126 <hr class="ays-poll-bolder-hr"/>
5127 <div class="ays-poll-accordion-body">
5128 <div class="form-group row">
5129 <div class="col-sm-3">
5130 <label>
5131 <?php echo esc_html__('Information form title', "poll-maker"); ?>
5132 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5133 title="<?php echo esc_html__("Write the title of the Information Form which will be shown at the top of the Form Fields.", "poll-maker"); ?>">
5134 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5135 </a>
5136 </label>
5137 </div>
5138 <div class="col-sm-9 ays_divider_left">
5139 <?php
5140 $content = stripslashes($options['info_form_title']);
5141 $editor_id = 'ays-poll-info-form-text';
5142 $settings = array(
5143 'editor_height' => $poll_wp_editor_height,
5144 'textarea_name' => 'ays-poll-info-form-text',
5145 'editor_class' => 'ays-textarea',
5146 'media_elements' => false
5147 );
5148 wp_editor($content, $editor_id, $settings);
5149 ?>
5150 </div>
5151 </div>
5152 <hr>
5153 <div class="form-group row ays_toggle_parent">
5154 <div class="col-sm-2">
5155 <label for='ays_poll_info_form'>
5156 <?php echo esc_html__('Enable Information Form', "poll-maker"); ?>
5157 <a class="ays_help" data-toggle="tooltip"
5158 data-placement="top"
5159 title="<?php echo esc_html__("After enabling this option, the user will have to fill out the information form (data form for the user’s personal information) after submitting the poll.", "poll-maker"); ?>">
5160 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5161 </a>
5162 </label>
5163 </div>
5164 <div class="col-sm-1">
5165 <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' : ''; ?>>
5166 </div>
5167 <div class="col-sm-9 ays_divider_left ays_toggle_target_inverse" style="<?php echo (isset($options['info_form']) && $options['info_form'] == 1) ? 'display:none' : ''; ?>">
5168 <div class="col-sm-7">
5169 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
5170 <?php echo esc_html__('Allow collecting information of logged in users', "poll-maker"); ?>
5171 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow collecting information from logged in users. Email and name of users will be stored in the database. Email options will be work for these users.', "poll-maker")?>">
5172 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5173 </a>
5174 </label>
5175 <input type="checkbox" id="ays_allow_collecting_logged_in_users_data" value="on" name="ays_allow_collecting_logged_in_users_data" <?php echo $poll_allow_collecting_users_data; ?>>
5176 </div> <!-- Allow collecting information of logged in users -->
5177 </div>
5178 <div class="ays_poll_info_form col-sm-9 ays_toggle_target" style="border-left: 1px solid #ccc; <?php echo $options['info_form'] == 1 ? "display: block;" : "display: none;"; ?>">
5179 <div>
5180 <label>
5181 <?php echo esc_html__('Form Fields', "poll-maker"); ?>
5182 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Select which fields the user should fill out.", "poll-maker"); ?>">
5183 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5184 </a>
5185 </label>
5186 <hr>
5187 </div>
5188 <div>
5189 <div class="ays-poll-sel-fields d-flex">
5190 <?php foreach ( $all_fields as $field ): ?>
5191 <div class="ays-poll-check-box mr-2">
5192 <input type="checkbox" name="ays-poll-form-fields[]" value="<?php echo $field['slug']; ?>" id="ays-poll-form-field-<?php echo $field['slug']; ?>"
5193 <?php echo (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
5194 <label for="ays-poll-form-field-<?php echo $field['slug']; ?>">
5195 <?php echo ucfirst($field['name']); ?></label>
5196 </div>
5197 <?php endforeach; ?>
5198 </div>
5199 <hr>
5200 </div>
5201 <div>
5202 <label>
5203 <?php echo esc_html__('Required Fields', "poll-maker"); ?>
5204 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5205 title="<?php echo esc_html__("Select which fields are required.", "poll-maker"); ?>">
5206 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5207 </a>
5208 </label>
5209 <hr>
5210 </div>
5211 <div>
5212 <div class="ays-poll-sel-fields d-flex">
5213 <?php foreach ( $all_fields as $field ): ?>
5214 <div class="ays-poll-check-box mr-2"
5215 id="ays-poll-box-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5216 $fields) === false) ? "style='display:none'" : ""; ?>>
5217 <input type="checkbox" name="ays-poll-form-required-fields[]"
5218 value="<?php echo $field['slug']; ?>"
5219 id="ays-poll-form-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5220 $required_fields) !== false) ? "checked" : ""; ?>>
5221 <label for="ays-poll-form-rfield-<?php echo $field['slug']; ?>">
5222 <?php echo ucfirst($field['name']); ?></label>
5223 </div>
5224 <?php endforeach; ?>
5225 </div>
5226 </div>
5227 </div>
5228 <hr>
5229 </div>
5230 <hr>
5231 <div class="form-group row">
5232 <div class="col-sm-3">
5233 <label for="ays_poll_autofill_user_data">
5234 <?php echo esc_html__('Autofill logged-in user data', "poll-maker"); ?>
5235 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr__('After enabling this option, logged in user\'s name and email will be autofilled in Information Form.', "poll-maker"); ?>">
5236 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5237 </a>
5238 </label>
5239 </div>
5240 <div class="col-sm-9">
5241 <div class="information_form_settings">
5242 <input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>>
5243 </div>
5244 </div>
5245 </div>
5246 <hr>
5247 <div class="form-group row">
5248 <div class="col-sm-3">
5249 <label for="ays_poll_display_fields_labels">
5250 <?php echo esc_html__('Display form fields with labels', "poll-maker"); ?>
5251 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_attr__('Show labels of form fields on the top of each field.Texts of labels will be taken from the "Fields placeholder" section on the General setting page.', "poll-maker"); ?>">
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 <div class="information_form_settings">
5258 <input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>>
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" style="justify-content:flex-end;">
5266 </div>
5267 <div class="form-group row">
5268 <div class="col-sm-3">
5269 <label>
5270 <?php echo esc_html__('Add custom fields', "poll-maker"); ?>
5271 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("You can create custom fields with the following types: text, textarea, number, telephone, date, e-mail, URL, color, checkbox.", "poll-maker"); ?>">
5272 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5273 </a>
5274 </label>
5275 </div>
5276 <div class="col-sm-9">
5277 <blockquote>
5278 <?php echo esc_html__("For creating custom fields click ", "poll-maker"); ?>
5279 <a href="?page=<?php echo $this->plugin_name; ?>-poll-attributes"><?php echo esc_html__("here", "poll-maker"); ?></a>
5280 </blockquote>
5281 </div>
5282 </div>
5283 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5284 <div class="ays-poll-new-upgrade-button-box">
5285 <div>
5286 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5287 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5288 </div>
5289 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5290 </div>
5291 </a>
5292 </div>
5293 </div>
5294 <hr>
5295 </div>
5296 </div>
5297 <div class="only_pro" style="position: relative; display: inline-block">
5298 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5299 <div class="pro-features-popup-conteiner">
5300 <div class="pro-features-popup-title">
5301 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5302 </div>
5303 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5304 <p>
5305 <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
5306 </p>
5307 <p>
5308 <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
5309 </p>
5310 </div>
5311 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5312 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5313 </div>
5314 </div>
5315 </div>
5316 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5317 <span class="ays_save_as_default_content_for_mobile">
5318 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5319 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5320 </a>
5321 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
5322 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5323 </a>
5324 </span>
5325 </div>
5326 </div>
5327 </div>
5328 <div id="tab6" class="ays-poll-tab-content <?php echo $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
5329 <div class="ays-poll-accordion-options-main-container">
5330 <div class="ays-poll-accordion-header">
5331 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5332 <p class="ays-subtitle"><?php echo esc_html__('Email settings', "poll-maker"); ?></p>
5333 </div>
5334 <hr class="ays-poll-bolder-hr"/>
5335 <div class="ays-poll-accordion-body">
5336 <div class="form-group row ays_toggle_parent">
5337 <div class="col-sm-3">
5338 <label for="ays_notify_by_email_on">
5339 <?php echo esc_html__('Results notification by email', "poll-maker"); ?>
5340 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5341 title="<?php echo esc_html__('If the option is enabled, the admin(or your provided email) will receive an email notification about votes at each time.', "poll-maker"); ?>">
5342 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5343 </a>
5344 </label>
5345 </div>
5346 <div class="col-sm-1">
5347 <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' : ''; ?> />
5348 </div>
5349 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
5350 <div class="row ays_divider_left">
5351 <div class="col-sm-3">
5352 <label for="ays_notify_email">
5353 <?php echo esc_html__('Email address', "poll-maker"); ?>
5354 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5355 title="<?php echo esc_html__('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
5356 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5357 </a>
5358 </label>
5359 </div>
5360 <div class="col-sm-9">
5361 <input type="email" class="ays-text-input" name="ays_notify_email" id="ays_notify_email" value="<?php echo isset($options['notify_email']) && !empty($options['notify_email']) ? $options['notify_email'] : get_option('admin_email'); ?>" size="30">
5362 </div>
5363 </div>
5364 </div>
5365 </div>
5366 <hr>
5367 <div class="form-group row">
5368 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5369 <div class="pro_features pro_features_popup">
5370 <div class="pro-features-popup-conteiner">
5371 <div class="pro-features-popup-title">
5372 <?php echo esc_html__("Send Mail to User", "poll-maker"); ?>
5373 </div>
5374 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
5375 <p>
5376 <?php echo esc_html__("Send confirmation emails after the poll submission to the poll voters. This is the best way to connect to your website visitors and boost stronger relationships.", "poll-maker"); ?>
5377 </p>
5378 <p>
5379 <?php echo esc_html__("There are two ways to send email to the poll voters: Custom and SendGrid. Watch the video to learn more about the functionality.", "poll-maker"); ?>
5380 </p>
5381 </div>
5382 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-send-mail-to-user-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5383 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5384 </div>
5385 </div>
5386 </div>
5387 <div class="pro_features" style="justify-content:flex-end;">
5388 </div>
5389 <div class="form-group row" >
5390 <div class="col-sm-3">
5391 <label for="ays_enable_mail_user">
5392 <?php echo esc_html__('Send Mail to User', "poll-maker"); ?>
5393 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5394 title="<?php echo esc_html__('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
5395 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5396 </a>
5397 </label>
5398 </div>
5399 <div class="col-sm-1">
5400 <input type="checkbox" name="ays_enable_mail_user" value="on" />
5401 </div>
5402 <div class="col-sm-8 if-enable-email_note">
5403
5404 </div>
5405 </div>
5406 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5407 <div class="ays-poll-new-upgrade-button-box">
5408 <div>
5409 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5410 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5411 </div>
5412 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5413 </div>
5414 </a>
5415 <div class="ays-poll-new-watch-video-button-box">
5416 <div>
5417 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
5418 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
5419 </div>
5420 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
5421 </div>
5422 </div>
5423 </div>
5424 <hr>
5425 <div class="form-group row">
5426 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5427 <div class="pro_features" style="justify-content:flex-end;">
5428 </div>
5429 <div class="form-group row">
5430 <div class="col-sm-4">
5431 <label>
5432 <?php echo esc_html__('Email configuration', "poll-maker")?>
5433 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Set up the attributes of the sending email.', "poll-maker"); ?>">
5434 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5435 </a>
5436 </label>
5437 </div>
5438 <div class="col-sm-8 ays_divider_left">
5439 <div class="form-group row">
5440 <div class="col-sm-3">
5441 <label for="ays_poll_email_configuration_from_email">
5442 <?php echo esc_html__('From email', "poll-maker")?>
5443 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5444 /* translators: 1: opening em tag, 2: closing em tag */
5445 echo htmlspecialchars( sprintf(esc_html__("Specify the email address from which the results will be sent. If you leave the field blank, the sending email address will take the default value — %1\$spoll_maker@{your_site_url}%2\$s.", "poll-maker"),
5446 '<em>',
5447 '</em>'
5448 ) );
5449 ?>">
5450 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5451 </a>
5452 </label>
5453 </div>
5454 <div class="col-sm-9">
5455 <input type="text" class="ays-text-input" />
5456 </div>
5457 </div> <!-- From email -->
5458 <hr/>
5459 <div class="form-group row">
5460 <div class="col-sm-3">
5461 <label for="ays_poll_email_configuration_from_name">
5462 <?php echo esc_html__('From name', "poll-maker")?>
5463 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5464 /* translators: 1: opening em tag, 2: closing em tag */
5465 echo wp_kses( sprintf(esc_html__("Specify the name that will be displayed as the sender of the results. If you don't enter any name, it will be %1\$sPoll Maker%2\$s.", "poll-maker"),
5466 // translators: 1: opening em tag,
5467 '<em>',
5468 // translators: 2: closing em tag
5469 '</em>'
5470 ), array(
5471 'em' => array()
5472 ) );
5473 ?>">
5474 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5475 </a>
5476 </label>
5477 </div>
5478 <div class="col-sm-9">
5479 <input type="text" class="ays-text-input" >
5480 </div>
5481 </div><!-- From name -->
5482 <hr/>
5483 <div class="form-group row">
5484 <div class="col-sm-3">
5485 <label for="ays_poll_email_configuration_from_subject">
5486 <?php echo esc_html__('Subject', "poll-maker")?>
5487 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__("Fill in the subject field of the message. If you don't, it will take the poll title.", "poll-maker"); ?>">
5488 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5489 </a>
5490 </label>
5491 </div>
5492 <div class="col-sm-9">
5493 <input type="text" class="ays-text-input">
5494 </div>
5495 </div> <!-- Subject -->
5496 <hr/>
5497 <div class="form-group row">
5498 <div class="col-sm-3">
5499 <label for="ays_poll_email_configuration_replyto_email">
5500 <?php echo esc_html__('Reply to email', "poll-maker")?>
5501 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__("Specify to which email the poll taker can reply. If you leave the field blank, the email address won't be specified.", "poll-maker"); ?>">
5502 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5503 </a>
5504 </label>
5505 </div>
5506 <div class="col-sm-9">
5507 <input type="text" class="ays-text-input">
5508 </div>
5509 </div> <!-- Reply to email -->
5510 <hr/>
5511 <div class="form-group row">
5512 <div class="col-sm-3">
5513 <label for="ays_poll_email_configuration_replyto_name">
5514 <?php echo esc_html__('Reply to name', "poll-maker")?>
5515 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__("Specify the name of the email address to which the poll taker can reply. If you leave the field blank, the name won't be specified.", "poll-maker"); ?>">
5516 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5517 </a>
5518 </label>
5519 </div>
5520 <div class="col-sm-9">
5521 <input type="text" class="ays-text-input">
5522 </div>
5523 </div> <!-- Reply to name -->
5524 </div>
5525 </div> <!-- Email Configuration -->
5526 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5527 <div class="ays-poll-new-upgrade-button-box">
5528 <div>
5529 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5530 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5531 </div>
5532 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5533 </div>
5534 </a>
5535 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5536 <div class="ays-poll-center-big-main-button-box">
5537 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5538 <div class="ays-poll-center-new-big-upgrade-button">
5539 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
5540 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5541 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
5542 </div>
5543 </a>
5544 </div>
5545 </div>
5546 </div>
5547 </div>
5548 <hr>
5549 </div>
5550 </div>
5551 <div class="only_pro" style="position: relative; display: inline-block">
5552 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5553 <div class="pro-features-popup-conteiner">
5554 <div class="pro-features-popup-title">
5555 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5556 </div>
5557 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5558 <p>
5559 <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
5560 </p>
5561 <p>
5562 <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
5563 </p>
5564 </div>
5565 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
5566 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5567 </div>
5568 </div>
5569 </div>
5570 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5571 <span class="ays_save_as_default_content_for_mobile">
5572 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5573 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5574 </a>
5575 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
5576 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5577 </a>
5578 </span>
5579 </div>
5580 </div>
5581 </div>
5582 <div id="tab7" class="ays-poll-tab-content <?php echo $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5583 <div class="ays-poll-accordion-options-main-container">
5584 <div class="ays-poll-accordion-header">
5585 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5586 <p class="ays-subtitle"><?php echo esc_html__('Integrations settings', "poll-maker"); ?></p>
5587 </div>
5588 <hr class="ays-poll-bolder-hr"/>
5589 <div class="ays-poll-accordion-body">
5590 <fieldset class="ays_poll_settings_integration_container">
5591 <legend>
5592 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mailchimp_logo.png" alt="">
5593 <h5><?php echo esc_html__('MailChimp Settings', "poll-maker")?></h5>
5594 </legend>
5595 <?php
5596 if(count($mailchimp) > 0):
5597 ?>
5598 <?php
5599 if($mailchimp_username == "" || $mailchimp_api_key == ""):
5600 ?>
5601 <blockquote class="error_message">
5602 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5603 <?php echo (
5604 /* translators: anchor tag */
5605 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5606 "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>".esc_html__("this", "poll-maker")."</a>"
5607 )
5608 );
5609 ?>
5610 </blockquote>
5611 <?php
5612 else:
5613 ?>
5614 <div class="form-group row">
5615 <div class="col-sm-4">
5616 <label for="ays_enable_mailchimp">
5617 <?php echo esc_html__('Enable MailChimp', "poll-maker")?>
5618 </label>
5619 </div>
5620 <div class="col-sm-1">
5621 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
5622 name="ays_enable_mailchimp"
5623 value="on"
5624 <?php
5625 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5626 echo "disabled";
5627 }else{
5628 echo ($enable_mailchimp == 'on') ? 'checked' : '';
5629 }
5630 ?>/>
5631 </div>
5632 </div>
5633 <hr>
5634 <div class="form-group row">
5635 <div class="col-sm-4">
5636 <label for="ays_mailchimp_list">
5637 <?php echo esc_html__('MailChimp list', "poll-maker")?>
5638 </label>
5639 </div>
5640 <div class="col-sm-8">
5641 <?php if(is_array($mailchimp_select)): ?>
5642 <select name="ays_mailchimp_list" id="ays_mailchimp_list"
5643 <?php
5644 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5645 echo 'disabled';
5646 }
5647 ?>>
5648 <option value="" disabled selected>Select list</option>
5649 <?php foreach($mailchimp_select as $mlist): ?>
5650 <option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?>
5651 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5652 <?php endforeach; ?>
5653 </select>
5654 <?php else: ?>
5655 <span><?php echo esc_html($mailchimp_select); ?></span>
5656 <?php endif; ?>
5657 </div>
5658 </div>
5659 <?php
5660 endif;
5661 ?>
5662 <?php
5663 else:
5664 ?>
5665 <blockquote class="error_message">
5666 <?php echo (
5667 /* translators: anchor tag */
5668 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5669 "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>".esc_html__("this", "poll-maker")."</a>"
5670 )
5671 );
5672 ?>
5673 </blockquote>
5674 <?php
5675 endif;
5676 ?>
5677 </fieldset><!-- MailChimp Settings -->
5678 <hr/>
5679 <fieldset class="ays_poll_settings_integration_container">
5680 <legend>
5681 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/campaignmonitor_logo.png" alt="">
5682 <h5><?php echo esc_html__('Campaign Monitor Settings', "poll-maker") ?></h5>
5683 </legend>
5684 <div class="form-group row" style="margin: 0px;">
5685 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5686 <div class="pro_features" style="justify-content:flex-end;">
5687 </div>
5688 <div class="form-group row">
5689 <div class="col-sm-4">
5690 <label for="ays_enable_monitor">
5691 <?php echo esc_html__('Enable Campaign Monitor', "poll-maker") ?>
5692 </label>
5693 </div>
5694 <div class="col-sm-8">
5695 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
5696 </div>
5697 </div>
5698 <hr>
5699 <div class="form-group row">
5700 <div class="col-sm-4">
5701 <label for="ays_monitor_list">
5702 <?php echo esc_html__('Campaign Monitor list', "poll-maker") ?>
5703 </label>
5704 </div>
5705 <div class="col-sm-8">
5706 <select name="ays_monitor_list" id="ays_monitor_list">
5707 <option value="" disabled selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5708 </select>
5709 </div>
5710 </div>
5711 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5712 <div class="ays-poll-new-upgrade-button-box">
5713 <div>
5714 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5715 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5716 </div>
5717 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5718 </div>
5719 </a>
5720 </div>
5721 </div>
5722 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5723 <hr/>
5724 <fieldset class="ays_poll_settings_integration_container">
5725 <legend>
5726 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/zapier_logo.png" alt="">
5727 <h5><?php echo esc_html__('Zapier Integration Settings', "poll-maker") ?></h5>
5728 </legend>
5729 <div class="form-group row" style="margin: 0px;">
5730 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5731 <div class="pro_features" style="justify-content:flex-end;">
5732 </div>
5733 <div class="form-group row">
5734 <div class="col-sm-4">
5735 <label for="ays_enable_zapier">
5736 <?php echo esc_html__('Enable Zapier Integration', "poll-maker") ?>
5737 </label>
5738 </div>
5739 <div class="col-sm-1">
5740 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
5741 </div>
5742 <div class="col-sm-3">
5743 <button type="button"
5744 id="testZapier"
5745 class="btn btn-outline-secondary">
5746 <?php echo esc_html__("Send test data", "poll-maker") ?>
5747 </button>
5748 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5749 title="<?php echo esc_html__('We will send you a test data, and you can catch it in your ZAP for configure it.', "poll-maker") ?>">
5750 <i class="ays_fa ays_fa_info_circle"></i>
5751 </a>
5752 </div>
5753 </div>
5754 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5755 <div class="ays-poll-new-upgrade-button-box">
5756 <div>
5757 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5758 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5759 </div>
5760 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5761 </div>
5762 </a>
5763 </div>
5764 </div>
5765 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5766 <hr/>
5767 <fieldset class="ays_poll_settings_integration_container">
5768 <legend>
5769 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/activecampaign_logo.png" alt="">
5770 <h5><?php echo esc_html__('Active Campaign Settings', "poll-maker") ?></h5>
5771 </legend>
5772 <div class="form-group row" style="margin: 0px;">
5773 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5774 <div class="pro_features" style="justify-content:flex-end;">
5775 </div>
5776 <div class="form-group row">
5777 <div class="col-sm-4">
5778 <label for="ays_enable_active_camp">
5779 <?php echo esc_html__('Enable ActiveCampaign', "poll-maker") ?>
5780 </label>
5781 </div>
5782 <div class="col-sm-1">
5783 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
5784 </div>
5785 </div>
5786 <hr>
5787 <div class="form-group row">
5788 <div class="col-sm-4">
5789 <label>
5790 <?php echo esc_html__('ActiveCampaign list', "poll-maker") ?>
5791 </label>
5792 </div>
5793 <div class="col-sm-8">
5794 <select name="ays_active_camp_list" id="ays_active_camp_list">
5795 <option value="" disabled
5796 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5797 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5798 </select>
5799 </div>
5800 </div>
5801 <hr>
5802 <div class="form-group row">
5803 <div class="col-sm-4">
5804 <label>
5805 <?php echo esc_html__('ActiveCampaign automation', "poll-maker") ?>
5806 </label>
5807 </div>
5808 <div class="col-sm-8">
5809 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5810 <option value="" disabled
5811 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5812 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5813 </select>
5814 </div>
5815 </div>
5816 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5817 <div class="ays-poll-new-upgrade-button-box">
5818 <div>
5819 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5820 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5821 </div>
5822 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5823 </div>
5824 </a>
5825 </div>
5826 </div>
5827 </fieldset><!-- Active Campaign Settings PRO Feature -->
5828 <hr/>
5829 <fieldset class="ays_poll_settings_integration_container">
5830 <legend>
5831 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/slack_logo.png" alt="">
5832 <h5><?php echo esc_html__('Slack Settings', "poll-maker") ?></h5>
5833 </legend>
5834 <div class="form-group row" style="margin: 0px;">
5835 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5836 <div class="pro_features" style="justify-content:flex-end;">
5837 </div>
5838 <div class="form-group row">
5839 <div class="col-sm-4">
5840 <label for="ays_enable_slack">
5841 <?php echo esc_html__('Enable Slack integration', "poll-maker") ?>
5842 </label>
5843 </div>
5844 <div class="col-sm-1">
5845 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
5846 </div>
5847 </div>
5848 <hr>
5849 <div class="form-group row">
5850 <div class="col-sm-4">
5851 <label>
5852 <?php echo esc_html__('Slack conversation', "poll-maker") ?>
5853 </label>
5854 </div>
5855 <div class="col-sm-8">
5856 <select id="ays_slack_conversation">
5857 <option value="" disabled
5858 selected><?php echo esc_html__("Select Channel", "poll-maker") ?></option>
5859 </select>
5860 </div>
5861 </div>
5862 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5863 <div class="ays-poll-new-upgrade-button-box">
5864 <div>
5865 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5866 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5867 </div>
5868 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5869 </div>
5870 </a>
5871 </div>
5872 </div>
5873 </fieldset> <!-- Slack Settings PRO Feature -->
5874 <hr>
5875 <fieldset class="ays_poll_settings_integration_container">
5876 <legend>
5877 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/sheets_logo.png" alt="">
5878 <h5><?php echo esc_html__('Google Sheet Settings', "poll-maker") ?></h5>
5879 </legend>
5880 <div class="form-group row" style="margin: 0px;">
5881 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5882 <div class="pro_features" style="justify-content:flex-end;">
5883 </div>
5884 <div class="form-group row">
5885 <div class="col-sm-4">
5886 <label for="ays_poll_enable_google">
5887 <?php echo esc_html__('Enable Google integration', "poll-maker") ?>
5888 </label>
5889 </div>
5890 <div class="col-sm-1">
5891 <input type="checkbox" class="ays-enable-timer1"
5892 value="on">
5893 </div>
5894 </div>
5895 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5896 <div class="ays-poll-new-upgrade-button-box">
5897 <div>
5898 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5899 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5900 </div>
5901 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5902 </div>
5903 </a>
5904 </div>
5905 </div>
5906 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5907 <hr>
5908 <fieldset class="ays_poll_settings_integration_container">
5909 <legend>
5910 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5911 <h5><?php echo esc_html__('Mad Mimi', "poll-maker") ?></h5>
5912 </legend>
5913 <div class="form-group row" style="margin: 0px;">
5914 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5915 <div class="pro_features" style="justify-content:flex-end;">
5916 </div>
5917 <hr/>
5918 <div class="form-group row">
5919 <div class="col-sm-4">
5920 <label for="ays_poll_enable_mad_mimi">
5921 <?php echo esc_html__('Enable Mad Mimi', "poll-maker") ?>
5922 </label>
5923 </div>
5924 <div class="col-sm-1">
5925 <input type="checkbox" class="ays-enable-timer1">
5926 </div>
5927 </div>
5928 <hr>
5929 <div class="form-group row">
5930 <div class="col-sm-4">
5931 <label>
5932 <?php echo esc_html__('Select List', "poll-maker") ?>
5933 </label>
5934 </div>
5935 <div class="col-sm-8">
5936 <?php
5937 $allowed_tags = array(
5938 'select' => array(
5939 'id' => array(),
5940 'class' => array()
5941 ),
5942 'option' => array(
5943 'value' => array(),
5944 'selected' => array()
5945 )
5946 );
5947
5948 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5949 $mad_mimi_select .= "<option value=''>Select list</option>";
5950 $mad_mimi_select .= "</select>";
5951 echo wp_kses($mad_mimi_select, $allowed_tags);
5952
5953 ?>
5954 </div>
5955 </div>
5956 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5957 <div class="ays-poll-new-upgrade-button-box">
5958 <div>
5959 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5960 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5961 </div>
5962 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5963 </div>
5964 </a>
5965 </div>
5966 </div>
5967 </fieldset> <!-- Mad Mimi -->
5968 <hr>
5969 <fieldset class="ays_poll_settings_integration_container">
5970 <legend>
5971 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/get_response.png" alt="">
5972 <h5><?php echo esc_html__('GetResponse Settings', "poll-maker") ?></h5>
5973 </legend>
5974 <div class="form-group row" style="margin: 0px;">
5975 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5976 <div class="pro_features" style="justify-content:flex-end;">
5977 </div>
5978 <div class="form-group row">
5979 <div class="col-sm-4">
5980 <label for="ays_poll_enable_getResponse">
5981 <?php echo esc_html__('Enable GetResponse', "poll-maker") ?>
5982 </label>
5983 </div>
5984 <div class="col-sm-8">
5985 <input type="checkbox"
5986 class="ays-enable-timer1">
5987 </div>
5988 </div>
5989 <hr>
5990 <div class="form-group row">
5991 <div class="col-sm-4">
5992 <label>
5993 <?php echo esc_html__('GetResponse List', "poll-maker") ?>
5994 </label>
5995 </div>
5996 <div class="col-sm-8">
5997 <?php
5998 $allowed_tags = array(
5999 'select' => array(
6000 'id' => array(),
6001 'class' => array(),
6002 'name' => array()
6003 ),
6004 'option' => array(
6005 'value' => array(),
6006 'selected' => array(),
6007 'disabled' => array()
6008 )
6009 );
6010 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
6011 $mad_mimi_select .= "<option value=''>Select list</option>";
6012 $mad_mimi_select .= "</select>";
6013 echo wp_kses($mad_mimi_select, $allowed_tags);
6014
6015 ?>
6016 </div>
6017 </div>
6018 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6019 <div class="ays-poll-new-upgrade-button-box">
6020 <div>
6021 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6022 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6023 </div>
6024 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6025 </div>
6026 </a>
6027 </div>
6028 </div>
6029 </fieldset> <!-- GetResponse Settings -->
6030 <hr>
6031 <fieldset class="ays_poll_settings_integration_container">
6032 <legend>
6033 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/convertkit_logo.png" alt="">
6034 <h5><?php echo esc_html__('ConvertKit Settings', "poll-maker")?></h5>
6035 </legend>
6036 <div class="form-group row" style="margin: 0px;">
6037 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6038 <div class="pro_features" style="justify-content:flex-end;">
6039 </div>
6040 <div class="form-group row">
6041 <div class="col-sm-4">
6042 <label for="ays_poll_enable_convertkit">
6043 <?php echo esc_html__('Enable ConvertKit', "poll-maker")?>
6044 </label>
6045 </div>
6046 <div class="col-sm-1">
6047 <input type="checkbox" class="ays-enable-timer1"/>
6048 </div>
6049 </div>
6050 <hr>
6051 <div class="form-group row">
6052 <div class="col-sm-4">
6053 <label>
6054 <?php echo esc_html__('ConvertKit list', "poll-maker")?>
6055 </label>
6056 </div>
6057 <div class="col-sm-8">
6058 <select id="ays_poll_convertKit_list">
6059 <option value="" disabled selected>Select list</option>
6060 </select>
6061 </div>
6062 </div>
6063 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6064 <div class="ays-poll-new-upgrade-button-box">
6065 <div>
6066 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6067 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6068 </div>
6069 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6070 </div>
6071 </a>
6072 </div>
6073 </div>
6074 </fieldset> <!-- ConvertKit Settings -->
6075 <hr/>
6076 <fieldset class="ays_poll_settings_integration_container">
6077 <legend>
6078 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/klaviyo-logo.png" alt="">
6079 <h5><?php echo esc_html__('Klaviyo', "poll-maker") ?></h5>
6080 </legend>
6081 <div class="form-group row" style="margin: 0px;">
6082 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6083 <div class="pro_features" style="justify-content:flex-end;">
6084 </div>
6085 <div class="form-group row">
6086 <div class="col-sm-4">
6087 <label for="ays_poll_enable_klaviyo"><?php echo esc_html__('Enable Klaviyo', "poll-maker"); ?></label>
6088 </div>
6089 <div class="col-sm-1">
6090 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
6091 </div>
6092 </div>
6093 <hr>
6094 <div class="form-group row">
6095 <div class="col-sm-4">
6096 <label for="ays_poll_klaviyo_list"><?php echo esc_html__('Klaviyo list',"poll-maker") ?></label>
6097 </div>
6098 <div class="col-sm-8">
6099 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
6100 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6101 </select>
6102 </div>
6103 </div>
6104 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6105 <div class="ays-poll-new-upgrade-button-box">
6106 <div>
6107 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6108 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6109 </div>
6110 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6111 </div>
6112 </a>
6113 </div>
6114 </div>
6115 </fieldset> <!-- Klaviyo -->
6116 <hr>
6117 <fieldset class="ays_poll_settings_integration_container">
6118 <legend>
6119 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/aweber-logo.png" alt="">
6120 <h5><?php echo esc_html__('Aweber', "poll-maker") ?></h5>
6121 </legend>
6122 <div class="form-group row" style="margin: 0px;">
6123 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6124 <div class="pro_features" style="justify-content:flex-end;">
6125 </div>
6126 <div class="form-group row">
6127 <div class="col-sm-4">
6128 <label for="ays_poll_enable_aweber"><?php echo esc_html__('Enable Aweber', "poll-maker") ?></label>
6129 </div>
6130 <div class="col-sm-1">
6131 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
6132 </div>
6133 </div>
6134 <hr>
6135 <div class="form-group row">
6136 <div class="col-sm-4">
6137 <label for="ays_poll_aweber_list_id"><?php echo esc_html__('Aweber Lists', "poll-maker") ?></label>
6138 </div>
6139 <div class="col-sm-8">
6140 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
6141 <option value='' disabled selected><?php echo esc_html__( "Select list", "poll-maker" ) ?></option>
6142 </select>
6143 </div>
6144 </div>
6145 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6146 <div class="ays-poll-new-upgrade-button-box">
6147 <div>
6148 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6149 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6150 </div>
6151 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6152 </div>
6153 </a>
6154 </div>
6155 </div>
6156 </fieldset> <!-- Aweber -->
6157 <hr>
6158 <fieldset class="ays_poll_settings_integration_container">
6159 <legend>
6160 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mail_poet.png" alt="">
6161 <h5><?php echo esc_html__('MailPoet', "poll-maker") ?></h5>
6162 </legend>
6163 <div class="form-group row" style="margin:0;">
6164 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6165 <div class="pro_features" style="justify-content:flex-end;">
6166 </div>
6167 <div class="form-group row">
6168 <div class="col-sm-4">
6169 <label for="ays_poll_enable_mailpoet"><?php echo esc_html__('Enable MailPoet',"poll-maker"); ?></label>
6170 </div>
6171 <div class="col-sm-1">
6172 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
6173 </div>
6174 </div>
6175 <hr>
6176 <div class="form-group row">
6177 <div class="col-sm-4">
6178 <label for="ays_poll_mailpoet_list"><?php echo esc_html__('MailPoet list',"poll-maker") ?></label>
6179 </div>
6180 <div class="col-sm-8">
6181 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
6182 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6183 </select>
6184 </div>
6185 </div>
6186 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6187 <div class="ays-poll-new-upgrade-button-box">
6188 <div>
6189 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6190 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6191 </div>
6192 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6193 </div>
6194 </a>
6195 </div>
6196 </div>
6197 </fieldset> <!-- Mailpoet -->
6198 <hr>
6199 <fieldset class="ays_poll_settings_integration_container">
6200 <legend>
6201 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/recaptcha_logo.png" alt="">
6202 <h5><?php echo esc_html__('reCAPTCHA Settings', "poll-maker") ?></h5>
6203 </legend>
6204 <div class="form-group row" style="margin:0;">
6205 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6206 <div class="pro_features" style="justify-content:flex-end;">
6207 </div>
6208 <div class="form-group row">
6209 <div class="col-sm-4">
6210 <label for="ays_poll_enable_recaptcha"><?php echo esc_html__('Enable reCAPTCHA',"poll-maker"); ?></label>
6211 </div>
6212 <div class="col-sm-1">
6213 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_recaptcha" name="ays_poll_enable_recaptcha" value="on" selected disabled >
6214 </div>
6215 </div>
6216 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6217 <div class="ays-poll-new-upgrade-button-box">
6218 <div>
6219 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6220 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6221 </div>
6222 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6223 </div>
6224 </a>
6225 </div>
6226 </div>
6227 </fieldset> <!-- reCaptcha Settings -->
6228 <hr>
6229 </div>
6230 </div>
6231 </div>
6232 <div id="tab8" class="ays-poll-tab-content <?php echo $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
6233 <div class="ays-poll-accordion-options-main-container">
6234 <div class="ays-poll-accordion-header">
6235 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
6236 <p class="ays-subtitle"><?php echo esc_html__('Results Settings', "poll-maker"); ?></p>
6237 </div>
6238 <hr class="ays-poll-bolder-hr"/>
6239 <div class="ays-poll-accordion-body">
6240 <div class="form-group row">
6241 <div class="col-sm-3">
6242 <label for='show-res-percent'>
6243 <?php echo esc_html__('Show answer percent', "poll-maker"); ?>
6244 <a class="ays_help" data-toggle="tooltip"
6245 data-placement="top"
6246 title="<?php echo esc_html__("Enable to show the percentage of each question on the progressbar on the result page of the poll.", "poll-maker"); ?>">
6247 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6248 </a>
6249 </label>
6250 </div>
6251 <div class="col-sm-9">
6252 <input type="checkbox" name="show_res_percent" id="show-res-percent"
6253 value="1" <?php echo $show_res_percent ? 'checked' : '' ?> >
6254 </div>
6255 </div>
6256 <hr>
6257 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
6258 <div class="col-sm-3">
6259 <label for='ays-poll-hide-results'>
6260 <?php echo esc_html__('Hide results', "poll-maker"); ?>
6261 <a class="ays_help"
6262 data-toggle="tooltip"
6263 data-placement="top"
6264 title="<?php echo esc_html__("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
6265 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6266 </a>
6267 </label>
6268 <p class="ays_poll_small_hint_text_for_message_variables">
6269 <span><?php echo esc_html__( "To see all Message Variables " , "poll-maker" ); ?></span>
6270 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here" , "poll-maker" ); ?></a>
6271 </p>
6272 </div>
6273 <div class="col-sm-9 ays_toggle_parent">
6274 <div class="form-group row">
6275
6276 <!-- <div class="col-sm-1"> -->
6277 <div class="col-sm-12">
6278 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
6279 value="hide" <?php echo isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
6280 </div>
6281 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
6282 <div class="form-group row">
6283 <div class="col-sm-12">
6284 <div>
6285 <label for='ays-poll-hide-results-text'>
6286 <?php echo esc_html__('Message instead of results', "poll-maker"); ?>
6287 <a class="ays_help"
6288 data-toggle="tooltip"
6289 data-placement="top"
6290 title="<?php echo esc_html__("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
6291 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6292 </a>
6293 </label>
6294 </div>
6295 <?php
6296 echo $poll_message_vars_html;
6297 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
6298 $editor_id = 'ays-poll-hide-results-text';
6299 $settings = array(
6300 'editor_height' => $poll_wp_editor_height,
6301 'textarea_name' => 'ays-poll-hide-results-text',
6302 'editor_class' => 'ays-textarea',
6303 'media_elements' => false
6304 );
6305 wp_editor($content, $editor_id, $settings);
6306 ?>
6307 </div>
6308 </div>
6309 </div>
6310 </div>
6311 </div>
6312 </div>
6313 <hr>
6314 <div class="form-group row ays-poll-desc-message-vars-parent">
6315 <div class="col-sm-3">
6316 <label for="ays_poll_result_message">
6317 <?php echo esc_html__('Result Message', "poll-maker")?>
6318 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write the message, which will be shown on the result page of the poll.', "poll-maker")?>">
6319 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6320 </a>
6321 </label>
6322 <p class="ays_poll_small_hint_text_for_message_variables">
6323 <span><?php echo esc_html__( "To see all Message Variables ", "poll-maker" ); ?></span>
6324 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here", "poll-maker" ); ?></a>
6325 </p>
6326 </div>
6327 <div class="col-sm-9 ays_toggle_parent">
6328 <div class="form-group row">
6329 <div class="col-sm-12">
6330 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
6331 value="hide" <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
6332 </div>
6333 <div class="col-sm-12 if_poll_hide_result_message ays_toggle_target" style="margin-top: 15px; <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? '' : 'display:none;'; ?>">
6334 <?php
6335 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6336
6337 echo $poll_message_vars_html;
6338 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
6339 $editor_id = 'ays_result_message';
6340 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6341 wp_editor($content, $editor_id, $settings);
6342 ?>
6343 </div>
6344 </div>
6345 </div>
6346 </div>
6347 <hr>
6348 <div class="form-group row">
6349 <div class="col-sm-3">
6350 <label for='ays-poll-result-sort-type'>
6351 <?php echo esc_html__('Results sorting', "poll-maker"); ?>
6352 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
6353 echo esc_html__("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
6354 "<ul style='list-style-type: circle;padding-left: 20px;'>".
6355 "<li>".esc_html__('Ascending – the smallest to largest', "poll-maker") ."</li>".
6356 "<li>".esc_html__('Descending – the largest to smallest', "poll-maker") ."</li>".
6357 "<li>".esc_html__('None', "poll-maker") ."</li>".
6358 "</ul>";
6359 ?>">
6360 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6361 </a></label>
6362 </div>
6363 <div class="col-sm-9">
6364 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
6365 <option value="none" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
6366 <?php echo esc_html__("None", "poll-maker"); ?>
6367 </option>
6368 <option value="ASC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
6369 <?php echo esc_html__("Ascending", "poll-maker"); ?>
6370 </option>
6371 <option value="DESC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
6372 <?php echo esc_html__("Descending", "poll-maker"); ?>
6373 </option>
6374 </select>
6375 </div>
6376 </div>
6377 <hr>
6378 <div class="form-group row">
6379 <div class="col-sm-3">
6380 <label for='show-votes-count'>
6381 <?php echo esc_html__('Show votes count', "poll-maker"); ?>
6382 <a class="ays_help" data-toggle="tooltip"
6383 data-placement="top"
6384 title="<?php echo esc_html__("Enable to show the total number of votes of each answer on the result page of the poll.", "poll-maker"); ?>">
6385 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6386 </a>
6387 </label>
6388 </div>
6389 <div class="col-sm-9">
6390 <input type="checkbox" name="show_votes_count" id="show-votes-count"
6391 value="1" <?php echo $showvotescount ? 'checked' : '' ?> >
6392 </div>
6393 </div>
6394 <hr>
6395
6396 <!-- Loading effect start -->
6397
6398 <div class="form-group row">
6399 <div class="col-sm-3">
6400 <label for='ays-poll-load-effect'>
6401 <?php echo esc_html__('Loading effect', "poll-maker"); ?>
6402 <a class="ays_help" data-toggle="tooltip"
6403 data-placement="top"
6404 title="<?php echo esc_html__("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
6405 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6406 </a>
6407 </label>
6408 </div>
6409 <div class="col-sm-3">
6410 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
6411 <option value="load_gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
6412 <?php echo esc_html__("Loading GIF", "poll-maker"); ?>
6413 </option>
6414 <option value="opacity" <?php echo isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
6415 <?php echo esc_html__("Opacity", "poll-maker"); ?>
6416 </option>
6417 <option value="blur" <?php echo isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
6418 <?php echo esc_html__("Blur", "poll-maker"); ?>
6419 </option>
6420 <option value="message" <?php echo isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
6421 <?php echo esc_html__("Message", "poll-maker"); ?>
6422 </option>
6423 <option class="apm-pro-feature" disabled
6424 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>" value="pro">
6425 <?php echo esc_html__("Custom GIF", "poll-maker"); ?>
6426 </option>
6427 </select>
6428 </div>
6429 <div class="if-loading-gif col-sm-6 row">
6430 <div class="apm-loader d-flex justify-content-between align-items-center">
6431 <input type="radio"
6432 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_default' ? 'checked' : ''; ?>
6433 id="plg_default" value="plg_default">
6434 <label for="plg_default" class="apm-loading-gif">
6435 <div class="loader loader--style3">
6436 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
6437 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6438 height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;"
6439 xml:space="preserve">
6440 <path fill="#000"
6441 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">
6442 <animateTransform attributeType="xml" attributeName="transform"
6443 type="rotate" from="0 25 25" to="360 25 25" dur="0.7s"
6444 repeatCount="indefinite"/>
6445 </path>
6446 </svg>
6447 </div>
6448 </label>
6449 </div>
6450 <div class="apm-loader d-flex justify-content-between align-items-center">
6451 <input type="radio"
6452 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_1' ? 'checked' : ''; ?>
6453 id="plg_1" value="plg_1">
6454 <label for="plg_1" class="apm-loading-gif">
6455 <div class="loader loader--style5">
6456 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6457 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6458 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6459 xml:space="preserve">
6460 <rect x="0" y="0" width="4" height="10" fill="#333">
6461 <animateTransform attributeType="xml" attributeName="transform"
6462 type="translate" values="0 0; 0 20; 0 0" begin="0"
6463 dur="0.8s" repeatCount="indefinite"/>
6464 </rect>
6465 <rect x="10" y="0" width="4" height="10" fill="#333">
6466 <animateTransform attributeType="xml" attributeName="transform"
6467 type="translate" values="0 0; 0 20; 0 0" begin="0.2s"
6468 dur="0.8s" repeatCount="indefinite"/>
6469 </rect>
6470 <rect x="20" y="0" width="4" height="10" fill="#333">
6471 <animateTransform attributeType="xml" attributeName="transform"
6472 type="translate" values="0 0; 0 20; 0 0" begin="0.4s"
6473 dur="0.8s" repeatCount="indefinite"/>
6474 </rect>
6475 </svg>
6476 </div>
6477 </label>
6478 </div>
6479 <div class="apm-loader d-flex justify-content-between align-items-center">
6480 <input type="radio"
6481 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_2' ? 'checked' : ''; ?>
6482 id="plg_2" value="plg_2">
6483 <label for="plg_2" class="apm-loading-gif">
6484 <div class="loader loader--style8">
6485 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6486 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6487 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6488 xml:space="preserve">
6489 <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
6490 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6491 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6492 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6493 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6494 <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s"
6495 dur="0.7s" repeatCount="indefinite"/>
6496 </rect>
6497 <rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
6498 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6499 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6500 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6501 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6502 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6503 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6504 </rect>
6505 <rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
6506 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6507 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6508 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6509 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6510 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6511 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6512 </rect>
6513 </svg>
6514 </div>
6515 </label>
6516 </div>
6517 <div class="apm-loader d-flex justify-content-between align-items-center">
6518 <input type="radio"
6519 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_3' ? 'checked' : ''; ?>
6520 id="plg_3" value="plg_3">
6521 <label for="plg_3" class="apm-loading-gif">
6522 <div class="loader loader--style5">
6523 <svg width="100%" height="100%" viewBox="0 0 105 105"
6524 xmlns="http://www.w3.org/2000/svg" fill="#000">
6525 <circle cx="12.5" cy="12.5" r="12.5">
6526 <animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1"
6527 calcMode="linear" repeatCount="indefinite"/>
6528 </circle>
6529 <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
6530 <animate attributeName="fill-opacity" begin="100ms" dur="0.9s"
6531 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6532 </circle>
6533 <circle cx="52.5" cy="12.5" r="12.5">
6534 <animate attributeName="fill-opacity" begin="300ms" dur="0.9s"
6535 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6536 </circle>
6537 <circle cx="52.5" cy="52.5" r="12.5">
6538 <animate attributeName="fill-opacity" begin="600ms" dur="0.9s"
6539 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6540 </circle>
6541 <circle cx="92.5" cy="12.5" r="12.5">
6542 <animate attributeName="fill-opacity" begin="800ms" dur="0.9s"
6543 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6544 </circle>
6545 <circle cx="92.5" cy="52.5" r="12.5">
6546 <animate attributeName="fill-opacity" begin="400ms" dur="0.9s"
6547 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6548 </circle>
6549 <circle cx="12.5" cy="92.5" r="12.5">
6550 <animate attributeName="fill-opacity" begin="700ms" dur="0.9s"
6551 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6552 </circle>
6553 <circle cx="52.5" cy="92.5" r="12.5">
6554 <animate attributeName="fill-opacity" begin="500ms" dur="0.9s"
6555 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6556 </circle>
6557 <circle cx="92.5" cy="92.5" r="12.5">
6558 <animate attributeName="fill-opacity" begin="200ms" dur="0.9s"
6559 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6560 </circle>
6561 </svg>
6562 </div>
6563 </label>
6564 </div>
6565 <div class="apm-loader d-flex justify-content-between align-items-center">
6566 <input type="radio"
6567 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_4' ? 'checked' : ''; ?>
6568 id="plg_4" value="plg_4">
6569 <label for="plg_4" class="apm-loading-gif">
6570 <div class="loader loader--style4">
6571 <svg width="100%" height="100%" viewBox="0 0 57 57"
6572 xmlns="http://www.w3.org/2000/svg" stroke="#000">
6573 <g fill="none" fill-rule="evenodd">
6574 <g transform="translate(1 1)" stroke-width="2">
6575 <circle cx="5" cy="50" r="5">
6576 <animate attributeName="cy" begin="0s" dur="2.2s"
6577 values="50;5;50;50" calcMode="linear"
6578 repeatCount="indefinite"/>
6579 <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5"
6580 calcMode="linear" repeatCount="indefinite"/>
6581 </circle>
6582 <circle cx="27" cy="5" r="5">
6583 <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5"
6584 values="5;50;50;5" calcMode="linear"
6585 repeatCount="indefinite"/>
6586 <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27"
6587 values="27;49;5;27" calcMode="linear"
6588 repeatCount="indefinite"/>
6589 </circle>
6590 <circle cx="49" cy="50" r="5">
6591 <animate attributeName="cy" begin="0s" dur="2.2s"
6592 values="50;50;5;50" calcMode="linear"
6593 repeatCount="indefinite"/>
6594 <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s"
6595 values="49;5;27;49" calcMode="linear"
6596 repeatCount="indefinite"/>
6597 </circle>
6598 </g>
6599 </g>
6600 </svg>
6601 </div>
6602 </label>
6603 </div>
6604 <div class="apm-loader d-flex justify-content-between align-items-center">
6605 <input type="radio"
6606 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_5' ? 'checked' : ''; ?>
6607 id="plg_5" value="plg_5">
6608 <label for="plg_5" class="apm-loading-gif">
6609 <div class="loader loader--style4">
6610 <svg width="100%" height="100%" viewBox="0 0 135 140"
6611 xmlns="http://www.w3.org/2000/svg" fill="#000">
6612 <rect y="10" width="15" height="120" rx="6">
6613 <animate attributeName="height" begin="0.5s" dur="1s"
6614 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6615 repeatCount="indefinite"/>
6616 <animate attributeName="y" begin="0.5s" dur="1s"
6617 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6618 repeatCount="indefinite"/>
6619 </rect>
6620 <rect x="30" y="10" width="15" height="120" rx="6">
6621 <animate attributeName="height" begin="0.25s" dur="1s"
6622 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6623 repeatCount="indefinite"/>
6624 <animate attributeName="y" begin="0.25s" dur="1s"
6625 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6626 repeatCount="indefinite"/>
6627 </rect>
6628 <rect x="60" width="15" height="140" rx="6">
6629 <animate attributeName="height" begin="0s" dur="1s"
6630 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6631 repeatCount="indefinite"/>
6632 <animate attributeName="y" begin="0s" dur="1s"
6633 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6634 repeatCount="indefinite"/>
6635 </rect>
6636 <rect x="90" y="10" width="15" height="120" rx="6">
6637 <animate attributeName="height" begin="0.25s" dur="1s"
6638 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6639 repeatCount="indefinite"/>
6640 <animate attributeName="y" begin="0.25s" dur="1s"
6641 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6642 repeatCount="indefinite"/>
6643 </rect>
6644 <rect x="120" y="10" width="15" height="120" rx="6">
6645 <animate attributeName="height" begin="0.5s" dur="1s"
6646 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6647 repeatCount="indefinite"/>
6648 <animate attributeName="y" begin="0.5s" dur="1s"
6649 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6650 repeatCount="indefinite"/>
6651 </rect>
6652 </svg>
6653 </div>
6654 </label>
6655 </div>
6656 </div>
6657 <div class="if-loading-message col-sm-6 row">
6658 <input type="text" class="ays-text-input ays-text-input-short" name="ays_poll_load_effect_message" value="<?php echo esc_attr($poll_effect_message); ?>">
6659 </div>
6660 </div>
6661 <hr class="<?php echo esc_attr($poll_loader_size_line_enable); ?> ays_line_changeing">
6662 <div class="form-group row <?php echo esc_attr($poll_loader_size_enable); ?> ays_load_gif_cont">
6663 <div class="col-sm-3">
6664 <label for="ays_loader_font_size">
6665 <?php echo esc_html__('Loading effect size', "poll-maker") ?>
6666 <a class="ays_help" data-toggle="tooltip"
6667 title="<?php echo esc_html__('Define the size of the loading effect. It will get the default value if you leave it blank.', "poll-maker") ?>">
6668 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6669 </a>
6670 </label>
6671 </div>
6672 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6673 <div>
6674 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6675 name="ays_loader_font_size"
6676 value="<?php echo esc_attr($poll_loader_font_size); ?>"/>
6677 </div>
6678 <div class="ays_option_default_measurement_unit">
6679 <input type="text" value="px" disabled>
6680 </div>
6681 </div>
6682 </div>
6683 <hr>
6684 <!-- Loading effect end -->
6685 <div class="form-group row">
6686 <div class="col-sm-3">
6687 <label for="ays_enable_restart_button">
6688 <?php echo esc_html__('Enable restart button', "poll-maker") ?>
6689 <a class="ays_help" data-toggle="tooltip"
6690 title="<?php echo esc_html__('Show the restart button on the result page of the poll for restarting the poll and taking it again.', "poll-maker") ?>">
6691 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6692 </a>
6693 </label>
6694 </div>
6695 <div class="col-sm-1">
6696 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6697 name="ays_enable_restart_button"
6698 value="on" <?php echo (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6699 </div>
6700 </div>
6701 <hr>
6702 <div class="form-group row ays_toggle_parent">
6703 <div class="col-sm-3">
6704 <label for='ays-poll-show-social'>
6705 <?php echo esc_html__('Social share buttons', "poll-maker"); ?>
6706 <a class="ays_help"
6707 data-toggle="tooltip"
6708 data-placement="top"
6709 title='<?php echo esc_html__("Enable to show social media share buttons on the result page of the poll. (Facebook, Twitter, LinkedIn, VKontakte)", "poll-maker"); ?>'>
6710 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6711 </a></label>
6712 </div>
6713 <div class="col-sm-1">
6714 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6715 value="show" <?php echo $poll_social_buttons ? 'checked' : ''; ?>>
6716 </div>
6717 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6718 <div class="form-group row">
6719 <div class="col-sm-4">
6720 <label>
6721 <?php echo esc_html__('Heading for share buttons', "poll-maker")?>
6722 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6723 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6724 </a>
6725 </label>
6726 </div>
6727 <div class="col-sm-8">
6728 <?php
6729 $content = $poll_social_buttons_heading;
6730 $editor_id = 'ays_poll_social_buttons_heading';
6731 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6732 wp_editor($content, $editor_id, $settings);
6733 ?>
6734 </div>
6735 </div>
6736 <hr>
6737 <div class="form-group row">
6738 <div class="col-sm-4">
6739 <label for="ays_poll_enable_linkedin_share_button">
6740 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6741 <?php echo esc_html__('LinkedIn button', "poll-maker")?>
6742 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display LinkedIn social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6743 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6744 </a>
6745 </label>
6746 </div>
6747 <div class="col-sm-8">
6748 <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" : ""; ?>/>
6749 </div>
6750 </div>
6751 <hr/>
6752 <div class="form-group row">
6753 <div class="col-sm-4">
6754 <label for="ays_poll_enable_facebook_share_button">
6755 <i class="ays_poll_fas ays_poll_facebook"></i>
6756 <?php echo esc_html__('Facebook button', "poll-maker")?>
6757 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display Facebook social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6758 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6759 </a>
6760 </label>
6761 </div>
6762 <div class="col-sm-8">
6763 <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" : ""; ?>/>
6764 </div>
6765 </div>
6766 <hr/>
6767 <div class="form-group row">
6768 <div class="col-sm-4">
6769 <label for="ays_poll_enable_twitter_share_button">
6770 <i class="ays_fa ays_fa_twitter_square"></i>
6771 <?php echo esc_html__('Twitter button', "poll-maker")?>
6772 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display Twitter social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6773 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6774 </a>
6775 </label>
6776 </div>
6777 <div class="col-sm-8">
6778 <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" : ""; ?>/>
6779 </div>
6780 </div>
6781 <hr/>
6782 <div class="form-group row">
6783 <div class="col-sm-4">
6784 <label for="ays_poll_enable_vkontakte_share_button">
6785 <i class="ays_fa ays_fa_vk"></i>
6786 <?php echo esc_html__('VKontakte button', "poll-maker")?>
6787 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display VKontakte social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6788 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6789 </a>
6790 </label>
6791 </div>
6792 <div class="col-sm-8">
6793 <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" : ""; ?>/>
6794 </div>
6795 </div>
6796 </div>
6797 </div>
6798 <hr>
6799 <div class="form-group row ays_toggle_parent">
6800 <div class="col-sm-3">
6801 <label for="ays_enable_social_links">
6802 <?php echo esc_html__('Enable Social Media links', "poll-maker")?>
6803 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Display social media links at the end of the poll to allow users to visit your pages in the Social media.', "poll-maker")?>">
6804 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6805 </a>
6806 </label>
6807 </div>
6808 <div class="col-sm-1">
6809 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links"
6810 name="ays_poll_enable_social_links"
6811 value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/>
6812 </div>
6813 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6814 <div class="form-group row">
6815 <div class="col-sm-4">
6816 <label>
6817 <?php echo esc_html__('Heading for social links', "poll-maker")?>
6818 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over social links.', "poll-maker"); ?>">
6819 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6820 </a>
6821 </label>
6822 </div>
6823 <div class="col-sm-8">
6824 <?php
6825 $content = $poll_social_links_heading;
6826 $editor_id = 'ays_poll_social_links_heading';
6827 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6828 wp_editor($content, $editor_id, $settings);
6829 ?>
6830 </div>
6831 </div>
6832 <hr>
6833 <div class="form-group row">
6834 <div class="col-sm-4">
6835 <label for="ays_linkedin_link">
6836 <i class="ays_fa ays_fa_linkedin_square"></i>
6837 <?php echo esc_html__('LinkedIn link', "poll-maker")?>
6838 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6839 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6840 </a>
6841 </label>
6842 </div>
6843 <div class="col-sm-8">
6844 <input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]"
6845 value="<?php echo $linkedin_link; ?>" />
6846 </div>
6847 </div>
6848 <hr/>
6849 <div class="form-group row">
6850 <div class="col-sm-4">
6851 <label for="ays_facebook_link">
6852 <i class="ays_fa ays_fa_facebook_square"></i>
6853 <?php echo esc_html__('Facebook link', "poll-maker")?>
6854 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6855 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6856 </a>
6857 </label>
6858 </div>
6859 <div class="col-sm-8">
6860 <input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]"
6861 value="<?php echo $facebook_link; ?>" />
6862 </div>
6863 </div>
6864 <hr/>
6865 <div class="form-group row">
6866 <div class="col-sm-4">
6867 <label for="ays_twitter_link">
6868 <!-- <i class="ays_fa ays_fa_twitter_square"></i> -->
6869 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6870 <path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path>
6871 </svg>
6872 <?php echo esc_html__('X link', "poll-maker")?>
6873 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('X profile or page link for showing after poll finish.', "poll-maker")?>">
6874 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6875 </a>
6876 </label>
6877 </div>
6878 <div class="col-sm-8">
6879 <input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]"
6880 value="<?php echo $twitter_link; ?>" />
6881 </div>
6882 </div>
6883 <hr/>
6884 <div class="form-group row">
6885 <div class="col-sm-4">
6886 <label for="ays_vkontakte_link">
6887 <i class="ays_fa ays_fa_vk_square"></i>
6888 <?php echo esc_html__('VKontakte link', "poll-maker")?>
6889 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6890 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6891 </a>
6892 </label>
6893 </div>
6894 <div class="col-sm-8">
6895 <input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]"
6896 value="<?php echo $vkontakte_link; ?>" />
6897 </div>
6898 </div>
6899 <hr>
6900 <div class="form-group row">
6901 <div class="col-sm-4">
6902 <label for="ays_youtube_link">
6903 <i class="ays_fa ays_fa_youtube_square"></i>
6904 <?php echo esc_html__('YouTube link', "poll-maker")?>
6905 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6906 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6907 </a>
6908 </label>
6909 </div>
6910 <div class="col-sm-8">
6911 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6912 value="<?php echo $youtube_link; ?>" />
6913 </div>
6914 </div>
6915 <hr>
6916 <div class="form-group row">
6917 <div class="col-sm-4">
6918 <label for="ays_tiktok_link">
6919 <!-- <i class="ays_fa ays_fa_tiktok_square"></i> -->
6920 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6921 <path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"></path>
6922 </svg>
6923 <?php echo esc_html__('TikTok link', "poll-maker")?>
6924 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tiktok profile or page link for showing after poll finish.', "poll-maker")?>">
6925 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6926 </a>
6927 </label>
6928 </div>
6929 <div class="col-sm-8">
6930 <input type="text" class="ays-text-input" id="ays_tiktok_link" name="ays_poll_social_links[ays_tiktok_link]"
6931 value="<?php echo $tiktok_link; ?>" />
6932 </div>
6933 </div>
6934 <hr>
6935 <div class="form-group row">
6936 <div class="col-sm-4">
6937 <label for="ays_instagram_link">
6938 <i class="ays_fa ays_fa_instagram_square"></i>
6939 <?php echo esc_html__('Instagram link', "poll-maker")?>
6940 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Instagram profile or page link for showing after poll finish.', "poll-maker")?>">
6941 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6942 </a>
6943 </label>
6944 </div>
6945 <div class="col-sm-8">
6946 <input type="text" class="ays-text-input" id="ays_instagram_link" name="ays_poll_social_links[ays_instagram_link]"
6947 value="<?php echo $instagram_link; ?>" />
6948 </div>
6949 </div>
6950 </div>
6951 </div>
6952 <hr>
6953 <div class="form-group row">
6954 <div class="col-sm-3">
6955 <label for='ays-poll-res-rgba'>
6956 <?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?>
6957 <a class="ays_help" data-toggle="tooltip"
6958 data-placement="top"
6959 title="<?php echo esc_html__("If the option is enabled, the opacity of the result bar color will depend on the number of votes.", "poll-maker"); ?>">
6960 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6961 </a>
6962 </label>
6963 </div>
6964 <div class="col-sm-9">
6965 <input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba"
6966 value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>>
6967 </div>
6968 </div>
6969 <hr>
6970 <div class="form-group row ays_toggle_parent">
6971 <div class="col-sm-3">
6972 <label for='ays_poll_show_users'>
6973 <?php echo esc_html__('Show passed users avatars', "poll-maker"); ?>
6974 <a class="ays_help" data-toggle="tooltip"
6975 data-placement="top"
6976 title="<?php echo esc_html__("If this option is enabled, you will see users' avatars(profile pictures) who have already voted on the result page.", "poll-maker"); ?>">
6977 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6978 </a>
6979 </label>
6980 </div>
6981 <div class="col-sm-1">
6982 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6983 value="on" <?php echo esc_attr($poll_show_passed_users_checked); ?>>
6984 </div>
6985 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6986 <div class="row">
6987 <div class="col-sm-3 ays_divider_left">
6988 <label for='ays_poll_show_users_count'>
6989 <?php echo esc_html__('Users count', "poll-maker"); ?>
6990 <a class="ays_help" data-toggle="tooltip"
6991 data-placement="top"
6992 title="<?php echo esc_html__("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6993 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6994 </a>
6995 </label>
6996 </div>
6997 <div class="col-sm-9">
6998 <input type="number"
6999 name="ays_poll_show_users_count"
7000 id="ays_poll_show_users_count"
7001 class="ays-text-input ays-poll-answer-results-short-input"
7002 value="<?php echo esc_attr($poll_show_passed_users_count); ?>">
7003 </div>
7004 </div>
7005 </div>
7006 </div>
7007 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
7008 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
7009 <div class="col-sm-3">
7010 <label for="ays_poll_enable_answer_redirect_delay">
7011 <?php echo esc_html__('Option Redirect Delay', "poll-maker") ?>
7012 <a class="ays_help" data-toggle="tooltip"
7013 title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll. The option works if you have enabled the redirection of each answer individually from the General tab.', "poll-maker") ?>">
7014 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7015 </a>
7016 </label>
7017 </div>
7018 <div class="col-sm-1">
7019 <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" : ""; ?>>
7020 </div>
7021 <div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>">
7022 <input type="number"
7023 class="ays-text-input ays-poll-answer-results-short-input"
7024 id="ays_poll_answer_redirect_delay"
7025 name="ays_poll_answer_redirect_delay"
7026 value="<?php echo $poll_every_answer_redirect_delay; ?>"/>
7027 <span class="ays_poll_small_hint_text"><?php echo esc_html__("Seconds", "poll-maker"); ?></span>
7028 </div>
7029 </div>
7030 <hr>
7031 <div class="form-group row">
7032 <div class="col-sm-3">
7033 <label for="ays_poll_enable_answer_image_after_voting">
7034 <?php echo esc_html__('Show answers image', "poll-maker") ?>
7035 <a class="ays_help" data-toggle="tooltip"
7036 title="<?php echo esc_html__('Tick this option to see the answers images after voting. Note it works only with the choosing type and you should have at least one answer with an image to use it.', "poll-maker") ?>">
7037 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7038 </a>
7039 </label>
7040 </div>
7041 <div class="col-sm-1">
7042 <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" : ""; ?>>
7043 </div>
7044 </div>
7045 <hr>
7046 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
7047 <div class="form-group row">
7048 <div class="col-sm-3">
7049 <label for="apm_allow_add_answers">
7050 <?php echo esc_html__('Show results by', "poll-maker"); ?>
7051 <a class="ays_help" data-toggle="tooltip" data-placement="top"
7052 title="<?php echo esc_html__("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
7053 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7054 </a>
7055 </label>
7056 </div>
7057 <div class="col-sm-9">
7058 <div class="form-group row" style="align-items:center">
7059 <div class="col-sm-4">
7060 <div style="display: flex;">
7061 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7062 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
7063 <input type="radio" class="ays-poll-show-result-chart-google" name="ays_poll_show_result_chart" value="google_bar_chart" <?php echo ($show_chart_type == 'google_bar_chart') ? 'checked' : '' ?>/>
7064 <span><?php echo esc_html__('Bar chart(Google)', "poll-maker"); ?></span>
7065 </label>
7066 </div>
7067 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7068 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
7069 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
7070 <span><?php echo esc_html__('Bar chart', "poll-maker"); ?></span>
7071 </label>
7072 </div>
7073 </div>
7074 </div>
7075 <div class="col-sm-8" style="padding-left: 0">
7076 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
7077 <div class="pro_features pro_features_popup">
7078 <div class="pro-features-popup-conteiner">
7079 <div class="pro-features-popup-title">
7080 <?php echo esc_html__("Show Results by", "poll-maker"); ?>
7081 </div>
7082 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
7083 <p>
7084 <?php echo esc_html__("Show the visual representation of your poll results in visualized charts. You are welcome to use any of the chart types that best suit your goals and missions. You can use the bar chart, pie chart, column chart, bar chart Google, or the \"not reloading\" option to show the poll results. Each of them has its unique uses and features; consider each of them to suit your needs the best.", "poll-maker"); ?>
7085 </p>
7086 </div>
7087 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-show-results-by-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
7088 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7089 </div>
7090 </div>
7091 </div>
7092 <div class="pro_features" style="justify-content:flex-end;">
7093 </div>
7094 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7095 <input type="radio"/>
7096 <label class="form-check-label ays_poll_check_label">
7097 <?php echo esc_html__('Pie Chart', "poll-maker"); ?>
7098 </label>
7099 </div>
7100 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7101 <input type="radio"/>
7102 <label class="form-check-label ays_poll_check_label">
7103 <?php echo esc_html__('Column Chart', "poll-maker"); ?>
7104 </label>
7105 </div>
7106 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
7107 <input type="radio"/>
7108 <label class="form-check-label ays_poll_check_label">
7109 <?php echo esc_html__('Versus Chart', "poll-maker"); ?>
7110 </label>
7111 </div>
7112 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_rating_type" style="<?php echo $poll['view_type'] == 'star' ? '' : 'display: none'?>">
7113 <input type="radio"/>
7114 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
7115 <?php echo esc_html__('Rating Chart', "poll-maker"); ?>
7116 </label>
7117 </div>
7118 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7119 <div class="ays-poll-new-upgrade-button-box">
7120 <div>
7121 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7122 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
7123 </div>
7124 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7125 </div>
7126 </a>
7127 <div class="ays-poll-new-watch-video-button-box">
7128 <div>
7129 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7130 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
7131 </div>
7132 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7133 </div>
7134 </div>
7135 </div>
7136 </div>
7137 <hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7138 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7139 <div class="form-group row" style="align-items: center; margin-left: 0;">
7140 <div class="col-sm-2">
7141 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
7142 <?php echo esc_html__('Chart height', "poll-maker") ?>
7143 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Set the Results Chart height. Note: The option works only for the Google Bar Chart.", "poll-maker"); ?>">
7144 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7145 </a>
7146 </label>
7147 </div>
7148 <div class="col-sm-9 ays_option_with_default_measurement_unit">
7149 <div>
7150 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_poll_show_result_chart_google_height" name="ays_poll_show_result_chart_google_height" value="<?php echo $show_chart_type_google_height; ?>"/>
7151 </div>
7152 <div class="ays_option_default_measurement_unit">
7153 <input type="text" value="px" disabled>
7154 </div>
7155 </div>
7156 </div>
7157 </div>
7158 </div>
7159 </div>
7160 </div>
7161 <hr/>
7162 <div class="form-group row">
7163 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
7164 <div class="pro_features pro_features_popup">
7165 <div class="pro-features-popup-conteiner">
7166 <div class="pro-features-popup-title">
7167 <?php echo esc_html__("Results Message Based on the Answer", "poll-maker"); ?>
7168 </div>
7169 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
7170 <p>
7171 <?php echo esc_html__("Show an individual approach to every poll respondent and add result messages based on their answers. Write result messages for every answer option and increase the user experience of your polls in seconds.", "poll-maker"); ?>
7172 </p>
7173 </div>
7174 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-show-message-based-on-answer-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
7175 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7176 </div>
7177 </div>
7178 </div>
7179 <div class="pro_features" style="justify-content:flex-end;">
7180 </div>
7181 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__("Result message based on the answer", "poll-maker"); ?></p>
7182 <hr>
7183 <div class="form-group row">
7184 <div class="col-sm-3">
7185 <label for="ays_show_answer_message">
7186 <?php echo esc_html__('Show Answer message', "poll-maker")?>
7187 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
7188 data-placement="top"
7189 title="<?php echo esc_html__("Show different messages based on the answer.", "poll-maker"); ?>">
7190 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7191 </a>
7192 </label>
7193 </div>
7194 <div class="col-sm-9">
7195 <input type="checkbox" class="ays-enable-timer1"
7196 name=""
7197 value="on">
7198 </div>
7199 </div>
7200 <hr/>
7201 <!--Result message -->
7202 <div class='form-group row'>
7203 <div class="ays_reset_answers_div">
7204 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
7205 </div>
7206 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Refresh the below answers table after adding or removing answer(s) in the General tab.", "poll-maker"); ?>">
7207 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7208 </a>
7209 </div>
7210 <hr>
7211 <?php
7212 $allowed_tags = array(
7213 'div' => array(
7214 'class' => true
7215 ),
7216 'table' => array(
7217 'class' => true
7218 ),
7219 'thead' => array(),
7220 'tbody' => array(),
7221 'tr' => array(
7222 'class' => true
7223 ),
7224 'th' => array(),
7225 'td' => array(
7226 'class' => true
7227 ),
7228 'span' => array(),
7229 'input' => array(
7230 'type' => true,
7231 'name' => true,
7232 'class' => true,
7233 'value' => true,
7234 'hidden' => true
7235 ),
7236 'textarea' => array(
7237 'type' => true,
7238 'name' => true,
7239 'class' => true
7240 ),
7241 'label' => array(
7242 'class' => true,
7243 'for' => true
7244 ),
7245 'a' => array(
7246 'href' => true,
7247 'class' => true
7248 ),
7249 'img' => array(
7250 'src' => true,
7251 'class' => true
7252 )
7253 );
7254
7255 $content = '<div class="ays-field-dashboard ays-table-wrap">
7256 <table class="ays-answers-table ">
7257 <thead>
7258 <tr class="ui-state-default">
7259 <th>'. esc_html__('Answers', "poll-maker").'</th>
7260 <th>'. esc_html__('Text', "poll-maker").'</th>
7261 <th>'. esc_html__('Image', "poll-maker").'</th>
7262 </tr>
7263 </thead>
7264 <tbody>';
7265 $content .= '<tr class="ays-interval-row">
7266 <td>
7267 <span>'. esc_html__("Answer 1", "poll-maker").'</span>
7268 <input type="hidden" name="ays_answer_id[]">
7269 </td>
7270 <td>
7271 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7272 </td>
7273 <td class="ays-answer-image-td">
7274 <label class="ays-label" for="ays-answer">
7275 <a href="javascript:void(0)" class="add-answer-image" >
7276 '. esc_html__("Add", "poll-maker").'
7277 </a>
7278 </label>
7279 <div class="ays-answer-image-container ays-interval-image-container">
7280 <span class="ays-remove-answer-img"></span>
7281 <img src="" class="ays-answer-img">
7282 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7283 >
7284 </div>
7285 </td>
7286 </tr>
7287 <tr class="ays-interval-row">
7288 <td>
7289 <span>'. esc_html__("Answer 2", "poll-maker").'</span>
7290 <input type="hidden" name="ays_answer_id[]">
7291 </td>
7292 <td>
7293 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7294 </td>
7295 <td class="ays-answer-image-td">
7296 <label class="ays-label" for="ays-answer">
7297 <a href="javascript:void(0)" class="add-answer-image" >
7298 '. esc_html__("Add", "poll-maker").'
7299 </a>
7300 </label>
7301 <div class="ays-answer-image-container ays-interval-image-container">
7302 <span class="ays-remove-answer-img"></span>
7303 <img src="" class="ays-answer-img">
7304 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7305 >
7306 </div>
7307 </td>
7308 </tr>';
7309 $content .= '</tbody></table></div>';
7310 echo wp_kses($content, $allowed_tags);
7311 ?>
7312 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7313 <div class="ays-poll-new-upgrade-button-box">
7314 <div>
7315 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7316 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
7317 </div>
7318 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7319 </div>
7320 </a>
7321 <div class="ays-poll-new-watch-video-button-box">
7322 <div>
7323 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7324 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
7325 </div>
7326 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7327 </div>
7328 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
7329 <div class="ays-poll-center-big-watch-video-button-box">
7330 <div class="ays-poll-center-new-watch-video-demo-button">
7331 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>" class="ays-poll-new-button-img-hide">
7332 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
7333 <span class="ays-poll-center-new-watch-video-demo-name"><?php echo esc_html__("Watch Video", "poll-maker"); ?></span>
7334 </div>
7335 </div>
7336 <div class="ays-poll-center-big-upgrade-button-box">
7337 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7338 <div class="ays-poll-center-new-big-upgrade-button">
7339 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
7340 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
7341 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
7342 </div>
7343 </a>
7344 </div>
7345 </div>
7346 </div>
7347 <hr/>
7348 </div>
7349 </div>
7350 </div>
7351 <div class="only_pro" style="position: relative; display: inline-block">
7352 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
7353 <div class="pro-features-popup-conteiner">
7354 <div class="pro-features-popup-title">
7355 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
7356 </div>
7357 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
7358 <p>
7359 <?php echo esc_html__("You can make the process of creating online polls a fun and easy activity with the Save as Default feature of the WordPress Poll Plugin.", "poll-maker"); ?>
7360 </p>
7361 <p>
7362 <?php echo esc_html__("You just need to click on the Save as default button and, each time, creating a new poll, the system will take the settings and styles of the current poll.", "poll-maker"); ?>
7363 </p>
7364 </div>
7365 <div class="pro-features-popup-button" data-link="https://ays-pro.com/wordpress/poll-maker?utm_source=dashboard&utm_medium=poll-free&utm_campaign=pro-popup-save-as-default-<?php echo esc_attr( POLL_MAKER_AYS_VERSION ); ?>">
7366 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7367 </div>
7368 </div>
7369 </div>
7370 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
7371 <span class="ays_save_as_default_content_for_mobile">
7372 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
7373 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
7374 </a>
7375 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__( "Saves the assigned settings of the current poll as default. After clicking on this button, each time creating a new poll, the system will take the settings and styles of the current poll. If you want to change and renew it, please click on this button on another poll.", "poll-maker" ); ?>">
7376 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7377 </a>
7378 </span>
7379 </div>
7380 </div>
7381 </div>
7382 <div class="bottom-buttons-container">
7383 <div class='bottom-save-buttons-container'>
7384 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
7385 <?php
7386 echo wp_kses($loader_iamge, $loader_iamge_allow);
7387 wp_nonce_field('poll_action', 'poll_action');
7388 $save_bottom_attributes = array(
7389 'id' => 'ays-button-apply',
7390 'title' => 'Ctrl + s',
7391 'data-toggle' => 'tooltip',
7392 'data-delay'=> '{"show":"1000"}'
7393 );
7394 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
7395 $save_close_bottom_attributes = array('id' => 'ays-button');
7396 submit_button( esc_html__('Save and close', "poll-maker"), 'primary ays-button ays-loader-banner ays-bottom-menu-save-and-close ays-bottom-menu-buttons', 'ays_submit', false, $save_close_bottom_attributes);
7397 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
7398 ?>
7399 </div>
7400 </div>
7401 </div>
7402 </div>
7403 <div>
7404 <hr>
7405 <!-- <div class="form-group row ays-poll-general-bundle-container">
7406 <div class="col-sm-12 ays-poll-general-bundle-box">
7407 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
7408 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank"><img src="<?php //echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/black_friday_banner_logo.png"></a>
7409 </div>
7410 <div class="ays-poll-general-bundle-row">
7411 <div class="ays-poll-general-bundle-text">
7412 <?php //echo esc_html__( "Do not miss", $this->plugin_name ); ?>
7413 <span><?php //echo esc_html__( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
7414 <?php //echo esc_html__( "on Poll Maker plugin!", $this->plugin_name ); ?>
7415 <span class="ays-poll-general-bundle-color">
7416 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo esc_html__( "Poll Maker", $this->plugin_name ); ?></a>
7417 </span> <?php //echo esc_html__( "plugin!", $this->plugin_name ); ?>
7418 </div>
7419 <p><?php //echo esc_html__( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
7420 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
7421 <div><a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo esc_html__( "Discount 20% OFF", $this->plugin_name ); ?></a></div>
7422 </div>
7423 </div>
7424 <div class="ays-poll-general-bundle-row">
7425 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
7426 </div>
7427 </div>
7428 </div> -->
7429 <?php if($id === null): ?>
7430 <div class="ays_poll_layer_container">
7431 <div class="ays_poll_layer_content">
7432 <div class="ays_poll_layer_box">
7433 <div class="ays-poll-close-layer">
7434 <div class="ays-poll-choose-type">
7435 <p style="margin: 0;"><?php echo esc_html__('Choose Your Poll Type', "poll-maker"); ?></p>
7436 </div>
7437 <div class="ays-poll-close-type">
7438 <a href="?page=poll-maker-ays">
7439 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7440 </a>
7441 </div>
7442 </div>
7443 <div class="ays_poll_layer_box_blocks">
7444 <label class='ays-poll-dblclick-layer'>
7445 <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
7446 <div class="ays_poll_layer_item" >
7447 <div class="ays_poll_layer_item_logo" >
7448 <div class="ays_poll_layer_item_logo_overlay
7449 ays_poll_layer_item_logo_overlay_choosing" >
7450 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/choosing.png' ?>"
7451 alt="<?php echo esc_html__('Choosing', "poll-maker") ?>">
7452 </div>
7453 </div>
7454 <div class="ays_poll_layer_item_title">
7455 <p style="margin:0px;"><?php echo esc_html__('Choosing', "poll-maker") ?><p>
7456 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/image-choosing/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7457 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7458 </div>
7459 <div class="ays_poll_layer_item_description"></div>
7460 </div>
7461 </label>
7462 <label class='ays-poll-dblclick-layer'>
7463 <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'rating') ? 'checked' : '' ?> >
7464 <div class="ays_poll_layer_item">
7465 <div class="ays_poll_layer_item_logo">
7466 <div class="ays_poll_layer_item_logo_overlay
7467 ays_poll_layer_item_logo_overlay_rating">
7468 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/rating.png' ?>"
7469 alt="<?php echo esc_html__('Rating', "poll-maker") ?>">
7470 </div>
7471 </div>
7472 <div class="ays_poll_layer_item_title">
7473 <p style="margin:0px;"><?php echo esc_html__('Rating', "poll-maker") ?><p>
7474 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/rating-polls-rating-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7475 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7476 </div>
7477 <div class="ays_poll_layer_item_description"></div>
7478 </div>
7479 </label>
7480 <label class='ays-poll-dblclick-layer'>
7481 <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'text') ? 'checked' : '' ?> >
7482 <div class="ays_poll_layer_item">
7483 <div class="ays_poll_layer_item_logo">
7484 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
7485
7486 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Text.png' ?>"
7487 alt="<?php echo esc_html__('Text', "poll-maker") ?>">
7488 </div>
7489 </div>
7490 <div class="ays_poll_layer_item_title">
7491 <p style="margin:0px;"><?php echo esc_html__('Text', "poll-maker") ?><p>
7492 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/open-ended-question-polls-text-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7493 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7494 </div>
7495 <div class="ays_poll_layer_item_description"></div>
7496 </div>
7497 </label>
7498 <label class='ays-poll-dblclick-layer'>
7499 <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'voting') ? 'checked' : '' ?> >
7500 <div class="ays_poll_layer_item">
7501 <div class="ays_poll_layer_item_logo">
7502 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
7503 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/voting.png' ?>" alt="<?php echo esc_html__('Voting', "poll-maker") ?>">
7504 </div>
7505 </div>
7506 <div class="ays_poll_layer_item_title">
7507 <p style="margin:0px;"><?php echo esc_html__('Voting', "poll-maker") ?><p>
7508 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/voting-polls-voting-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7509 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7510 </div>
7511 <div class="ays_poll_layer_item_description"></div>
7512 </div>
7513 </label>
7514 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7515 <!-- <input type="radio" value="select" > -->
7516 <div class="ays_poll_layer_item">
7517 <span class="ays_poll_layer_item_pro_version">
7518 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7519 PRO
7520 </a>
7521 </span>
7522 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7523 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
7524
7525 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Dropdown.png' ?>"
7526 alt="<?php echo esc_html__('Dropdown', "poll-maker") ?>">
7527 </div>
7528 </div>
7529 <div class="ays_poll_layer_item_title">
7530 <p style="margin:0px;">
7531 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7532 <?php echo esc_html__('Dropdown', "poll-maker") ?>
7533 </a>
7534 <p>
7535 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/anonymous-polls-dropdown-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7536 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7537 </div>
7538 <div class="ays_poll_layer_item_description"></div>
7539 </div>
7540 </label>
7541 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7542 <!-- <input value="range" type="radio"> -->
7543 <div class="ays_poll_layer_item">
7544 <span class="ays_poll_layer_item_pro_version">
7545 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7546 PRO
7547 </a>
7548 </span>
7549 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7550 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
7551
7552 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/range.png' ?>"
7553 alt="<?php echo esc_html__('Range', "poll-maker") ?>">
7554 </div>
7555 </div>
7556 <div class="ays_poll_layer_item_title">
7557 <p style="margin:0px;">
7558 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7559 <?php echo esc_html__('Range', "poll-maker") ?>
7560 </a>
7561 <p>
7562 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/slider-rating-polls-slider-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7563 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7564 </div>
7565 <div class="ays_poll_layer_item_description"></div>
7566 </div>
7567 </label>
7568 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7569 <!-- <input value="versus" type="radio"> -->
7570 <div class="ays_poll_layer_item">
7571 <span class="ays_poll_layer_item_pro_version">
7572 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7573 PRO
7574 </a>
7575 </span>
7576 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7577 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" >
7578
7579 <span>VS</span>
7580 </div>
7581 </div>
7582 <div class="ays_poll_layer_item_title">
7583 <p style="margin:0px;">
7584 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7585 <?php echo esc_html__('Versus', "poll-maker") ?>
7586 </a>
7587 <p>
7588 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/versus-poll-versus-type/" style="font-size:14px;" target="_blank"><?php echo esc_html__('View demo', "poll-maker"); ?></a>
7589 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7590 </div>
7591 <div class="ays_poll_layer_item_description"></div>
7592 </div>
7593 </label>
7594 </div>
7595 <div class="ays_poll_select_button_layer">
7596 <div class="ays_poll_select_button_item">
7597 <input type="button" class="ays_poll_layer_button" name="" value="<?php echo esc_attr__('Next', "poll-maker"); ?>" data-type="<?php echo $poll['type']; ?>">
7598 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7599 </div>
7600 </div>
7601 </div>
7602 </div>
7603 </div>
7604 <?php else: ?>
7605 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7606 <?php endif; ?>
7607 </form>
7608 <div class="ays-modal" id="pro-features-popup-modal">
7609 <div class="ays-modal-content">
7610 <!-- Modal Header -->
7611 <div class="ays-modal-header">
7612 <span class="ays-close-pro-popup">&times;</span>
7613 <!-- <h2></h2> -->
7614 </div>
7615
7616 <!-- Modal body -->
7617 <div class="ays-modal-body">
7618 <div class="row">
7619 <div class="col-sm-6 pro-features-popup-modal-left-section">
7620 </div>
7621 <div class="col-sm-6 pro-features-popup-modal-right-section">
7622 <div class="pro-features-popup-modal-right-box">
7623 <div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div>
7624
7625 <div class="pro-features-popup-modal-right-box-title"></div>
7626
7627 <div class="pro-features-popup-modal-right-box-content"></div>
7628
7629 <div class="pro-features-popup-modal-right-box-button">
7630 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7631 </div>
7632 </div>
7633 <div class="pro-features-popup-modal-right-box-footer-text">
7634 <span class="ays_poll_small_hint_text_for_message_variables"><?php echo esc_html__( "One-time payment", 'poll-maker' ); ?></span>
7635 </div>
7636 </div>
7637 </div>
7638 </div>
7639
7640 <!-- Modal footer -->
7641 <div class="ays-modal-footer" style="display:none">
7642 </div>
7643 </div>
7644 </div>
7645 </div>
7646 </div>