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

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

7,645 lines 666.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $wpdb;
3 $action = (isset($_GET['action'])) ? sanitize_text_field($_GET['action']) : '';
4 $active_tab = (!empty($_GET['active-tab'])) ? sanitize_text_field($_GET['active-tab']) : 'General';
5 $heading = '';
6 $loader_iamge = '';
7 $image_text =esc_html__('Add Image', "poll-maker");
8 $image_text_bg =esc_html__('Add Image', "poll-maker");
9 $image_text_logo =esc_html__('Add Image', "poll-maker");
10
11 $acordion_svg_html_allow = array(
12 'div' => array(
13 'class' => array()
14 ),
15 'svg' => array(
16 'class' => array(),
17 'version' => array(),
18 'xmlns' => array(),
19 'xmlns:xlink' => array(),
20 'overflow' => array(),
21 'preserveAspectRatio' => array(),
22 'viewBox' => array(),
23 'width' => array(),
24 'height' => array()
25 ),
26 'g' => array(),
27 'path' => array(
28 'xmlns:default' => array(),
29 'd' => array(),
30 'fill' => array(),
31 'vector-effect' => array()
32 )
33 );
34
35 $poll_acordion_svg_html = '
36 <div class="ays-poll-accordion-arrow-box">
37 <svg class="ays-poll-accordion-arrow ays-poll-accordion-arrow-active" version="1.2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" overflow="visible" preserveAspectRatio="none" viewBox="0 0 24 24" width="32" height="32">
38 <g>
39 <path xmlns:default="http://www.w3.org/2000/svg" d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" fill="#c4c4c4" vector-effect="non-scaling-stroke" />
40 </g>
41 </svg>
42 </div>';
43
44 $id = (isset($_GET['poll'])) ? absint(intval($_GET['poll'])) : null;
45
46 if ($action == 'edit') {
47 if ($id === null || $id === 0) {
48 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
49 wp_safe_redirect($url);
50 }
51 }
52
53 $user_id = get_current_user_id();
54 $user = get_userdata($user_id);
55 $users_table = esc_sql( $wpdb->prefix . 'users' );
56 // $sql_users = "SELECT ID, display_name FROM {$users_table}";
57 // $ays_poll_wp_users = $wpdb->get_results($sql_users, "ARRAY_A");
58 $author = array(
59 'id' => $user->ID,
60 'name' => $user->data->display_name
61 );
62
63 $cat_list = get_categories(
64 array(
65 'hide_empty' => false
66 )
67 );
68
69 $poll_category_page_url = admin_url( 'admin.php?page=poll-maker-ays-cats' );
70
71 $poll_message_vars = array(
72 '%%user_name%%' =>esc_html__("User Name", "poll-maker"),
73 '%%user_email%%' =>esc_html__("User Email", "poll-maker"),
74 '%%user_phone%%' =>esc_html__("User Phone", "poll-maker"),
75 '%%poll_title%%' =>esc_html__("Poll title", "poll-maker"),
76 '%%poll_id%%' =>esc_html__("Poll ID", "poll-maker"),
77 '%%users_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
78 '%%users_last_name%%' =>esc_html__("User's Last Name", "poll-maker"),
79 '%%creation_date%%' =>esc_html__("Creation date of the poll", "poll-maker"),
80 '%%current_date%%' =>esc_html__("Current Date", "poll-maker"),
81 '%%current_time%%' =>esc_html__("Current Time", "poll-maker"),
82 '%%current_day%%' =>esc_html__("Current Day", "poll-maker"),
83 '%%current_month%%' =>esc_html__("Current Month", "poll-maker"),
84 '%%current_poll_author%%' =>esc_html__("Author of the current poll", "poll-maker"),
85 '%%current_poll_author_email%%' =>esc_html__("Author's Email of the current poll", "poll-maker"),
86 '%%current_poll_author_nickname%%' =>esc_html__("Author's Nick Name of the current poll", "poll-maker"),
87 '%%current_poll_author_display_name%%' =>esc_html__("Author's Display Name of the current poll", "poll-maker"),
88 '%%current_poll_author_website_url%%' =>esc_html__("Author's Website URl of the current poll", "poll-maker"),
89 '%%current_poll_author_registered%%' =>esc_html__("Author's Registered Date of the current poll", "poll-maker"),
90 '%%admin_email%%' =>esc_html__("Admin Email", "poll-maker"),
91 '%%user_wordpress_roles%%' =>esc_html__("User's Wordpress Roles", "poll-maker"),
92 "%%user_wordpress_email%%" =>esc_html__("User's WordPress profile email", "poll-maker"),
93 '%%user_wordpress_website%%' =>esc_html__("User's Wordpress Website", "poll-maker"),
94 '%%user_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
95 '%%user_display_name%%' =>esc_html__("User's Display Name", "poll-maker"),
96 '%%user_nickname%%' =>esc_html__("User's Nick Name", "poll-maker"),
97 '%%user_ip_address%%' =>esc_html__("User's IP address", "poll-maker"),
98 '%%user_id%%' =>esc_html__("User's ID", "poll-maker"),
99 '%%user_registered%%' =>esc_html__("User's Registered Date", "poll-maker"),
100 '%%poll_pass_count%%' =>esc_html__("Polls pass count", "poll-maker"),
101 '%%passed_poll_count_per_user%%' =>esc_html__("Passed polls count per user", "poll-maker"),
102 '%%current_poll_page_link%%' =>esc_html__("Current polls posted link", "poll-maker"),
103 '%%post_title%%' =>esc_html__("Post Title", "poll-maker"),
104 '%%post_author_email%%' =>esc_html__("Post Author Email", "poll-maker"),
105 '%%post_author_display_name%%' =>esc_html__("Post Author Display Name", "poll-maker"),
106 '%%post_author_first_name%%' =>esc_html__("Post Author First Name", "poll-maker"),
107 '%%post_author_last_name%%' =>esc_html__("Post Author Last Name", "poll-maker"),
108 '%%post_author_nickname%%' =>esc_html__("Post Author Nickname", "poll-maker"),
109 '%%post_author_website_url%%' =>esc_html__("Post Author Website URL", "poll-maker"),
110 '%%post_author_roles%%' =>esc_html__("Post Author Roles", "poll-maker"),
111 '%%post_id%%' =>esc_html__("Post ID", "poll-maker"),
112 '%%site_title%%' =>esc_html__("Site Title", "poll-maker"),
113 '%%site_description%%' =>esc_html__("Site Description", "poll-maker"),
114 '%%home_page_url%%' =>esc_html__("Home Page", "poll-maker"),
115 );
116
117 $poll_message_vars_html = $this->ays_poll_generate_message_vars_html( $poll_message_vars );
118
119
120 $poll = array(
121 'title' => 'Default title',
122 'description' => '',
123 'categories' => array(),
124 'image' => '',
125 'question' => '',
126 'type' => 'choosing',
127 'view_type' => '',
128 'answers' => array(),
129 'show_title' => 1,
130 'styles' => '',
131 'custom_css' => '',
132 'theme_id' => 1,
133 );
134 $default_colors = array(
135 "main_color" => "#0C6291",
136 "text_color" => "#0C6291",
137 "icon_color" => "#0C6291",
138 "box_shadow_color" => "#000000",
139 "bg_color" => "#FBFEF9",
140 "answer_bg_color" => "#FBFEF9",
141 "answer_hover_color" => "#0C6291",
142 "title_bg_color" => "",
143 "border_color" => "#0C6291",
144 );
145 $default_options = array(
146 'randomize_answers' => 'off',
147 "icon_size" => 24,
148 "width" => 600,
149 "width_for_mobile" => '',
150 "btn_text" =>esc_html__('Vote', "poll-maker"),
151 "see_res_btn_text" =>esc_html__('See Results', "poll-maker"),
152 "border_style" => "ridge",
153 "border_radius" => 0,
154 "border_width" => 2,
155 "enable_box_shadow" => "",
156 "bg_image" => "",
157 "hide_results" => 0,
158 "hide_results_text" => "<p style='text-align: center'>" .esc_html__("Thanks for your answer!", "poll-maker") . "</p>",
159 "allow_not_vote" => 0,
160 "show_social" => 0,
161 "poll_show_social_ln" => "on",
162 "poll_show_social_fb" => "on",
163 "poll_show_social_tr" => "on",
164 "poll_show_social_vk" => "off",
165 "load_effect" => "load_gif",
166 "load_gif" => "plg_default",
167 'limit_users' => 0,
168 "limitation_message" => "<p style='text-align: center'>" .esc_html__("You have already voted", "poll-maker") . "</p>",
169 'redirect_url' => '',
170 'redirection_delay' => '',
171 'users_role' => '',
172 'enable_restriction_pass' => 0,
173 'restriction_pass_message' => "<p style='text-align: center'>" .esc_html__("You don't have permissions for passing the poll", "poll-maker") . "</p>",
174 'enable_logged_users' => 0,
175 'enable_logged_users_message' => "<p style='text-align: center'>" .esc_html__('You must sign in for passing the poll', "poll-maker") . "</p>",
176 'notify_email_on' => 0,
177 'notify_email' => '',
178 'result_sort_type' => 'none',
179 'redirect_after_submit' => 0,
180 'redirect_users' => 0,
181 'redirect_after_vote_url' => '',
182 'redirect_after_vote_delay' => '',
183 'published' => 1,
184 'enable_pass_count' => 'on',
185 'activeInterval' => '',
186 'create_date' => current_time( 'mysql' ),
187 'author' => $author,
188 'deactiveInterval' => '',
189 'enable_background_gradient' => 'off',
190 'background_gradient_color_1' => '#103251',
191 'background_gradient_color_2' => '#607593',
192 'poll_gradient_direction' => 'vertical',
193 'activeIntervalSec' => '',
194 'deactiveIntervalSec' => '',
195 'active_date_check' => '',
196 'active_date_message_soon' => "<p style='text-align: center'>" .esc_html__("The poll will be available soon!", "poll-maker") . "</p>",
197 'active_date_message' => "<p style='text-align: center'>" .esc_html__("The poll has expired!", "poll-maker") . "</p>",
198 'enable_restart_button' => 0,
199 'enable_vote_btn' => 1,
200 'show_votes_count' => 1,
201 'show_res_percent' => 1,
202 'poll_direction' => 'ltr',
203 'info_form' => 0,
204 'fields' => 'apm_name,apm_email,apm_phone',
205 'required_fields' => 'apm_email',
206 'info_form_title' => "<h5>" .esc_html__("Please fill out the form:", "poll-maker") . "</h5>",
207 'disable_answer_hover' => 0,
208 'enable_asnwers_sound' => 'off',
209 'poll_bg_image_position' => 'center center',
210 'poll_bg_img_in_finish_page' => 'off',
211 'ays_add_post_for_poll' => 'off',
212 'result_in_rgba' => 'off',
213 'answer_sort_type' => 'default',
214 'answer_font_size' => '16',
215 'poll_answer_font_size_mobile' => '16',
216 'show_passed_users' => 'off',
217 'logo_image' => '',
218 'dont_show_poll_cont' => 'off',
219 'show_votes_before_voting' => 'off',
220 'show_votes_before_voting_by' => 'by_count',
221 'see_result_button' => 'on',
222 'see_result_radio' => 'ays_see_result_button',
223 'loader_font_size' => '64',
224 'show_answers_numbering' => 'none',
225 'poll_box_shadow_x_offset' => 0,
226 'poll_box_shadow_y_offset' => 0,
227 'poll_box_shadow_z_offset' => 15,
228 'poll_question_size_pc' => 16,
229 'poll_question_size_mobile' => 16,
230 'poll_question_image_object_fit' => "cover",
231 'poll_title_font_size' => 20,
232 'poll_title_font_size_mobile' => 20,
233 'poll_title_font_weight' => "normal",
234 'poll_title_font_weight_mobile' => "normal",
235 'poll_title_alignment' => "center",
236 'poll_title_alignment_mobile' => "center",
237 'poll_title_text_transform' => "none",
238 'poll_text_type_length_enable' => "off",
239 'poll_text_type_limit_type' => "characters",
240 'poll_text_type_limit_length' => "",
241 'poll_text_type_limit_message' => "off",
242 'poll_text_type_placeholder' => "Your answer",
243 'poll_text_type_width' => "",
244 'poll_text_type_width_type' => "percent",
245 'poll_enable_password' => "off",
246 'poll_password' => "",
247 'poll_enable_password_visibility' => "off",
248 'poll_password_message' => 'Please enter password',
249 'poll_answer_enable_box_shadow' => "off",
250 'poll_answer_box_shadow_color' => "#000000",
251 'poll_answer_box_shadow_x_offset' => 0,
252 'poll_answer_box_shadow_y_offset' => 0,
253 'poll_answer_box_shadow_z_offset' => 10,
254 'poll_answer_border_radius' => 0,
255 'poll_enable_answer_image_after_voting' => "off",
256 'enable_poll_title_text_shadow' => 'off',
257 'poll_title_text_shadow' => 'rgba(255,255,255,0)',
258 'poll_title_text_shadow_x_offset' => 2,
259 'poll_title_text_shadow_y_offset' => 2,
260 'poll_title_text_shadow_z_offset' => 0,
261 'display_fields_labels' => 'off',
262 'autofill_user_data' => 'off',
263 'poll_create_author' => $user_id,
264 'poll_main_url' => '',
265 'poll_logo_url_new_tab' => 'off',
266 'show_chart_type' => 'google_bar_chart',
267 );
268
269 $settings_options = $this->settings_obj->ays_get_setting('options');
270 if($settings_options){
271 $settings_options = json_decode($settings_options, true);
272 }else{
273 $settings_options = array();
274 }
275 $loader_iamge_allow = array(
276 'span' => array(
277 'class' => array()
278 ),
279 'img' => array(
280 'src' => array(),
281 'class' => array()
282 )
283 );
284 switch ( $action ) {
285 case 'add':
286 $heading =esc_html__('Add new poll', "poll-maker");
287 $options = array_merge($default_options, $default_colors);
288 $loader_iamge = "<span class='display_none'><img src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
289 // Default category
290 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
291
292 $poll['categories'] = $poll_default_cat;
293
294 // Default type
295 $poll_default_type = isset($settings_options['default_type']) && $settings_options['default_type'] != '' ? esc_attr($settings_options['default_type']) : "choosing";
296 $poll['type'] = $poll_default_type;
297
298 $ays_check_post = '';
299 break;
300 case 'edit':
301 $heading =esc_html__('Edit poll', "poll-maker");
302 $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".esc_url(POLL_MAKER_AYS_ADMIN_URL)."/images/loaders/loading.gif></span>";
303 $poll = $this->polls_obj->get_poll_by_id($id);
304 $post_id = !empty($poll) ? $poll['post_id'] : '';
305 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
306 $ays_poll_view_post_url = get_permalink($post_id);
307 $ays_poll_edit_post_url = get_edit_post_link($post_id);
308
309 if (empty($poll)) {
310 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
311 wp_safe_redirect($url);
312 }
313
314 $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
315 break;
316 default:
317 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
318 wp_safe_redirect($url);
319 break;
320 }
321 $enable_pass_count = $options['enable_pass_count'];
322 $categories = $this->polls_obj->get_categories();
323 global $wp_roles;
324 $ays_users_roles = $wp_roles->roles;
325
326 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
327 $this->polls_obj->add_or_edit_polls($_POST, $id);
328 }
329
330 if (isset($_POST['ays_apply_top']) || isset($_POST['ays_apply'])) {
331 $this->polls_obj->add_or_edit_polls($_POST, $id, "apply");
332 }
333
334 if (isset($_POST['ays_poll_cancel']) || isset($_POST['ays_poll_cancel_top']) ) {
335 unset($_GET['page']);
336 $url = remove_query_arg( array_keys($_GET) );
337 wp_redirect( $url );
338 }
339
340 $style = "display: none;";
341 $style_bg = "display: none;";
342 $style_bg_options = "display: none;";
343 $style_logo = "display: none;";
344 $style_logo_check = false;
345 if (isset($poll['image']) && !empty($poll['image'])) {
346
347 $style = "display: block;";
348 $image_text =esc_html__('Edit Image', "poll-maker");
349 }
350 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
351 $style_bg = "display: flex;";
352 $style_bg_options = "display: block;";
353 $image_text_bg =esc_html__('Edit Image', "poll-maker");
354 }
355 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
356 $style_logo = "display: block;";
357 $style_logo_check = true;
358 $image_text_logo =esc_html__('Edit Image', "poll-maker");
359 }
360
361 $published = $options['published'];
362
363
364 if (!empty($options['activeInterval']) && !empty($options['deactiveInterval'])) {
365 $activateTime = strtotime($options['activeInterval']);
366 $activePoll = date('Y-m-d', $activateTime);
367 $deactivateTime = strtotime($options['deactiveInterval']);
368 $deactivePoll = date('Y-m-d', $deactivateTime);
369 } else {
370 $activePoll = date('Y-m-d');
371 $deactivePoll = date('Y-m-d');
372 }
373
374 $activePollSec = isset($options['activeIntervalSec']) && !empty($options['activeIntervalSec']) ? $options['activeIntervalSec'] : '';
375 $deactivePollSec = isset($options['deactiveIntervalSec']) && !empty($options['deactiveIntervalSec']) ? $options['deactiveIntervalSec'] : '';
376
377 $activePoll = $activePoll . " " . $activePollSec;
378 $deactivePoll = $deactivePoll . " " . $deactivePollSec;
379
380 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
381
382 $all_fields = array(
383 array(
384 "name" =>esc_html__("Name", "poll-maker"),
385 "slug" => "apm_name",
386 ),
387 array(
388 "name" =>esc_html__("Email", "poll-maker"),
389 "slug" => "apm_email",
390 ),
391 array(
392 "name" =>esc_html__("Phone", "poll-maker"),
393 "slug" => "apm_phone",
394 ),
395 );
396
397
398 //INTEGRATIONS
399 $poll_settings = $this->settings_obj;
400
401 $asnwers_sound = (isset($settings_options['answers_sound']) && $settings_options['answers_sound'] != '') ? true : false;
402
403 $answer_default_count = (isset($settings_options['answer_default_count']) && $settings_options['answer_default_count'] != '') ? $settings_options['answer_default_count'] : 2;
404
405 $answers_sound_status = false;
406 if($asnwers_sound){
407 $answers_sound_status = true;
408 }
409
410 // WP Editor height
411 $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 ;
412
413 // Answers sound option
414 $options['enable_asnwers_sound'] = isset($options['enable_asnwers_sound']) ? $options['enable_asnwers_sound'] : 'off';
415 $enable_asnwers_sound = (isset($options['enable_asnwers_sound']) && $options['enable_asnwers_sound'] == "on") ? true : false;
416
417 $mailchimp_res = ($poll_settings->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $poll_settings->ays_get_setting('mailchimp');
418 $mailchimp = json_decode($mailchimp_res, true);
419 $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '';
420 $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '';
421 $mailchimp_lists = $mailchimp_api_key ? $this->ays_get_mailchimp_lists($mailchimp_username, $mailchimp_api_key) : array();
422 $mailchimp_select = array();
423 if (!empty($mailchimp_lists) && isset($mailchimp_lists['total_items']) && $mailchimp_lists['total_items'] > 0) {
424 foreach ( $mailchimp_lists['lists'] as $list ) {
425 $mailchimp_select[] = array(
426 'listId' => $list['id'],
427 'listName' => $list['name']
428 );
429 }
430 } else {
431 $mailchimp_select =esc_html__("There are no lists", "poll-maker");
432 }
433
434 // MailChimp
435 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
436 $mailchimp_list = (isset($options['mailchimp_list'])) ? $options['mailchimp_list'] : '';
437
438
439 $fields = !empty($options['fields']) ? explode(",", $options['fields']) : array();
440 $required_fields = !empty($options['required_fields']) ? explode(",", $options['required_fields']) : array();
441
442 // Show votes count
443 $options['show_votes_count'] = isset($options['show_votes_count']) ? $options['show_votes_count'] : 1;
444 $showvotescount = isset($options['show_votes_count']) && intval($options['show_votes_count']) == 1 ? true : false;
445
446 // Show result percent
447 $options['show_res_percent'] = isset($options['show_res_percent']) ? $options['show_res_percent'] : 1;
448 $show_res_percent = isset($options['show_res_percent']) && intval($options['show_res_percent']) == 1 ? true : false;
449
450 // Show result button after schedule
451 $options['show_result_btn_schedule'] = isset($options['show_result_btn_schedule']) ? $options['show_result_btn_schedule'] : 0;
452 $showresbtnschedule = isset($options['show_result_btn_schedule']) && intval($options['show_result_btn_schedule']) == 1 ? true : false;
453
454 $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';
455
456 $schedule_show_timer = isset($options['ays_poll_show_timer']) && intval($options['ays_poll_show_timer']) == 1 ? true : false;
457
458 $show_timer_type = isset($options['ays_show_timer_type']) && !empty($options['ays_show_timer_type'])? $options['ays_show_timer_type'] : 'countdown';
459
460 $show_bottom_timer = isset($options['show_bottom_timer']) && intval($options['show_bottom_timer']) == 1 ? true : false;
461
462 // Show login form for not logged in users
463 $options['show_login_form'] = isset($options['show_login_form']) ? $options['show_login_form'] : 'off';
464 $show_login_form = (isset($options['show_login_form'] ) && $options['show_login_form'] == "on") ? true : false;
465
466 // Redirect after voting
467 $options['redirect_users'] = isset($options['redirect_users']) ? $options['redirect_users'] : 0;
468 $redirect_users = (isset($options['redirect_users']) && $options['redirect_users'] == 1) ? true : false;
469
470 // Results notification by email
471 $options['notify_email_on'] = isset($options['notify_email_on']) ? $options['notify_email_on'] : 0;
472 $notify_email_on = (isset($options['notify_email_on']) && $options['notify_email_on'] == 1) ? true : false;
473
474 // Background gradient
475 $options['enable_background_gradient'] = (!isset($options['enable_background_gradient'])) ? 'off' : $options['enable_background_gradient'];
476 $enable_background_gradient = (isset($options['enable_background_gradient']) && $options['enable_background_gradient'] == 'on') ? true : false;
477
478 $background_gradient_color_1 = (isset($options['background_gradient_color_1']) && $options['background_gradient_color_1'] != '' && $enable_background_gradient) ? $options['background_gradient_color_1'] : '#103251';
479 $background_gradient_color_2 = (isset($options['background_gradient_color_2']) && $options['background_gradient_color_2'] != '' && $enable_background_gradient) ? $options['background_gradient_color_2'] : '#607593';
480 $poll_gradient_direction = (isset($options['poll_gradient_direction']) && $options['poll_gradient_direction'] != '') ? $options['poll_gradient_direction'] : 'vertical';
481
482
483 // Redirect after submit
484 $options['redirect_after_submit'] = (!isset($options['redirect_after_submit'])) ? 0 : $options['redirect_after_submit'];
485 $redirect_after_submit = (isset($options['redirect_after_submit']) && $options['redirect_after_submit'] == 1) ? true : false;
486 $submit_redirect_url = isset($options['ays_submit_redirect_url']) ? $options['ays_submit_redirect_url'] : '';
487 // $submit_redirect_delay = isset($options['submit_redirect_delay']) ? $options['submit_redirect_delay'] : '';
488
489 $users_role = (isset($options['users_role']) && $options['users_role'] != "") ? json_decode($options['users_role'], true) : array();
490
491 $options['enable_answer_style'] = isset($options['enable_answer_style']) ? $options['enable_answer_style'] : 'on';
492
493 // $poll_create_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : "0000-00-00 00:00:00";
494
495 $change_creation_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : current_time( 'mysql' );
496
497
498 // Bg image positioning
499 $poll_bg_image_position = (isset($options['poll_bg_image_position']) && $options['poll_bg_image_position'] != '') ? $options['poll_bg_image_position'] : "center center";
500
501 $poll_bg_img_in_finish_page = (isset($options['poll_bg_img_in_finish_page']) && $options['poll_bg_img_in_finish_page'] == "on") ? true : false;
502
503 if(isset($options['author']) && $options['author'] != 'null'){
504 if ( ! is_array( $options['author'] ) ) {
505 $options['author'] = json_decode($options['author'], true);
506 $poll_author = $options['author'];
507 } else {
508 $poll_author = array_map( 'stripslashes', $options['author'] );
509 }
510 } else {
511 $poll_author = array('name' => 'Unknown');
512 }
513
514 $show_create_date = (isset($options['show_create_date']) && $options['show_create_date'] == 1) ? true : false;
515 $show_author = (isset($options['show_author']) && $options['show_author'] == 1) ? true : false;
516
517 $custom_class = (isset($options['custom_class']) && $options['custom_class'] != "") ? $options['custom_class'] : '';
518
519 // Results bar in RGBA
520 $options['result_in_rgba'] = isset($options['result_in_rgba']) ? $options['result_in_rgba'] : 'off';
521 $result_in_rgba = (isset($options['result_in_rgba']) && $options['result_in_rgba'] == "on") ? true : false;
522
523 // Enable View more button
524 $options['enable_view_more_button'] = isset($options['enable_view_more_button']) ? $options['enable_view_more_button'] : 'off';
525 $enable_view_more_button = (isset($options['enable_view_more_button']) && $options['enable_view_more_button'] == 'on' ) ? true : false;
526 $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;
527
528
529 // Poll Min Height
530 $poll_min_height = (isset($options['poll_min_height']) && $options['poll_min_height'] != '') ? absint(intval($options['poll_min_height'])) : '';
531
532 // Poll answer font size
533 $poll_answer_font_size = (isset($options['answer_font_size']) && $options['answer_font_size'] != '') ? esc_html($options['answer_font_size']) : '15';
534
535 // Poll answers font size on mobile
536 $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';
537
538 // Poll show passed users
539 $poll_show_passed_users = isset($options['show_passed_users']) ? esc_html($options['show_passed_users']) : 'off';
540 $poll_show_passed_users_checked = isset($poll_show_passed_users) && $poll_show_passed_users == 'on' ? 'checked' : '';
541 $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;
542
543 // Poll Logo image
544 $poll_logo_image = isset($options['logo_image']) && $options['logo_image'] != '' ? esc_url($options['logo_image']) : '';
545 $poll_check_logo = isset($poll_logo_image) && $poll_logo_image != '' ? true : false;
546 $poll_logo_img = $poll_check_logo ? 'ays_logo_image_on' : 'display_none';
547 $poll_logo_for_live_container = $poll_check_logo ? 'ays_logo_cont_image_on' : '';
548
549 //
550
551 $checking_answer_hover_live = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
552
553 // Poll schedule container on/off
554 $poll_check_exp_cont = (isset($options['dont_show_poll_cont']) && $options['dont_show_poll_cont'] == 'on') ? 'checked' : '';
555
556 // Poll see results button in limitations
557 $poll_see_result_button = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? 'checked' : '';
558 $poll_see_result_button_check = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? true : false;
559 $poll_see_result_button_cont = (isset($options['see_result_button']) && $options['see_result_button'] != 'on') ? 'ays_poll_display_none' : '';
560 $poll_see_result_radio = (isset($options['see_result_radio']) && $options['see_result_radio'] != '') ? esc_attr($options['see_result_radio']) : 'ays_see_result_button';
561 $poll_see_result_botton_show = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_button' ? 'checked' : '';
562 $poll_see_result_immediately = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_immediately' ? 'checked' : '';
563
564 // Loader font size
565 $poll_loader_font_size = (isset($options['loader_font_size']) && $options['loader_font_size'] != '') ? esc_attr($options['loader_font_size']) : '64';
566 $poll_loader_size_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "display_none";
567 $poll_loader_size_line_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "ays_hr_display_none";
568
569 // Show answers numbering
570 $show_answers_numbering = (isset($options['show_answers_numbering']) && sanitize_text_field( $options['show_answers_numbering'] ) != '') ? sanitize_text_field( $options['show_answers_numbering'] ) : 'none';
571
572 // Default border color
573 $main_color = isset($options['main_color']) && $options['main_color'] != "" ? $options['main_color'] : $default_colors['main_color'];
574 $default_border = isset($options['border_color']) && $options['border_color'] != "" ? $options['border_color'] : $main_color;
575
576 // Poll load effect message
577 $poll_effect_message = isset($options['effect_message']) && $options['effect_message'] != "" ? $options['effect_message'] : "";
578
579 // Poll title
580 $poll_title = isset($poll['title']) && $poll['title'] != "" ? stripslashes(htmlentities($poll['title'])) : "Default title";
581
582 // Box shadow coords
583 // Box Shadow X offset
584 $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;
585
586 // Box Shadow Y offset
587 $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;
588
589 // Box Shadow Z offset
590 $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;
591
592 // Poll Vote Reason
593 $poll_vote_reason = (isset($options['poll_vote_reason']) && $options['poll_vote_reason'] == 'on' ) ? "checked" : "";
594
595 // Allow multivote
596 $poll_allow_multivote = isset($options['poll_allow_multivote']) && $options['poll_allow_multivote'] == 'on' ? "checked" : "";
597 // Enable multivote answer
598 $poll_enable_multivote_answer = $poll_allow_multivote == "checked" ? true : false;
599
600 // Minimum count for multivote answer
601 $poll_multivote_min_count = (isset($options['multivote_answer_min_count']) && $options['multivote_answer_min_count'] != '') ? intval(esc_attr($options['multivote_answer_min_count'])) : '1';
602
603 // Count for multivote answer
604 $poll_multivote_answer_count = (isset($options['poll_allow_multivote_count']) && $options['poll_allow_multivote_count'] != '') ? intval(esc_attr($options['poll_allow_multivote_count'])) : '1';
605
606 // Allow collect user info
607 $poll_allow_collecting_users_data = (isset($options['poll_allow_collecting_users_data']) && $options['poll_allow_collecting_users_data'] == 'on') ? "checked" : "";
608
609 // Show answers icon
610 $poll_answer_icon_check = (isset($options['poll_answer_icon_check']) && $options['poll_answer_icon_check'] == 'on') ? true : false;
611 // Poll answer icon
612 $poll_answer_icon = isset($options['poll_answer_icon']) ? $options['poll_answer_icon'] : 'radio';
613
614 // Every Answer redirect delay
615 $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']) : "";
616
617 // Enable answer redirect delay
618 $poll_enable_answer_redirect_delay = isset($options['poll_enable_answer_redirect_delay']) && $options['poll_enable_answer_redirect_delay'] == "on" ? true : false;
619
620 // Show Answers image after voting
621 $poll_enable_answer_image_after_voting = isset($options['poll_enable_answer_image_after_voting']) && $options['poll_enable_answer_image_after_voting'] == "on" ? true : false;
622
623 // Poll logo image url
624 $poll_logo_image_url = isset($options['poll_logo_url']) && $options['poll_logo_url'] != "" ? esc_attr($options['poll_logo_url']) : "";
625
626 // Check if the poll logo URL is enabled
627 $poll_logo_image_url_check = isset($options['poll_enable_logo_url']) && $options['poll_enable_logo_url'] == "on" ? true : false;
628
629 // Poll question font size
630 $poll_question_font_size_pc = isset($options['poll_question_size_pc']) && $options['poll_question_size_pc'] != "" ? esc_attr($options['poll_question_size_pc']) : 16;
631
632 // Poll question font size for mobile
633 $poll_question_font_size_mobile = isset($options['poll_question_size_mobile']) && $options['poll_question_size_mobile'] != "" ? esc_attr($options['poll_question_size_mobile']) : 16;
634
635 // Poll question image height
636 $poll_question_image_height = isset($options['poll_question_image_height']) && $options['poll_question_image_height'] != "" ? esc_attr($options['poll_question_image_height']) : "";
637
638 // Poll container max-width for mobile
639 $poll_mobile_max_width = (isset($options['poll_mobile_max_width']) && $options['poll_mobile_max_width'] != "") ? esc_attr($options['poll_mobile_max_width']) : '';
640
641 // ==== BUTTON STYLES START ====
642 // Buttons font size
643 $poll_buttons_font_size = (isset($options['poll_buttons_font_size']) && $options['poll_buttons_font_size'] != "") ? esc_attr($options['poll_buttons_font_size']) : '17';
644
645 // Buttons text color
646 $poll_button_text_color = (isset($options['button_text_color']) && $options['button_text_color'] != "") ? $options['button_text_color'] : $options['bg_color'];
647
648 // Buttons background color
649 $poll_button_bg_color = (isset($options['button_bg_color']) && $options['button_bg_color'] != "") ? $options['button_bg_color'] : $main_color;
650
651 // Buttons mobile font size
652 $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';
653
654 // Buttons Left / Right padding
655 $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';
656
657 // Buttons Top / Bottom padding
658 $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';
659
660 // Buttons border radius
661 $poll_buttons_border_radius = (isset($options['poll_buttons_border_radius']) && $options['poll_buttons_border_radius'] != "") ? esc_attr($options['poll_buttons_border_radius']) : '3';
662
663 // Buttons Width
664 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
665
666 // Buttons mobile width
667 $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;
668
669 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
670 // ==== BUTTON STYLES END ====
671
672 // ==== Allow Answer options ====
673 // Allow custom answer
674 $poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : "";
675 // Require admin approval
676 $poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : "";
677
678 // ==== ====
679
680 // Poll answer view type
681 $poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list";
682
683 // Poll answer image height
684 $poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150";
685
686 // Poll answer image height for mobile
687 $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";
688
689 // Poll answer image border radius
690 $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;
691
692 // Poll question image object fit
693 $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";
694
695 // Poll answer image object fit
696 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
697
698 // Poll answer padding
699 $poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10";
700
701 // Poll 1 column in mobile
702 $options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on';
703 $answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false;
704
705 // Poll answer gap
706 $poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10";
707
708 // Poll title font size
709 $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";
710
711 // Poll title font size for mobile
712 $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";
713
714 // Poll title font weight
715 $poll_title_font_weight = (isset($options['poll_title_font_weight']) && $options['poll_title_font_weight'] != "") ? esc_attr($options['poll_title_font_weight']) : "normal";
716
717 // Poll title font weight mobile
718 $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;
719
720 // Poll title alignment
721 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
722
723 // Poll title alignment mobile
724 $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;
725
726 // Poll title text transform
727 $poll_title_text_transform = ( isset($options['poll_title_text_transform']) && $options['poll_title_text_transform'] != "" ) ? esc_attr($options['poll_title_text_transform']) : "none";
728
729 // Poll view type
730 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
731
732
733 $options['show_votes_before_voting'] = isset($options['show_votes_before_voting']) ? $options['show_votes_before_voting'] : 'off';
734 $show_votes_before_voting = (isset($options['show_votes_before_voting']) && $options['show_votes_before_voting'] == 'on') ? true : false;
735 $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';
736
737
738
739 // ===== Poll text type options start =====
740 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
741 $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";
742 $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']) : "";
743 $poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false;
744 $poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : "";
745 $poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : "";
746 $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";
747 // ===== Poll text type options end =====
748
749 $poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false;
750 // Enable toggle password visibility
751 $options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off';
752 $poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false;
753 $poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : "";
754 $poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password";
755
756 // == Poll answer box shadow ==
757 // Poll answer box shadow enable
758 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
759 // Poll answer box shadow color
760 $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";
761 // answer hover color
762 $answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color'];
763 // answer bg color
764 $answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)";
765 // Poll answer box shadow parameters
766 $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;
767
768 $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;
769
770 $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;
771
772 // Poll answer box shadow color
773 $poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0;
774
775 $poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false;
776 $poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : '';
777 $poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false;
778 $poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false;
779 $poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false;
780 $poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false;
781
782 // Title text shadow
783 $options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off';
784
785 $enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false;
786
787 $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)';
788
789 $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;
790
791 $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;
792
793 $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;
794
795 // Display form fields labels
796 $options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off';
797 $display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false;
798
799 // Autofill user data
800 $options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off';
801 $autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false;
802
803 // Change the author of the current poll
804 $change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id;
805 $get_current_poll_author_data = get_userdata($change_poll_create_author);
806
807 // Poll main url
808 $poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : '';
809
810 //Open logo URL in new tab
811 $poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : "";
812
813 //Poll Logo title
814 $poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : '';
815
816 //Poll mobile width
817 $width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : '';
818
819 // Social Media links
820 $enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false;
821 $social_links = (isset($options['social_links'])) ? $options['social_links'] : array(
822 'linkedin_link' => '',
823 'facebook_link' => '',
824 'twitter_link' => '',
825 'vkontakte_link' => '',
826 'instagram_link' => '',
827 'youtube_link' => '',
828 'tiktok_link' => '',
829 );
830 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
831 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
832 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
833 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
834 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
835 $tiktok_link = isset($social_links['tiktok_link']) && $social_links['tiktok_link'] != '' ? $social_links['tiktok_link'] : '';
836 $instagram_link = isset($social_links['instagram_link']) && $social_links['instagram_link'] != '' ? $social_links['instagram_link'] : '';
837 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
838
839 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
840 $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;
841
842 $next_poll_id = "";
843 $prev_poll_id = '';
844 if ( isset( $id ) && !is_null( $id ) ) {
845 $next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" );
846 $next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null;
847
848 $prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" );
849 $prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null;
850
851 }
852
853 $get_all_polls = Poll_Maker_Data::get_all_polls();
854
855 ?>
856 <!--LIVE PREVIEW STYLES-->
857 <?php
858 $emoji = array(
859 "<i class='ays_poll_far ays_poll_fa-dizzy'></i>",
860 "<i class='ays_poll_far ays_poll_fa-smile'></i>",
861 "<i class='ays_poll_far ays_poll_fa-meh'></i>",
862 "<i class='ays_poll_far ays_poll_fa-frown'></i>",
863 "<i class='ays_poll_far ays_poll_fa-tired'></i>",
864 ); ?>
865 <style>
866 /*save changing properties of poll in the css-variables*/
867 :root {
868 /*colors*/
869 --theme-main-color: <?php echo esc_attr($options['main_color']); ?>;
870 --theme-bg-color: <?php echo esc_attr($options['bg_color']); ?>;
871 --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']); ?>;
872 --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']); ?>;
873 --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']); ?>;
874 --theme-text-color: <?php echo esc_attr($options['text_color']); ?>;
875 --theme-button-text-color: <?php echo esc_attr($options['bg_color']); ?>;
876 --theme-icon-color: <?php echo esc_attr($options['icon_color']); ?>;
877 /*options*/
878 --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
879 --poll-border-style: <?php echo esc_attr($options['border_style']); ?>;
880 --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
881 --poll-border-width: <?php echo absint($options['border_width']); ?>px;
882 --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' : ''; ?>;
883 --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . esc_url($options['bg_image']) . ")" : "unset"; ?>;
884 --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
885 --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
886 --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
887
888 }
889
890
891 input[type='button'].ays-poll-btn{
892 font-size: <?php echo esc_attr($poll_buttons_font_size); ?>px;
893 padding: <?php echo esc_attr($poll_buttons_top_bottom_padding). "px ". esc_attr($poll_buttons_left_right_padding). "px"; ?>;
894 border-radius: <?php echo esc_attr($poll_buttons_border_radius); ?>px;
895 width: <?php echo esc_attr($poll_buttons_width); ?>px;
896 }
897
898 @media (max-width: 768px) {
899 input[type='button'].ays-poll-btn{
900 width: <?php echo esc_attr($poll_buttons_mobile_width); ?>px;
901 }
902 }
903 </style>
904 <!--LIVE PREVIEW STYLES END-->
905 <div class="wrap">
906 <div class="ays-poll-heading-box">
907 <div class="ays-poll-wordpress-user-manual-box">
908 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
909 <i class="ays_poll_fas ays_fa_file_text"></i>
910 <span style="margin-left: 3px;text-decoration: underline;"><?php echo esc_html__("View Documentation", "poll-maker"); ?></span>
911 </a>
912 </div>
913 </div>
914 <div class="container-fluid">
915 <form class="ays-poll-form" id="ays-poll-form" method="post">
916 <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo esc_attr($active_tab); ?>"/>
917 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
918 <input type="hidden" name="ays_poll_author" value="<?php echo esc_attr(json_encode($poll_author)); ?>">
919 <input type="hidden" id="poll_choose_type_first" value="<?php echo esc_attr($poll['type']); ?>" >
920 <h1 class="wp-heading-inline">
921 <?php
922 echo esc_html($heading);
923 ?>
924 </h1>
925 <div>
926 <div class="ays-poll-subtitle-main-box">
927 <p class="ays-subtitle ays-poll-open-list">
928 <strong class="ays_poll_title_in_top"><?php echo esc_html($poll['title']); ?></strong>
929 <?php if(isset($id) && count($get_all_polls) > 1):?>
930 <img class="ays-poll-open-polls-list" src="<?php echo esc_url( POLL_MAKER_AYS_ADMIN_URL ) .'/images/icons/list-icon.svg'; ?>">
931 <?php endif; ?>
932 </p>
933 <?php if(isset($id) && count($get_all_polls) > 1):?>
934 <div class="ays-poll-polls-data">
935 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
936 <?php ?>
937 <label class="ays-poll-message-vars-each-data-label">
938 <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">
939 <div class="ays-poll-polls-each-data">
940 <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo esc_attr($var); ?>">
941 <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>
942 </div>
943 </label>
944 <?php endforeach ?>
945 </div>
946 <?php endif; ?>
947 </div>
948 <?php if($id !== null): ?>
949 <div class="row">
950 <div class="col-sm-3">
951 <label> <?php echo esc_html__( "Shortcode text for editor", "poll-maker" ); ?> </label>
952 </div>
953 <div class="col-sm-9">
954 <p style="font-size:14px; font-style:italic;">
955 <?php echo esc_html__("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
956 <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>
957 <?php echo " " .esc_html__( "and paste it at the desired place in the editor.", "poll-maker"); ?>
958 </p>
959 </div>
960 </div>
961 <?php endif;?>
962 </div>
963 <hr>
964 <div class='ays-all-container'>
965 <div class='ays-all-sub-container'>
966 <div class="ays-top-menu-wrapper">
967 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
968 <div class="ays-top-menu">
969 <div class="nav-tab-wrapper ays-top-tab-wrapper">
970 <a href="#tab1" data-title="General"
971 class="nav-tab <?php echo $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
972 <?php echo esc_html__('General', "poll-maker"); ?>
973 </a>
974 <a href="#tab2" data-title="Styles"
975 class="nav-tab <?php echo $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
976 <?php echo esc_html__('Styles', "poll-maker"); ?>
977 </a>
978 <a href="#tab3" data-title="Settings"
979 class="nav-tab <?php echo $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
980 <?php echo esc_html__('Settings', "poll-maker"); ?>
981 </a>
982 <a href="#tab8" data-title="Results Settings"
983 class="nav-tab <?php echo $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
984 <?php echo esc_html__('Results Settings', "poll-maker"); ?>
985 </a>
986 <a href="#tab4" data-title="Limitations"
987 class="nav-tab <?php echo $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
988 <?php echo esc_html__("Limitations", "poll-maker"); ?>
989 </a>
990 <a href="#tab5" data-title="Userdata"
991 class="nav-tab <?php echo $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
992 <?php echo esc_html__('User Data', "poll-maker"); ?>
993 </a>
994 <a href="#tab6" data-title="Email"
995 class="nav-tab <?php echo $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
996 <?php echo esc_html__('Email', "poll-maker"); ?>
997 </a>
998 <a href="#tab7" data-title="Integrations"
999 class="nav-tab <?php echo $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
1000 <?php echo esc_html__('Integrations', "poll-maker"); ?>
1001 </a>
1002 </div>
1003 <div class='top-menu-buttons-container'>
1004 <?php
1005 echo wp_kses($loader_iamge, $loader_iamge_allow);
1006 $save_attributes = array(
1007 'id' => 'ays-button-top-apply',
1008 'title' => 'Ctrl + s',
1009 'data-toggle' => 'tooltip',
1010 'data-delay'=> '{"show":"1000"}'
1011 );
1012 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
1013 $save_close_attributes = array('id' => 'ays-button-top');
1014 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);
1015 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
1016 ?>
1017 </div>
1018 </div>
1019 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
1020 </div>
1021 <div id="tab1" class="ays-poll-tab-content <?php echo $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
1022 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
1023 <p class="ays-subtitle" style="margin-bottom:0;">
1024 <?php echo esc_html__('General options', "poll-maker"); ?>
1025 </p>
1026 <?php if ($poll_main_url != ''): ?>
1027 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
1028 <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;">
1029 <i class="fa fa-eye" aria-hidden="true"></i>
1030 <span style="margin-left: 5px;"><?php echo esc_html__( 'View', "poll-maker" ); ?></span>
1031 </a>
1032 </div>
1033 <?php endif; ?>
1034 </div>
1035 <hr>
1036 <div class="form-group row">
1037 <div class="col-sm-3">
1038 <label for='ays-poll-title'>
1039 <?php echo esc_html__('Title', "poll-maker"); ?>
1040 <a class="ays_help" data-toggle="tooltip"
1041 data-placement="top"
1042 title="<?php echo esc_html__("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
1043 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1044 </a>
1045 </label>
1046 </div>
1047 <div class="col-sm-9 ays_divider_left">
1048 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
1049 data-required="false" value="<?php echo esc_attr($poll_title); ?>"/>
1050 </div>
1051 </div>
1052 <hr>
1053 <div class="form-group row" style="display: flex;">
1054 <div class="col-sm-3">
1055 <label for='ays-poll-question'>
1056 <?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"); ?>">
1057 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1058 </a>
1059 <a href="javascript:void(0)" class="add-question-image button">
1060 <?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"); ?>">
1061 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1062 </a></a>
1063 </label>
1064 <div class="ays-poll-question-image-container" style="<?php echo esc_attr($style); ?>">
1065 <span class="ays-remove-question-img"></span>
1066 <img src="<?php echo $poll['image']; ?>" id="ays-poll-img"/>
1067 <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?php echo $poll['image']; ?>"/>
1068 </div>
1069 </div>
1070 <div class="col-sm-9">
1071 <?php
1072 $content = stripslashes($poll["question"]);
1073 $editor_id = 'ays-poll-question';
1074 $settings = array(
1075 'editor_height' => $poll_wp_editor_height,
1076 'textarea_name' => 'ays_poll_question',
1077 'editor_class' => 'ays-textarea',
1078 'media_buttons' => true,
1079 'tinymce' => array(
1080 "init_instance_callback" => "function(editor) {
1081 editor.on('Change', function(e) {
1082 document.querySelector('.box-apm .ays_question').innerHTML = e.level.content;
1083 });
1084 }",
1085 )
1086 );
1087 wp_editor($content, $editor_id, $settings);
1088 ?>
1089 </div>
1090 </div>
1091 <hr>
1092
1093 <?php if ($poll['type'] == 'choosing') : ?>
1094 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
1095 <div class="col-sm-3">
1096 <label for="ays-poll-answer" >
1097 <?php echo esc_html__('Options', "poll-maker"); ?>
1098 </label>
1099 </div>
1100 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1101 <div>
1102 <div class='add-option-top-container'>
1103 <a class="ays-add-answer ays-click-once" id='add-answer'>
1104 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1105 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1106 </a>
1107 </div>
1108 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1109 <thead>
1110 <tr class="ui-state-default">
1111 <th class="th-150"><?php echo esc_html__('Ordering', "poll-maker"); ?></th>
1112 <th style="width: 100vw;"><?php echo esc_html__('Option', "poll-maker"); ?></th>
1113 <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>
1114 <th class="th-150 only_pro"><?php echo esc_html__('Image', "poll-maker"); ?></th>
1115 <th class="th-150"><?php echo esc_html__('Delete', "poll-maker"); ?></th>
1116 </tr>
1117 </thead>
1118 <tbody class="">
1119 <?php
1120 $answers = $poll['answers'];
1121 $answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count;
1122 $loop_iteration = 0;
1123 $rows_count = count($answers);
1124 $ays_key_enter = "";
1125 $user_add_html = '';
1126 $user_add_html_allow = array(
1127 'input' => array(
1128 'type' => array(),
1129 'class' => array(),
1130 'style' => array(),
1131 'title' => array(),
1132 'checked' => array()
1133 )
1134 );
1135 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1136 foreach ($answers as $index => $answer) {
1137 $user_add_html = '';
1138 $class = (($index + 1) % 2 == 0) ? "even" : "";
1139 $answer_val = stripslashes(htmlentities($answer["answer"]));
1140 $answer_id = $answer["id"];
1141 $answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;';
1142 $answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img'];
1143 $answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : '';
1144 $user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false;
1145 $show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false;
1146
1147 if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on")
1148 && (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) {
1149 $disable_show_user_added = '';
1150 }else{
1151 $disable_show_user_added = 'display: none;';
1152 }
1153
1154 $show_user_added_checkbox = '';
1155 if ($show_user_added == 1) {
1156 $show_user_added_checkbox = 'checked';
1157 }
1158 if ( $user_added ) {
1159 $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 .' />';
1160 }
1161
1162 if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){
1163 $check_show_user_added = "1";
1164 }elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) {
1165 $check_show_user_added = "0";
1166 }else{
1167 $check_show_user_added = "1";
1168 }
1169
1170 if($loop_iteration == $rows_count - 1){
1171 $ays_key_enter = "ays_poll_enter_key";
1172 }
1173 $loop_iteration++;
1174 ?>
1175 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($class); ?>">
1176 <td class="ays-sort">
1177 <div class='ays_poll_move_arrows'></div>
1178 <td>
1179 <div class="ays_poll_display_flex">
1180 <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) ?>" />
1181 <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); ?>">
1182 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1183 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($index);?>" value="<?php echo esc_attr($answer_id); ?>">
1184 </div>
1185 </td>
1186 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1187 <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); ?>"/>
1188 </td>
1189 <td>
1190 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1191 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1192 </label>
1193 <div class="ays-poll-answer-image-container" style="<?php echo esc_attr($answer_img_class); ?>">
1194 <span class="ays-poll-remove-answer-img"></span>
1195 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1196 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1197 </div>
1198 </td>
1199 <td>
1200 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo esc_attr($index);?>" data-lid="<?php echo esc_attr($index);?>">
1201 </a>
1202 </td>
1203 </tr>
1204 <?php
1205 }
1206 ?>
1207 <?php
1208 else:
1209 for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) :
1210 if($loop_iteration == intval($answer_default_count) - 1){
1211 $ays_key_enter = "ays_poll_enter_key";
1212 }
1213 $loop_iteration++;
1214 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1215 ?>
1216 <tr class="ays-answer-row ui-state-default <?php echo esc_attr($ays_even_or_not); ?>">
1217 <td class="ays-sort">
1218 <div class='ays_poll_move_arrows'></div>
1219 </td>
1220 <td class="ays-choosing-answer-container">
1221 <div class="ays_poll_display_flex">
1222 <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)); ?>">
1223 <?php echo wp_kses($user_add_html, $user_add_html_allow); ?>
1224 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo esc_attr($dac_i);?>" value="0">
1225 </div>
1226 </td>
1227 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1228 <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=""/>
1229 </td>
1230 <td>
1231 <label class='ays-label' for='ays-answer'>
1232 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
1233 </label>
1234 <div class="ays-poll-answer-image-container" style="display:none;">
1235 <span class="ays-poll-remove-answer-img"></span>
1236 <img src="" class="ays-poll-answer-img"/>
1237 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/>
1238 </div>
1239 </td>
1240
1241 <td>
1242 <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);?>">
1243 </a>
1244 </td>
1245 </tr>
1246 <?php
1247 endfor;
1248 endif;
1249 ?>
1250 </tbody>
1251 </table>
1252 <div class='add-option-top-container'>
1253 <a class="ays-add-answer" id='add-answer'>
1254 <img src= "<?php echo (esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/icons/plus.svg') ?>" class='plus-sign'>
1255 <span><?php echo esc_html__('Add Option', "poll-maker"); ?></span>
1256 </a>
1257 </div>
1258 <input type="hidden" id="ays_poll_answers_count" value="<?php echo esc_attr($answers_count); ?>">
1259 <input type="hidden" id="ays_answer_checker" value="<?php echo esc_attr($checking_answer_hover_live); ?>">
1260 </div>
1261
1262 </div>
1263 </div>
1264 <?php endif; ?>
1265 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1266 <div class="form-group row" style="display: flex;">
1267 <div class="col-sm-3">
1268 <label for="ays-poll-answer" >
1269 <?php echo esc_html__('Option Settings', "poll-maker")?>
1270 </label>
1271 </div>
1272 <div class="col-sm-9">
1273 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
1274 <div class="col-sm-12">
1275 <div class="form-group row">
1276 <div class="col-1">
1277 <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' : '' ?>/>
1278 </div>
1279 <div class="col-4 unset-padding-left">
1280 <label for="ays_redirect_after_submit" >
1281 <?php echo esc_html__('Answer Redirection', "poll-maker")?>
1282 <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")?>">
1283 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1284 </a>
1285 </label>
1286 </div>
1287 </div>
1288 </div>
1289 </div>
1290 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1291 <div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent">
1292 <div class="col-sm-12">
1293 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1294 <div class="col-1">
1295 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1296 value="on" <?php echo esc_attr($poll_allow_answer) ?>>
1297 </div>
1298 <div class="col-4 unset-padding-left">
1299 <label for="ays_poll_allow_add_answers">
1300 <?php echo esc_html__('Allow custom answer', "poll-maker"); ?>
1301 <a class="ays_help" data-toggle="tooltip"
1302 data-placement="top"
1303 title="<?php echo esc_html__("Allow users to add their custom answer.", "poll-maker"); ?>">
1304 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1305 </a>
1306 </label>
1307 </div>
1308 <div class="col-7 allow_add_answers_not_show_up_container">
1309 <div class="ays_toggle_target" <?php echo esc_attr($poll_allow_answer) ? '' : 'style="display:none;"'; ?>>
1310 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1311 <div class="col-2 ays_divider_left">
1312 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1313 value="on" <?php echo esc_attr($poll_allow_answer_require) ?> />
1314 </div>
1315 <div class="col-10">
1316 <label for="ays_poll_allow_answer_require">
1317 <?php echo esc_html__('Require admin approval', "poll-maker"); ?>
1318 <a class="ays_help" data-toggle="tooltip"
1319 data-placement="top"
1320 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"); ?>">
1321 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1322 </a>
1323 </label>
1324 </div>
1325 <?php
1326 $poll_answers = $poll['answers'];
1327 $is_user_added_exist = 0;
1328 foreach ($poll_answers as $index => $answer) {
1329 if($answer['user_added'] == 1) {
1330 $is_user_added_exist++;
1331 }
1332 }
1333 if($is_user_added_exist > 0):
1334 ?>
1335 <div class="col-12 row ays_toggle_target" <?php echo ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1336 <div class="col-2 ays_divider_left" style="align-items: center;">
1337 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1338 </div>
1339 <div class="col-10">
1340 <label for="ays_poll_require_approve_select_all">
1341 <?php echo esc_html__('Select all', "poll-maker"); ?>
1342 <a class="ays_help" data-toggle="tooltip"
1343 data-placement="top"
1344 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"); ?>">
1345 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1346 </a>
1347 </label>
1348 </div>
1349 </div>
1350 <?php
1351 endif;
1352 ?>
1353 </div>
1354 </div>
1355 </div>
1356 </div>
1357 </div>
1358 </div> <!-- Allow custom answer -->
1359 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1360 <div class="if-voting poll-type-block form-group row">
1361 <div class="col-sm-3">
1362 <label for="ays-poll-vote-type">
1363 <?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"); ?>">
1364 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1365 </a></label>
1366 </div>
1367 <div class="col-sm-9 answers-col">
1368 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1369 <option value='hand' <?php echo $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1370 <?php echo esc_html__('Hand', "poll-maker"); ?>
1371 </option>
1372 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1373 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1374 </option>
1375 </select>
1376 <?php
1377 switch ($poll['view_type']) {
1378 case 'hand':
1379 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1380 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1381 break;
1382
1383 case 'emoji':
1384 $vote_res = 'ays_poll_fas ays_poll_fa-smile';
1385 $rate_res = 'ays_poll_fas ays_poll_fa-smile';
1386 break;
1387
1388 case 'star':
1389 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1390 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1391 break;
1392
1393 default:
1394 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1395 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1396 break;
1397 }
1398 ?>
1399 <i id="vote-res" class="<?php echo esc_attr($vote_res); ?>"></i>
1400 </div>
1401 </div>
1402 <div class="if-rating poll-type-block form-group row">
1403 <div class="col-sm-3">
1404 <label for="ays-poll-rate-type">
1405 <?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"); ?>">
1406 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1407 </a></label>
1408 </div>
1409 <div class="col-sm-9 answers-col">
1410 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1411 <option value='star' <?php echo $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1412 <?php echo esc_html__('Stars', "poll-maker"); ?>
1413 </option>
1414 <option value="emoji" <?php echo $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1415 <?php echo esc_html__('Emoji', "poll-maker"); ?>
1416 </option>
1417 </select>
1418 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1419 <option value="<?php echo count($poll['answers']); ?>" selected>
1420 <?php echo count($poll['answers']); ?>
1421 </option>
1422 </select>
1423 <i id="rate-res" class="<?php echo esc_attr($rate_res); ?>"></i>
1424 </div>
1425 </div>
1426 <hr class="if-voting if-rating">
1427 <div class="form-group row">
1428 <div class="col-sm-12 only_pro" style="padding:15px;">
1429 <div class="pro_features pro_features_popup">
1430 <div class="pro-features-popup-conteiner">
1431 <div class="pro-features-popup-title">
1432 <?php echo esc_html__("Add Fake Votes", "poll-maker"); ?>
1433 </div>
1434 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1435 <p>
1436 <?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"); ?>
1437 </p>
1438 </div>
1439 <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 ); ?>">
1440 <?php echo esc_html__("Pricing", "poll-maker"); ?>
1441 </div>
1442 </div>
1443 </div>
1444 <div class="pro_features" style="justify-content:flex-end;">
1445 </div>
1446 <div class="form-group row">
1447 <div class="col-1">
1448 <input type="checkbox" name="ays_add_f_votes"
1449 value="on">
1450 </div>
1451 <div class="col-11 unset-padding-left">
1452 <label for="ays_add_f_votes">
1453 <?php echo esc_html__('Add fake votes', "poll-maker"); ?>
1454 <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"); ?>">
1455 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1456 </a>
1457 </label>
1458 </div>
1459 </div>
1460 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1461 <div class="ays-poll-new-upgrade-button-box">
1462 <div>
1463 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1464 <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">
1465 </div>
1466 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1467 </div>
1468 </a>
1469 <div class="ays-poll-new-watch-video-button-box">
1470 <div>
1471 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
1472 <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">
1473 </div>
1474 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
1475 </div>
1476 </div>
1477 </div>
1478 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1479 <div class="if-text poll-type-block form-group row">
1480 <div class="col-sm-3">
1481 <label for="">
1482 <?php echo esc_html__('Choose text type', "poll-maker"); ?>
1483 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1484 <?php echo esc_html__( 'Choose the type of the question:' , "poll-maker" ); ?>
1485 <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>
1486 <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>">
1487 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1488 </a>
1489 </label>
1490 </div>
1491 <div class="col-sm-9 answers-col row">
1492 <div class="d-flex" style="padding: 0 15px;">
1493 <div class="form-check-inline">
1494 <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" : ""; ?>>
1495 <label for="ays_poll_text_type_short"><?php echo esc_html__("Short text", "poll-maker");?>
1496 </label>
1497 </div>
1498 <div class="form-check-inline">
1499 <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" : ""; ?>>
1500 <label for="ays_poll_text_type_paragraph"><?php echo esc_html__("Paragraph", "poll-maker");?>
1501 </label>
1502 </div>
1503 </div>
1504 </div>
1505 </div>
1506 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1507 <div class="if-text poll-type-block form-group row">
1508 <div class="col-sm-3">
1509 <label for='ays_poll_text_type_placeholder'>
1510 <?php echo esc_html__("Placeholder", "poll-maker"); ?>
1511 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1512 title="<?php echo esc_html__("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1513 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1514 </a>
1515 </label>
1516 </div>
1517 <div class="col-sm-3 ays_divider_left">
1518 <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo esc_attr($poll_text_type_placeholder); ?>">
1519 </div>
1520 </div>
1521 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1522 <div class="if-text poll-type-block form-group row">
1523 <div class="col-sm-3">
1524 <label for='ays_poll_text_type_width'>
1525 <?php echo esc_html__("Width", "poll-maker"); ?>
1526 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1527 title="<?php echo esc_html__("Specify the width of the text field.", "poll-maker"); ?>">
1528 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1529 </a>
1530 </label>
1531 </div>
1532 <div class="col-sm-3 ays_divider_left">
1533 <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo esc_attr($poll_text_type_width); ?>">
1534 </div>
1535 <div class="col-sm-6">
1536 <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">
1537 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
1538 <option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option>
1539 </select>
1540 </div>
1541 </div>
1542 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1543 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1544 <div class="col-sm-3">
1545 <label for="ays_poll_enable_question_length">
1546 <?php echo esc_html__('Maximum length of a text field', "poll-maker"); ?>
1547 <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" ); ?>">
1548 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1549 </a>
1550 </label>
1551 </div>
1552 <div class="col-sm-1 ays_divider_left">
1553 <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' : ''; ?>>
1554 </div>
1555 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1556 <div class="form-group row">
1557 <div class="col-sm-4">
1558 <label for="ays_poll_question_limit_text_type">
1559 <?php echo esc_html__('Limit by', "poll-maker"); ?>
1560 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred type of limitation.', "poll-maker"); ?>">
1561 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1562 </a>
1563 </label>
1564 </div>
1565 <div class="col-sm-8">
1566 <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%;">
1567 <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo esc_html__( 'Characters' , "poll-maker" ); ?></option>
1568 <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo esc_html__( 'Words' , "poll-maker" ); ?></option>
1569 </select>
1570 </div>
1571 </div>
1572 <hr>
1573 <div class="form-group row">
1574 <div class="col-sm-4">
1575 <label for="ays_poll_question_text_max_length">
1576 <?php echo esc_html__('Length', "poll-maker"); ?>
1577 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Indicate the length of the characters/words.', "poll-maker"); ?>">
1578 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1579 </a>
1580 </label>
1581 </div>
1582 <div class="col-sm-8">
1583 <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%;">
1584 </div>
1585 </div>
1586 <hr>
1587 <div class="form-group row">
1588 <div class="col-sm-4">
1589 <label for="ays_poll_question_enable_text_message">
1590 <?php echo esc_html__('Show word/character counter', "poll-maker"); ?>
1591 <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"); ?>">
1592 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1593 </a>
1594 </label>
1595 </div>
1596 <div class="col-sm-8">
1597 <div class="form-check form-check-inline">
1598 <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" : ""; ?> />
1599 </div>
1600 </div>
1601 </div>
1602 </div>
1603 </div>
1604 </div>
1605 </div>
1606 </div>
1607 <div id="tab2" class="ays-poll-tab-content <?php echo $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1608 <p class="ays-subtitle">
1609 <?php echo esc_html__('Styling options', "poll-maker"); ?>
1610 </p>
1611 <hr>
1612 <div class="form-group row ays-poll-all-themes-container">
1613 <div class="col-sm-1">
1614 <label for='ays-poll-theme' class="ays_label_flex">
1615 <?php echo esc_html__('Theme', "poll-maker"); ?>
1616 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1617 title="<?php echo esc_html__("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1618 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1619 </a>
1620 </label>
1621 </div>
1622 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1623 <div class="ays_poll_theme_image_div col">
1624 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1625 <p><?php echo esc_html__('Minimal', "poll-maker") ?></p>
1626 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/minimal.png' ?>"
1627 alt="<?php echo esc_html__('Minimal', "poll-maker") ?>">
1628 </label>
1629 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1630 value="3" <?php echo ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1631 </div>
1632 <div class="ays_poll_theme_image_div col">
1633 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1634 <p><?php echo esc_html__('Classic Light', "poll-maker") ?></p>
1635 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicLight.png' ?>"
1636 alt="<?php echo esc_html__('Classic Light', "poll-maker") ?>">
1637 </label>
1638 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1639 value="1" <?php echo ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1640 </div>
1641 <div class="ays_poll_theme_image_div col">
1642 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1643 <p><?php echo esc_html__('Classic Dark', "poll-maker") ?></p>
1644 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/ClassicDark.png' ?>"
1645 alt="<?php echo esc_html__('Classic Dark', "poll-maker") ?>">
1646 </label>
1647 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1648 value="2" <?php echo ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1649 </div>
1650 <div class="col">
1651 <div class="form-group row" style="margin: 0px;">
1652 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
1653 <div class="pro_features" style="justify-content:flex-end;">
1654 </div>
1655 <div class="ays_poll_theme_image_div_pro">
1656 <div class="ays_poll_theme_image_div col apm-pro-feature">
1657 <label class="ays-poll-theme-item">
1658 <p>Light Shape</p>
1659 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/LightShape.png' ?>"
1660 alt="Light Shape"
1661 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1662 </label>
1663 </div>
1664 <div class="ays_poll_theme_image_div col apm-pro-feature">
1665 <label class="ays-poll-theme-item">
1666 <p>Dark Shape</p>
1667 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/DarkShape.png' ?>"
1668 alt="Light Shape"
1669 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1670 </label>
1671 </div>
1672 <div class="ays_poll_theme_image_div col apm-pro-feature">
1673 <label class="ays-poll-theme-item">
1674 <p>Coffee Fluid</p>
1675 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/CoffeeFluid.png' ?>"
1676 alt="Coffee Fluid"
1677 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1678 </label>
1679 </div>
1680 <div class="ays_poll_theme_image_div col apm-pro-feature">
1681 <label class="ays-poll-theme-item">
1682 <p><?php echo esc_html__("Aquamarine", "poll-maker") ?></p>
1683 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/themes/Aquamarine.png' ?>"
1684 alt="Aquamarine"
1685 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>">
1686 </label>
1687 </div>
1688 </div>
1689 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1690 <div class="ays-poll-new-upgrade-button-box">
1691 <div>
1692 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1693 <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">
1694 </div>
1695 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
1696 </div>
1697 </a>
1698 </div>
1699 </div>
1700 </div>
1701 </div>
1702 </div>
1703 <hr>
1704 <div class="col ays-poll-styles-page-main-container">
1705 <div class="row">
1706 <div class="col-lg-6 col-sm-12">
1707 <div class="ays-poll-accordion-options-main-container">
1708 <div class="ays-poll-accordion-header">
1709 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
1710 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Poll styles', "poll-maker"); ?></p>
1711 </div>
1712 <hr class="ays-poll-bolder-hr"/>
1713 <div class="ays-poll-accordion-body">
1714 <div class="form-group row">
1715 <div class="col-sm-4">
1716 <label for='ays-poll-main-color'>
1717 <?php echo esc_html__('Main Color', "poll-maker"); ?>
1718 <a class="ays_help"
1719 data-toggle="tooltip"
1720 data-placement="top"
1721 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"); ?>">
1722 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1723 </a>
1724 </label>
1725 </div>
1726 <div class="col-sm-8 ays_divider_left">
1727 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1728 name='ays_poll_main_color'
1729 value="<?php echo !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1730 </div>
1731 </div>
1732 <hr>
1733 <div class="form-group row">
1734 <div class="col-sm-4">
1735 <label for='ays-poll-text-color'>
1736 <?php echo esc_html__('Text Color', "poll-maker"); ?>
1737 <a class="ays_help"
1738 data-toggle="tooltip"
1739 data-placement="top"
1740 title="<?php echo esc_html__("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1741 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1742 </a>
1743 </label>
1744 </div>
1745 <div class="col-sm-8 ays_divider_left">
1746 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1747 name='ays_poll_text_color'
1748 value="<?php echo !empty($options['text_color']) ? esc_attr($options['text_color']) : esc_attr($default_colors['text_color']); ?>"/>
1749 </div>
1750 </div>
1751 <hr>
1752 <div class="form-group row">
1753 <div class="col-sm-4">
1754 <label for='ays-poll-icon-color'>
1755 <?php echo esc_html__('Icons Color', "poll-maker"); ?>
1756 <a class="ays_help"
1757 data-toggle="tooltip"
1758 data-placement="top"
1759 title="<?php echo esc_html__("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1760 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1761 </a>
1762 </label>
1763 </div>
1764 <div class="col-sm-8 ays_divider_left">
1765 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1766 name='ays_poll_icon_color'
1767 value="<?php echo !empty($options['icon_color']) ? esc_attr($options['icon_color']) : esc_attr($default_colors['icon_color']); ?>"/>
1768 </div>
1769 </div>
1770 <hr>
1771 <div class="form-group row">
1772 <div class="col-sm-4">
1773 <label for='ays-poll-bg-color'>
1774 <?php echo esc_html__('Background Color', "poll-maker"); ?>
1775 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo esc_html__("Specify the background color of the poll.", "poll-maker"); ?>">
1776 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1777 </a>
1778 </label>
1779 </div>
1780 <div class="col-sm-8 ays_divider_left">
1781 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1782 name='ays_poll_bg_color'
1783 value="<?php echo !empty($options['bg_color']) ? esc_attr($options['bg_color']) : esc_attr($default_colors['bg_color']); ?>"/>
1784 </div>
1785 </div>
1786 <hr>
1787 <div class="form-group row">
1788 <div class="col-sm-4">
1789 <label for='ays-poll-bg-image'>
1790 <?php echo esc_html__('Background Image', "poll-maker"); ?>
1791 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1792 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"); ?>">
1793 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1794 </a>
1795 </label>
1796 </div>
1797 <div class="col-sm-8 ays_divider_left">
1798 <a href="javascript:void(0)" class="add-bg-image button">
1799 <?php echo esc_html($image_text_bg); ?>
1800 </a>
1801 <div class="form-group row" style="<?php echo esc_attr($style_bg); ?>">
1802 <div class="ays-poll-bg-image-container">
1803 <span class="ays-remove-bg-img"></span>
1804 <img src="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"
1805 id="ays-poll-bg-img"/>
1806 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1807 value="<?php echo isset($options['bg_image']) ? esc_attr($options['bg_image']) : ""; ?>"/>
1808 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1809 value="<?php echo isset($options['poll_bg_image_position']) ? esc_attr($options['poll_bg_image_position']) : ""; ?>"/>
1810 </div>
1811 </div>
1812 <div style="<?php echo esc_attr($style_bg_options); ?>" id="ays-poll-background-image-options">
1813 <hr>
1814 <div class="form-group row">
1815 <div class="col-sm-12">
1816 <label for="ays_poll_bg_image_position">
1817 <?php echo esc_html__( "Background image position", "poll-maker" ); ?>
1818 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The position of background image of the polls',"poll-maker")?>">
1819 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1820 </a>
1821 </label>
1822 <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;">
1823 <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo esc_html__( "Left Top", "poll-maker" ); ?></option>
1824 <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo esc_html__( "Left Center", "poll-maker" ); ?></option>
1825 <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Left Bottom", "poll-maker" ); ?></option>
1826 <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo esc_html__( "Center Top", "poll-maker" ); ?></option>
1827 <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo esc_html__( "Center Center", "poll-maker" ); ?></option>
1828 <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Center Bottom", "poll-maker" ); ?></option>
1829 <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo esc_html__( "Right Top", "poll-maker" ); ?></option>
1830 <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo esc_html__( "Right Center", "poll-maker" ); ?></option>
1831 <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo esc_html__( "Right Bottom", "poll-maker" ); ?></option>
1832 </select>
1833 </div>
1834 </div>
1835 <hr>
1836 <div class="form-group row">
1837 <div class="col-sm-8">
1838 <label for="ays_poll_bg_img_in_finish_page">
1839 <?php echo esc_html__( "Hide background image on result page", "poll-maker" ); ?>
1840 <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")?>">
1841 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1842 </a>
1843 </label>
1844 </div>
1845 <div class="col-sm-4">
1846 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1847 id="ays_poll_bg_img_in_finish_page"
1848 name="ays_poll_bg_img_in_finish_page"
1849 <?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/>
1850 <label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label>
1851 </div>
1852 </div>
1853 </div>
1854 </div>
1855 </div>
1856 <hr>
1857 <div class="form-group row">
1858 <div class="col-sm-4">
1859 <label for='ays_poll_enable_box_shadow'><?php echo esc_html__('Box shadow', "poll-maker"); ?>
1860 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1861 title="<?php echo esc_html__("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1862 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1863 </a>
1864 </label>
1865 </div>
1866 <div class="col-sm-8 ays_divider_left">
1867 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1868 id="ays_poll_enable_box_shadow"
1869 name="ays_poll_enable_box_shadow" <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1870 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1871 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1872 style="margin-top: 10px; padding-top: 10px; <?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1873 <label for="ays-poll-box-shadow-color">
1874 <?php echo esc_html__('Box shadow color', "poll-maker") ?>
1875 <a class="ays_help" data-toggle="tooltip"
1876 title="--><?php echo esc_html__('The shadow color of Poll container', "poll-maker") ?>">
1877 <i class="ays_fa ays_fa_info_circle"></i>
1878 </a>
1879 </label>
1880 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1881 name='ays_poll_box_shadow_color'
1882 value="<?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? esc_attr($options['box_shadow_color']) : '#000000'; ?>"/>
1883 </div>
1884 <!---->
1885 <hr class="ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1886 <div class="form-group row ays_toggle_target" style="<?php echo (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1887 <div class="col-sm-12">
1888 <div class="col-sm-3" style="display: inline-block;">
1889 <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); ?>" />
1890 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
1891 </div>
1892 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1893 <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); ?>" />
1894 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
1895 </div>
1896 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1897 <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); ?>" />
1898 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
1899 </div>
1900 </div>
1901 </div>
1902 <!---->
1903 </div>
1904 </div>
1905 <hr>
1906 <!-- ---------Aro start gradient -->
1907 <div class="form-group row">
1908 <div class="col-sm-4">
1909 <label for="ays-enable-background-gradient">
1910 <?php echo esc_html__('Background Gradient', "poll-maker")?>
1911 <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")?>">
1912 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1913 </a>
1914 </label>
1915 </div>
1916 <div class="col-sm-8 ays_divider_left">
1917 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1918 id="ays-enable-background-gradient"
1919 name="ays_enable_background_gradient"
1920 <?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/>
1921 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1922 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1923 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1924 <label for='ays-background-gradient-color-1'>
1925 <?php echo esc_html__('Color 1', "poll-maker"); ?>
1926 </label>
1927 <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); ?>"/>
1928 </div>
1929 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1930 <label for='ays-background-gradient-color-2'>
1931 <?php echo esc_html__('Color 2', "poll-maker"); ?>
1932 </label>
1933 <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); ?>"/>
1934 </div>
1935 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1936 <label for="ays_poll_gradient_direction">
1937 <?php echo esc_html__('Gradient direction',"poll-maker")?>
1938 </label>
1939 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1940 <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo esc_html__( 'Vertical', "poll-maker"); ?></option>
1941 <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo esc_html__( 'Horizontal', "poll-maker"); ?></option>
1942 <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>
1943 <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>
1944 </select>
1945 </div>
1946 </div>
1947 </div>
1948 </div>
1949 <hr>
1950 <div class="form-group row ays_toggle_parent">
1951 <div class="col-sm-4">
1952 <label for="ays_poll_image_text_logo">
1953 <?php echo esc_html__('Poll Logo', "poll-maker"); ?>
1954 <a class="ays_help" data-toggle="tooltip"
1955 data-placement="top"
1956 title="<?php echo esc_html__("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1957 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1958 </a>
1959 </label>
1960 </div>
1961 <div class="col-sm-8 ays_logo_container ays_divider_left">
1962 <div class="form-group row">
1963 <div class="col-sm-4">
1964 <a href="javascript:void(0)" class="add-logo-image button"><?php echo esc_html($image_text_logo); ?></a>
1965 </div>
1966 <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?php echo esc_attr($style_logo); ?>">
1967 <div class="ays-poll-logo-image-container">
1968 <div class="col-sm-3" style="padding:0;">
1969 <img src="<?php echo isset($options['logo_image']) ? esc_attr($options['logo_image']) : ""; ?>"
1970 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1971 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1972 value="<?php echo isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1973 </div>
1974 <div class="col-sm-9">
1975 <a href="javascript:void(0)" class="add-logo-remove-image button"><?php echo esc_html__("Remove", "poll-maker"); ?></a>
1976 </div>
1977 </div>
1978 </div>
1979 </div>
1980 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1981 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1982 <div class="col-sm-4 ">
1983 <label for="ays_disable_answer_hover">
1984 <?php echo esc_html__('Logo URL', "poll-maker"); ?>
1985 <a class="ays_help" data-toggle="tooltip"
1986 data-placement="top"
1987 title="<?php echo esc_html__("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1988 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1989 </a>
1990 </label>
1991 </div>
1992 <div class="col-sm-8 ays_divider_left">
1993 <input type="checkbox"
1994 name="ays_poll_logo_enable_image_url"
1995 id="ays_poll_logo_enable_image_url"
1996 value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>>
1997 <label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label>
1998 <hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>">
1999 <div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" >
2000 <input type="text"
2001 name="ays_poll_logo_image_url"
2002 id="ays_poll_logo_image_url"
2003 value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL">
2004 </div>
2005 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
2006 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
2007 <div class="col-sm-6">
2008 <label for="ays_poll_logo_enable_image_url_new_tab">
2009 <?php echo esc_html__('Open in a new tab', "poll-maker"); ?>
2010 <a class="ays_help" data-toggle="tooltip"
2011 data-placement="top"
2012 title="<?php echo esc_html__("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
2013 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2014 </a>
2015 </label>
2016 </div>
2017 <div class="col-sm-6">
2018 <input type="checkbox"
2019 name="ays_poll_logo_enable_image_url_new_tab"
2020 id="ays_poll_logo_enable_image_url_new_tab"
2021 value="on" class="ays_toggle ays_toggle_slide " <?php echo esc_attr($poll_logo_image_url_check_new_tab); ?>>
2022 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
2023 </div>
2024 </div>
2025 </div>
2026 </div>
2027 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2028 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
2029 <div class="col-sm-4">
2030 <label for="ays_poll_logo_title">
2031 <?php echo esc_html__('Logo title', "poll-maker"); ?>
2032 <a class="ays_help" data-toggle="tooltip"
2033 data-placement="top"
2034 title="<?php echo esc_html__("Specify the title of the Logo image.", "poll-maker"); ?>">
2035 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2036 </a>
2037 </label>
2038 </div>
2039 <div class="col-sm-8 ays_divider_left">
2040 <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); ?>">
2041 </div>
2042 </div>
2043 </div>
2044 </div>
2045 <!-- Poll logo start -->
2046 <hr>
2047 <div class="form-group row">
2048 <div class="col-sm-4">
2049 <label for='ays-poll-title-bg-color'>
2050 <?php echo esc_html__('Title Background Color', "poll-maker"); ?>
2051 <a class="ays_help"
2052 data-toggle="tooltip"
2053 data-placement="top"
2054 title="<?php echo esc_html__("Specify the background color of the title.", "poll-maker"); ?>">
2055 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2056 </a>
2057 </label>
2058 </div>
2059 <div class="col-sm-8 ays_divider_left">
2060 <input type="text" class="ays-text-input" data-alpha="true"
2061 id='ays-poll-title-bg-color'
2062 name='ays_poll_title_bg_color'
2063 value="<?php echo !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2064 </div>
2065 </div>
2066 <hr>
2067 <div class="form-group row">
2068 <div class="col-sm-4">
2069 <label for='ays_poll_title_font_size'>
2070 <?php echo esc_html__('Title font size', "poll-maker"); ?>
2071 <a class="ays_help"
2072 data-toggle="tooltip"
2073 data-placement="top"
2074 title="<?php echo esc_html__("Specify the font size of the title.", "poll-maker"); ?>">
2075 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2076 </a>
2077 </label>
2078 </div>
2079 <div class="col-sm-8 ays_divider_left">
2080 <div>
2081 <div>
2082 <label for='ays_poll_title_font_size'>
2083 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2084 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2085 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2086 </a>
2087 </label>
2088 </div>
2089 <div>
2090 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_title_font_size' name='ays_poll_title_font_size' value="<?php echo esc_attr($poll_title_font_size); ?>"/>
2091 </div>
2092 </div>
2093 <hr>
2094 <div>
2095 <div>
2096 <label for='ays_poll_title_font_size_mobile'>
2097 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2098 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2099 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2100 </a>
2101 </label>
2102 </div>
2103 <div>
2104 <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);?>">
2105 </div>
2106 </div>
2107 </div>
2108 </div>
2109 <hr>
2110 <div class="form-group row">
2111 <div class="col-sm-4">
2112 <label for='ays_poll_title_font_weight'>
2113 <?php echo esc_html__('Title font weight', "poll-maker"); ?>
2114 <a class="ays_help"
2115 data-toggle="tooltip"
2116 data-placement="top"
2117 title="<?php echo esc_html__("Specify the font weight of the title.", "poll-maker"); ?>">
2118 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2119 </a>
2120 </label>
2121 </div>
2122 <div class="col-sm-8 ays_divider_left">
2123 <div>
2124 <div>
2125 <label for='ays_poll_title_font_weight'>
2126 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2127 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for PC devices.', "poll-maker")?>">
2128 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2129 </a>
2130 </label>
2131 </div>
2132 <div>
2133 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight" name="ays_poll_title_font_weight">
2134 <option value="normal" <?php echo ($poll_title_font_weight == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2135 <option value="bold" <?php echo ($poll_title_font_weight == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2136 <option value="bolder" <?php echo ($poll_title_font_weight == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2137 <option value="100" <?php echo ($poll_title_font_weight == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2138 <option value="200" <?php echo ($poll_title_font_weight == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2139 <option value="300" <?php echo ($poll_title_font_weight == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2140 <option value="400" <?php echo ($poll_title_font_weight == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2141 <option value="500" <?php echo ($poll_title_font_weight == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2142 <option value="600" <?php echo ($poll_title_font_weight == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2143 <option value="700" <?php echo ($poll_title_font_weight == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2144 <option value="800" <?php echo ($poll_title_font_weight == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2145 <option value="900" <?php echo ($poll_title_font_weight == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2146 </select>
2147 </div>
2148 </div>
2149 <hr>
2150 <div>
2151 <div>
2152 <label for='ays_poll_title_font_weight_mobile'>
2153 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2154 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for mobile devices.', "poll-maker")?>">
2155 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2156 </a>
2157 </label>
2158 </div>
2159 <div>
2160 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight_mobile" name="ays_poll_title_font_weight_mobile">
2161 <option value="normal" <?php echo ($poll_title_font_weight_mobile == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2162 <option value="bold" <?php echo ($poll_title_font_weight_mobile == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2163 <option value="bolder" <?php echo ($poll_title_font_weight_mobile == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2164 <option value="100" <?php echo ($poll_title_font_weight_mobile == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2165 <option value="200" <?php echo ($poll_title_font_weight_mobile == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2166 <option value="300" <?php echo ($poll_title_font_weight_mobile == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2167 <option value="400" <?php echo ($poll_title_font_weight_mobile == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2168 <option value="500" <?php echo ($poll_title_font_weight_mobile == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2169 <option value="600" <?php echo ($poll_title_font_weight_mobile == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2170 <option value="700" <?php echo ($poll_title_font_weight_mobile == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2171 <option value="800" <?php echo ($poll_title_font_weight_mobile == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2172 <option value="900" <?php echo ($poll_title_font_weight_mobile == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2173 </select>
2174 </div>
2175 </div>
2176 </div>
2177 </div>
2178 <hr>
2179 <div class="form-group row">
2180 <div class="col-sm-4">
2181 <label for='ays_poll_title_alignment'>
2182 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2183 <a class="ays_help"
2184 data-toggle="tooltip"
2185 data-placement="top"
2186 title="<?php echo esc_html__("Specify the alignment of the title.", "poll-maker"); ?>">
2187 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2188 </a>
2189 </label>
2190 </div>
2191 <div class="col-sm-8 ays_divider_left">
2192 <div>
2193 <div>
2194 <label for='ays_poll_title_alignment'>
2195 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2196 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2197 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2198 </a>
2199 </label>
2200 </div>
2201 <div>
2202 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2203 <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2204 <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2205 <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2206 </select>
2207 </div>
2208 </div>
2209 <hr>
2210 <div>
2211 <div>
2212 <label for='ays_poll_title_alignment_mobile'>
2213 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2214 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2215 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2216 </a>
2217 </label>
2218 </div>
2219 <div>
2220 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2221 <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo esc_html__("Left", "poll-maker"); ?></option>
2222 <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo esc_html__("Center", "poll-maker"); ?></option>
2223 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2224 </select>
2225 </div>
2226 </div>
2227 </div>
2228 </div>
2229 <hr>
2230 <div class="form-group row">
2231 <div class="col-sm-4">
2232 <label for='ays_poll_title_text_transform'>
2233 <?php echo esc_html__('Title text transform', "poll-maker"); ?>
2234 <a class="ays_help"
2235 data-toggle="tooltip"
2236 data-placement="top"
2237 title="<?php echo esc_html__("Specify the text transformation of the title.", "poll-maker"); ?>">
2238 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2239 </a>
2240 </label>
2241 </div>
2242 <div class="col-sm-8 ays_divider_left">
2243 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_text_transform" name="ays_poll_title_text_transform">
2244 <option value="none" <?php echo ($poll_title_text_transform == "none") ? "selected" : "";?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2245 <option value="capitalize" <?php echo ($poll_title_text_transform == "capitalize") ? "selected" : "";?>><?php echo esc_html__("Capitalize", "poll-maker"); ?></option>
2246 <option value="uppercase" <?php echo ($poll_title_text_transform == "uppercase") ? "selected" : "";?>><?php echo esc_html__("Uppercase", "poll-maker"); ?></option>
2247 <option value="lowercase" <?php echo ($poll_title_text_transform == "lowercase") ? "selected" : "";?>><?php echo esc_html__("Lowercase", "poll-maker"); ?></option>
2248 </select>
2249 </div>
2250 </div>
2251 <hr>
2252 <!-- title text shadow start -->
2253 <div class="form-group row">
2254 <div class="col-sm-4">
2255 <label for="ays_poll_enable_title_text_shadow">
2256 <?php echo esc_html__('Title text shadow', "poll-maker")?>
2257 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Add text shadow for the poll title.', "poll-maker")?>">
2258 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2259 </a>
2260 </label>
2261 </div>
2262 <div class="col-sm-8 ays_divider_left">
2263 <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' : ''; ?>/>
2264 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2265 <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;' ?>">
2266 <label for='ays_poll_title_text_shadow_color'>
2267 <?php echo esc_html__('Color', "poll-maker"); ?>
2268 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify text shadow color.', "poll-maker")?>">
2269 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2270 </a>
2271 </label>
2272 <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); ?>"/>
2273 </div>
2274 <!---->
2275 <hr class="ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2276 <div class="form-group row ays_toggle_target" style="<?php echo $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2277 <div class="col-sm-12">
2278 <div class="col-sm-3" style="display: inline-block;">
2279 <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; ?>" />
2280 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2281 </div>
2282 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2283 <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; ?>" />
2284 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2285 </div>
2286 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2287 <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; ?>" />
2288 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2289 </div>
2290 </div>
2291 </div>
2292 <!---->
2293 </div>
2294 </div>
2295 <!-- title text shadow end -->
2296 <div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>">
2297 <hr>
2298 <div class="form-group row">
2299 <div class="col-sm-4">
2300 <label for='ays-poll-icon-size'>
2301 <?php echo esc_html__('Icon size (px)', "poll-maker"); ?>
2302 <a class="ays_help"
2303 data-toggle="tooltip"
2304 data-placement="top"
2305 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"); ?>">
2306 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2307 </a>
2308 </label>
2309 </div>
2310 <div class="col-sm-8 ays_divider_left">
2311 <input type="number" class="ays-text-input ays-text-input-short"
2312 id='ays-poll-icon-size' name='ays_poll_icon_size'
2313 value="<?php echo (isset($options['icon_size'])) ? esc_attr($options['icon_size']) : '24'; ?>"/>
2314 </div>
2315 </div>
2316 </div>
2317 <hr>
2318 <div class="form-group row">
2319 <div class="col-sm-4">
2320 <label for='ays-poll-width'>
2321 <?php echo esc_html__('Width (px)', "poll-maker"); ?>
2322 <a class="ays_help"
2323 data-toggle="tooltip"
2324 data-placement="top"
2325 title="<?php echo esc_html__("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2326 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2327 </a>
2328 </label>
2329 </div>
2330 <div class="col-sm-8 ays_divider_left">
2331 <div>
2332 <div>
2333 <label for='ays-poll-width'>
2334 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2335 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker")?>">
2336 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2337 </a>
2338 </label>
2339 </div>
2340 <div>
2341 <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'] ?>"/>
2342 </div>
2343 </div>
2344 <hr>
2345 <div>
2346 <div>
2347 <label for='ays_poll_width_for_mobile'>
2348 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2349 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker")?>">
2350 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2351 </a>
2352 </label>
2353 </div>
2354 <div>
2355 <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 ?>"/>
2356 <p class="ays_poll_small_hint_text_for_message_variables">
2357 <span><?php echo esc_html__( "For 100% leave blank" , "poll-maker" ); ?></span>
2358 </p>
2359 </div>
2360 </div>
2361 </div>
2362 </div>
2363 <hr/>
2364 <div class="form-group row">
2365 <div class="col-sm-4">
2366 <label for='ays_poll_min_height'>
2367 <?php echo esc_html__('Min-height', "poll-maker"); ?>
2368 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2369 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2370 </a>
2371 </label>
2372 </div>
2373 <div class="col-sm-8 ays_divider_left">
2374 <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); ?>"/>
2375 </div>
2376 </div>
2377 <hr>
2378 <div class="form-group row">
2379 <div class="col-sm-4">
2380 <label for='ays_poll_mobile_max_width'>
2381 <?php echo esc_html__('Poll max-width for mobile', "poll-maker"); ?>
2382 <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")?>">
2383 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2384 </a>
2385 </label>
2386 </div>
2387 <div class="col-sm-8 ays_divider_left">
2388 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2389 name='ays_poll_mobile_max_width' style="display: inline-block;"
2390 value="<?php echo esc_attr($poll_mobile_max_width); ?>"/> %
2391 <span class="ays_poll_small_hint_text"><?php echo esc_html__("For 100% leave blank", "poll-maker");?></span>
2392 </div>
2393 </div> <!-- Poll max-width for mobile -->
2394 <hr>
2395 </div>
2396 </div>
2397 <div class="ays-poll-accordion-options-main-container">
2398 <div class="ays-poll-accordion-header">
2399 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2400 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Question styles', "poll-maker"); ?></p>
2401 </div>
2402 <hr class="ays-poll-bolder-hr"/>
2403 <div class="ays-poll-accordion-body">
2404 <div class="form-group row">
2405 <div class="col-sm-4">
2406 <label for='ays_questions_font_size'>
2407 <?php echo esc_html__('Question font size', "poll-maker"); ?> (px)
2408 <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")?>">
2409 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2410 </a>
2411 </label>
2412 </div>
2413 <div class="col-sm-8 ays_divider_left">
2414 <div>
2415 <div>
2416 <label for='ays_questions_font_size'>
2417 <?php echo esc_html__('On desktop', "poll-maker"); ?>
2418 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for PC devices.', "poll-maker")?>">
2419 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2420 </a>
2421 </label>
2422 </div>
2423 <div>
2424 <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;?>">
2425 </div>
2426 </div>
2427 <hr>
2428 <div>
2429 <div>
2430 <label for='ays_poll_answers_font_size_mobile'>
2431 <?php echo esc_html__('On mobile', "poll-maker"); ?>
2432 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font size for mobile devices.', "poll-maker")?>">
2433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2434 </a>
2435 </label>
2436 </div>
2437 <div>
2438 <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;?>">
2439 </div>
2440 </div>
2441 </div>
2442 </div><!-- Question font size -->
2443 <hr>
2444 <div class="form-group row">
2445 <div class="col-sm-4">
2446 <label for='ays_poll_question_image_height'><?php echo esc_html__('Question image height', "poll-maker"); ?>
2447 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2448 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2449 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2450 </a>
2451 </label>
2452 </div>
2453 <div class="col-sm-8 ays_divider_left">
2454 <input type="number"
2455 class="ays-text-input ays-text-input-short"
2456 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2457 value="<?php echo esc_attr($poll_question_image_height); ?>"/>
2458 </div>
2459 </div><!-- Question image height -->
2460 <hr>
2461 <div class="form-group row">
2462 <div class="col-sm-4">
2463 <label for='ays_poll_question_image_object_fit'><?php echo esc_html__('Question object fit', "poll-maker"); ?>
2464 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2465 title="<?php echo esc_html__("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2466 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2467 </a>
2468 </label>
2469 </div>
2470 <div class="col-sm-8 ays_divider_left">
2471 <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">
2472 <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo esc_html__("Cover", "poll-maker"); ?></option>
2473 <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo esc_html__("Fill", "poll-maker"); ?></option>
2474 <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo esc_html__("Contain", "poll-maker"); ?></option>
2475 <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo esc_html__("Scale-down", "poll-maker"); ?></option>
2476 <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2477 </select>
2478 </div>
2479 </div><!-- Question image object fit -->
2480 <hr>
2481 </div>
2482 </div>
2483 <div class="ays-poll-accordion-options-main-container">
2484 <div class="ays-poll-accordion-header">
2485 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2486 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Answer Styles', "poll-maker"); ?></p>
2487 </div>
2488 <hr class="ays-poll-bolder-hr"/>
2489 <div class="ays-poll-accordion-body">
2490 <div class="form-group row">
2491 <div class="col-sm-4">
2492 <label for='ays_poll_enable_answer_style'><?php echo esc_html__('Enable answer styles', "poll-maker"); ?>
2493 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2494 title="<?php echo esc_html__("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2495 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2496 </a>
2497 </label>
2498 </div>
2499 <div class="col-sm-8 ays_divider_left">
2500 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2501 id="ays_poll_enable_answer_style"
2502 name="ays_poll_enable_answer_style" <?php echo ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2503 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2504 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2505 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2506 <label for="ays-poll-box-shadow-color">
2507 <?php echo esc_html__('Answers Background Color', "poll-maker"); ?>
2508 <a class="ays_help" data-toggle="tooltip"
2509 title="<?php echo esc_html__("Specify the background color of the answers' boxes.", "poll-maker"); ?>">
2510 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2511 </a>
2512 </label>
2513 <input type="text" class="ays-text-input" data-alpha="true"
2514 id='ays-poll-answer-bg-color'
2515 name='ays_poll_answer_bg_color'
2516 value="<?php echo esc_attr($answer_bg_color); ?>"/>
2517 </div>
2518 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2519 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2520 <label for="ays-poll-answer-hover-color">
2521 <?php echo esc_html__('Answer Hover Color', "poll-maker"); ?>
2522 <a class="ays_help" data-toggle="tooltip"
2523 title="<?php echo esc_html__('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2524 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2525 </a>
2526 </label>
2527 <input type="text" class="ays-text-input" data-alpha="true"
2528 id='ays-poll-answer-hover-color'
2529 name='ays_poll_answer_hover_color'
2530 value="<?php echo esc_attr($answer_hover_color); ?>"/>
2531 </div>
2532 <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;' ?>">
2533 <div>
2534 <label for='ays-poll-border-side'>
2535 <?php echo esc_html__('Border side', "poll-maker"); ?>
2536 <a class="ays_help"
2537 data-toggle="tooltip"
2538 data-placement="top"
2539 title="<?php echo esc_html__("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2540 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2541 </a>
2542 </label>
2543 </div>
2544 <div id="ays-poll-border-side-box">
2545 <select name="ays_poll_border_side" id="ays-poll-border-side"
2546 class="ays-select ays-select-short ays_poll_aysDropdown">
2547 <option value="all_sides" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2548 <?php echo esc_html__("All sides", "poll-maker"); ?>
2549 </option>
2550 <option value="none" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2551 <?php echo esc_html__("None", "poll-maker"); ?>
2552 </option>
2553 <option value="top" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2554 <?php echo esc_html__("Top", "poll-maker"); ?>
2555 </option>
2556 <option value="bottom" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2557 <?php echo esc_html__("Bottom", "poll-maker"); ?>
2558 </option>
2559 <option value="left" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2560 <?php echo esc_html__("Left", "poll-maker"); ?>
2561 </option>
2562 <option value="right" <?php echo isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2563 <?php echo esc_html__("Right", "poll-maker"); ?>
2564 </option>
2565 </select>
2566 </div>
2567 </div>
2568 <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;' ?>">
2569 <div>
2570 <label for='ays_answer_font_size'>
2571 <?php echo esc_html__('Answer font size', "poll-maker"); ?>
2572 <a class="ays_help"
2573 data-toggle="tooltip"
2574 data-placement="top"
2575 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"); ?>">
2576 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2577 </a>
2578 </label>
2579 </div>
2580 <div class="ays_answer_font_size_box">
2581 <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;?>">
2582 </div>
2583 </div>
2584 <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;' ?>">
2585 <div>
2586 <label for='ays_poll_answer_font_size_mobile'>
2587 <?php echo esc_html__('Answer font size for mobile', "poll-maker"); ?>
2588 <a class="ays_help"
2589 data-toggle="tooltip"
2590 data-placement="top"
2591 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"); ?>">
2592 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2593 </a>
2594 </label>
2595 </div>
2596 <div class="ays_answer_font_size_box">
2597 <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;?>">
2598 </div>
2599 </div>
2600 <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;' ?>">
2601 <div>
2602 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2603 <?php echo esc_html__('Answer image height (px)', "poll-maker")?>
2604 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2605 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2606 </a>
2607 </label>
2608 </div>
2609 <div>
2610 <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; ?>" />
2611 </div>
2612 </div> <!-- Answers image height -->
2613 <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;' ?>">
2614 <div>
2615 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2616 <?php echo esc_html__('Answer image height for mobile (px)', "poll-maker")?>
2617 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images on the mobile devices.', "poll-maker")?>">
2618 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2619 </a>
2620 </label>
2621 </div>
2622 <div>
2623 <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; ?>" />
2624 </div>
2625 </div> <!-- Answers image height for mobile-->
2626 <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;' ?>">
2627 <div>
2628 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2629 <?php echo esc_html__('Answer image border radius (px)', "poll-maker")?>
2630 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Border radius of answers images.', "poll-maker")?>">
2631 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2632 </a>
2633 </label>
2634 </div>
2635 <div>
2636 <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; ?>" />
2637 </div>
2638 </div> <!-- Answers image border radius -->
2639 <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;' ?>">
2640 <div >
2641 <label for="ays_poll_image_background_size">
2642 <?php echo esc_html__('Answer image object fit', "poll-maker"); ?>
2643 <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"); ?>">
2644 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2645 </a>
2646 </label>
2647 </div>
2648 <div id="ays_poll_image_background_size_box">
2649 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2650 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2651 <?php echo esc_html__('Cover', "poll-maker")?>
2652 </option>
2653 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2654 <?php echo esc_html__('Fill', "poll-maker")?>
2655 </option>
2656 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2657 <?php echo esc_html__('Contain', "poll-maker")?>
2658 </option>
2659 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2660 <?php echo esc_html__('Scale-down', "poll-maker")?>
2661 </option>
2662 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2663 <?php echo esc_html__('None', "poll-maker")?>
2664 </option>
2665 </select>
2666 </div>
2667 </div> <!-- Answer image object fit -->
2668 <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;' ?>">
2669 <div>
2670 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2671 <?php echo esc_html__('Answer padding (px)', "poll-maker")?>
2672 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Padding of answers.', "poll-maker")?>">
2673 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2674 </a>
2675 </label>
2676 </div>
2677 <div>
2678 <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); ?>"/>
2679 </div>
2680 </div> <!-- Answers padding -->
2681 <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;' ?>">
2682 <div >
2683 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2684 <?php echo esc_html__('Answer gap (px)', "poll-maker")?>
2685 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Gap between answers.', "poll-maker")?>">
2686 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2687 </a>
2688 </label>
2689 </div>
2690 <div>
2691 <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; ?>" />
2692 </div>
2693 </div> <!-- Answers gap -->
2694 <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;' ?>">
2695 <div>
2696 <label for="ays_poll_answer_border_radius">
2697 <?php echo esc_html__('Answer border radius', "poll-maker")?>
2698 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Specify the radius of the answers container.', "poll-maker")?>">
2699 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2700 </a>
2701 </label>
2702 </div>
2703 <div>
2704 <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); ?>"/>
2705 </div>
2706 </div> <!-- Answers border radius -->
2707 </div>
2708 </div>
2709 <hr>
2710 <div class="form-group row">
2711 <div class="col-sm-4">
2712 <label for="ays_poll_show_answers_icon">
2713 <?php echo esc_html__('Answer icon', "poll-maker"); ?>
2714 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2715 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2716 </a>
2717 </label>
2718 </div>
2719 <div class="col-sm-8 ays_divider_left">
2720 <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' : ''; ?> />
2721 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2722 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2723 <div class="form-check form-check-inline">
2724 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2725 <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' : ''; ?> />
2726 </label>
2727 </div>
2728 <div class="form-check form-check-inline">
2729 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2730 <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' : ''; ?> />
2731 </label>
2732 </div>
2733 </div>
2734 </div>
2735 </div> <!-- Answer icon -->
2736 <hr>
2737 <div class="form-group row">
2738 <div class="col-sm-4">
2739 <label for="ays_answers_view" class="ays_enable_answer_style">
2740 <?php echo esc_html__('Answer view', "poll-maker")?>
2741 <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")?>">
2742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2743 </a>
2744 </label>
2745 </div>
2746 <div class="col-sm-8">
2747 <div class="form-group row">
2748 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2749 <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">
2750 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2751 <?php echo esc_html__('List', "poll-maker")?>
2752 </option>
2753 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2754 <?php echo esc_html__('Grid', "poll-maker")?>
2755 </option>
2756 </select>
2757 </div>
2758 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
2759 <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;">
2760 <option value='2' selected>
2761 2
2762 </option>
2763 <option value='3' class="ays-poll-grid-type-columns">
2764 3
2765 </option>
2766 <option value='4' class="ays-poll-grid-type-columns">
2767 4
2768 </option>
2769 </select>
2770 </div>
2771 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2772 <div class="col-sm-8" style="display:flex;align-items:center;">
2773 <label for="ays_answers_grid_column_mobile">
2774 <?php echo esc_html__('Mobile Single Column View',"poll-maker")?>
2775 </label>
2776 <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")?>">
2777 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2778 </a>
2779 </div>
2780 <div class="col-sm-1 ays_divider_left">
2781 <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'/>
2782 <label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label>
2783 </div>
2784 </div>
2785 </div>
2786 </div>
2787 </div> <!-- Answers view -->
2788 <hr>
2789 <div class="form-group row">
2790 <div class="col-sm-4">
2791 <label for="ays_poll_answers_box_shadow_enable">
2792 <?php echo esc_html__('Answer box shadow', "poll-maker")?>
2793 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer container box shadow', "poll-maker")?>">
2794 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2795 </a>
2796 </label>
2797 </div>
2798 <div class="col-sm-8 ays_divider_left">
2799 <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" : ""; ?>>
2800 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2801 <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;"; ?>">
2802 <label for="ays_poll_answers_box_shadow_color">
2803 <?php echo esc_html__('Answer shadow color', "poll-maker")?>
2804 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('The shadow color of answers container', "poll-maker")?>">
2805 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2806 </a>
2807 </label>
2808 <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">
2809 </div>
2810 <!---->
2811 <hr class="ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none'; ?>">
2812 <div class="form-group row ays_toggle_target" style="<?php echo esc_attr($poll_answer_enable_box_shadow) ? '' : 'display:none' ?>">
2813 <div class="col-sm-12">
2814 <div class="col-sm-3" style="display: inline-block;">
2815 <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; ?>" />
2816 <span class="ays_poll_small_hint_text"><?php echo esc_html__('X', "poll-maker"); ?></span>
2817 </div>
2818 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2819 <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; ?>" />
2820 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Y', "poll-maker"); ?></span>
2821 </div>
2822 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2823 <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; ?>" />
2824 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Z', "poll-maker"); ?></span>
2825 </div>
2826 </div>
2827 </div>
2828 <!---->
2829 </div>
2830 </div> <!-- Answers box shadow -->
2831 <hr>
2832 <div class="form-group row">
2833 <div class="col-sm-4">
2834 <label for="ays_disable_answer_hover">
2835 <?php echo esc_html__('Disable answers hover', "poll-maker"); ?>
2836 <a class="ays_help" data-toggle="tooltip"
2837 data-placement="top"
2838 title="<?php echo esc_html__("Disable the hover effect for answers.", "poll-maker"); ?>">
2839 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2840 </a>
2841 </label>
2842 </div>
2843 <div class="col-sm-8 ays_divider_left">
2844 <input type="checkbox"
2845 name="ays_disable_answer_hover"
2846 id="ays_disable_answer_hover"
2847 value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?>
2848 >
2849 </div>
2850 </div>
2851 <hr>
2852 <!--PRO ANSWER STYLEs-->
2853 <div class="form-group row">
2854 <div class="col-sm-12 only_pro">
2855 <div class="pro_features" style="justify-content:flex-end;">
2856 </div>
2857 <div class="form-group row" style="padding: 15px 15px 0">
2858 <div class="" style="width: 100%;">
2859 <div class="form-group row">
2860 <div class="col-sm-5">
2861 <label for="ays_answers_border">
2862 <?php echo esc_html__('Answer border', "poll-maker")?>
2863 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Allow answer border', "poll-maker")?>">
2864 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2865 </a>
2866 </label>
2867 </div>
2868 <div class="col-sm-7 ays_divider_left">
2869 <input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on"
2870 checked/>
2871 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2872 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2873 <label for="ays_answers_border_width">
2874 <?php echo esc_html__('Border width', "poll-maker")?> (px)
2875 <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")?>">
2876 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2877 </a>
2878 </label>
2879 <input type="number" class="ays-text-input"
2880 value="" min="0"/>
2881 </div>
2882 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2883 <label for="ays_answers_border_style">
2884 <?php echo esc_html__('Border style', "poll-maker")?>
2885 <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")?>">
2886 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2887 </a>
2888 </label>
2889 <select name="ays_answers_border_style" class="ays-text-input ays-select-short">
2890 <option>Solid</option>
2891 </select>
2892 </div>
2893 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2894 <label for="ays_answers_border_color">
2895 <?php echo esc_html__('Border color', "poll-maker")?>
2896 <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")?>">
2897 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2898 </a>
2899 </label>
2900 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
2901 </div>
2902 </div>
2903 </div> <!-- Answers border -->
2904 <hr/>
2905 <div class="form-group row ays_grid_show">
2906 <div class="col-sm-5">
2907 <label for="ays_poll_show_answers_caption">
2908 <?php echo esc_html__('Show answers caption', "poll-maker")?>
2909 <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"); ?>">
2910 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2911 </a>
2912 </label>
2913 </div>
2914 <div class="col-sm-7 ays_divider_left">
2915 <input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/>
2916 <label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label>
2917 </div>
2918 </div> <!-- Show answers caption -->
2919 <hr/>
2920 <div class="form-group row">
2921 <div class="col-sm-5">
2922 <label for="ays_ans_img_caption_style">
2923 <?php echo esc_html__('Answers image caption style', "poll-maker")?>
2924 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2925 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2926 </a>
2927 </label>
2928 </div>
2929 <div class="col-sm-7 ays_divider_left">
2930 <select class="ays-text-input ays-text-input-short">
2931 <option><?php echo esc_html__('Outside', "poll-maker"); ?></option>
2932 </select>
2933 </div>
2934 </div> <!-- Answers image caption style -->
2935 <hr/>
2936 <div class="form-group row">
2937 <div class="col-sm-5">
2938 <label for="ays_ans_img_caption_position">
2939 <?php echo esc_html__('Answers image caption position', "poll-maker")?>
2940 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo esc_html__('Height of answers images.', "poll-maker")?>">
2941 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2942 </a>
2943 </label>
2944 </div>
2945 <div class="col-sm-7 ays_divider_left">
2946 <select class="ays-text-input ays-text-input-short">
2947 <option value="top"><?php echo esc_html__('Top', "poll-maker"); ?></option>
2948 </select>
2949 </div>
2950 </div> <!-- Answers image caption position -->
2951 <hr>
2952 </div>
2953 </div>
2954 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2955 <div class="ays-poll-new-upgrade-button-box">
2956 <div>
2957 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2958 <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">
2959 </div>
2960 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
2961 </div>
2962 </a>
2963 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2964 <div class="ays-poll-center-big-main-button-box">
2965 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2966 <div class="ays-poll-center-new-big-upgrade-button">
2967 <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">
2968 <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">
2969 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
2970 </div>
2971 </a>
2972 </div>
2973 </div>
2974 </div>
2975 </div>
2976 <hr/>
2977 </div>
2978 </div>
2979 <div class="ays-poll-accordion-options-main-container">
2980 <div class="ays-poll-accordion-header">
2981 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
2982 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Border styles', "poll-maker"); ?></p>
2983 </div>
2984 <hr class="ays-poll-bolder-hr"/>
2985 <div class="ays-poll-accordion-body">
2986 <div class="form-group row">
2987 <div class="col-sm-4">
2988 <label for='ays-poll-border-style'>
2989 <?php echo esc_html__('Border style', "poll-maker"); ?>
2990 <a class="ays_help"
2991 data-toggle="tooltip"
2992 data-placement="top"
2993 title="<?php echo esc_html__("Choose your preferred style of the border.", "poll-maker"); ?>">
2994 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2995 </a>
2996 </label>
2997 </div>
2998 <div class="col-sm-8 ays_divider_left">
2999 <select name="ays_poll_border_style" id="ays-poll-border-style"
3000 class="ays-select ays-select-short ays_poll_aysDropdown">
3001 <option value="solid" <?php echo $options['border_style'] == "solid" ? 'selected' : ''; ?>>
3002 <?php echo esc_html__("Solid", "poll-maker"); ?>
3003 </option>
3004 <option value="dashed" <?php echo $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
3005 <?php echo esc_html__("Dashed", "poll-maker"); ?>
3006 </option>
3007 <option value="dotted" <?php echo $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
3008 <?php echo esc_html__("Dotted", "poll-maker"); ?>
3009 </option>
3010 <option value="double" <?php echo $options['border_style'] == "double" ? 'selected' : ''; ?>>
3011 <?php echo esc_html__("Double", "poll-maker"); ?>
3012 </option>
3013 <option value="groove" <?php echo $options['border_style'] == "groove" ? 'selected' : ''; ?>>
3014 <?php echo esc_html__("Groove", "poll-maker"); ?>
3015 </option>
3016 <option value="ridge" <?php echo $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
3017 <?php echo esc_html__("Ridge", "poll-maker"); ?>
3018 </option>
3019 <option value="inset" <?php echo $options['border_style'] == "inset" ? 'selected' : ''; ?>>
3020 <?php echo esc_html__("Inset", "poll-maker"); ?>
3021 </option>
3022 <option value="outset" <?php echo $options['border_style'] == "outset" ? 'selected' : ''; ?>>
3023 <?php echo esc_html__("Outset", "poll-maker"); ?>
3024 </option>
3025 <option value="none" <?php echo $options['border_style'] == "none" ? 'selected' : ''; ?>>
3026 <?php echo esc_html__("None", "poll-maker"); ?>
3027 </option>
3028 </select>
3029 </div>
3030 </div>
3031 <hr>
3032 <div class="form-group row">
3033 <div class="col-sm-4">
3034 <label for='ays-poll-border-radius'><?php echo esc_html__('Border radius', "poll-maker"); ?>
3035 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3036 title="<?php echo esc_html__("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
3037 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3038 </a>
3039 </label>
3040 </div>
3041 <div class="col-sm-8 ays_divider_left">
3042 <input type="number" min="0"
3043 class="ays-text-input ays-text-input-short"
3044 id='ays-poll-border-radius' name='ays_poll_border_radius'
3045 value="<?php echo (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
3046 </div>
3047 </div>
3048 <hr>
3049 <div class="form-group row">
3050 <div class="col-sm-4">
3051 <label for='ays-poll-border-width'><?php echo esc_html__('Border width', "poll-maker"); ?>
3052 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3053 title="<?php echo esc_html__("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
3054 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3055 </a>
3056 </label>
3057 </div>
3058 <div class="col-sm-8 ays_divider_left">
3059 <input type="number" min="0"
3060 class="ays-text-input ays-text-input-short"
3061 id='ays-poll-border-width' name='ays_poll_border_width'
3062 value="<?php echo isset($options['border_width']) && $options['border_width'] != '' ? esc_attr($options['border_width']) : 2; ?>"/>
3063 </div>
3064 </div>
3065 <hr>
3066 <div class="form-group row">
3067 <div class="col-sm-4">
3068 <label for='ays-poll-border-color'><?php echo esc_html__('Border color', "poll-maker"); ?>
3069 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3070 title="<?php echo esc_html__("Specify the color of the border.", "poll-maker"); ?>">
3071 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3072 </a>
3073 </label>
3074 </div>
3075 <div class="col-sm-8 ays_divider_left">
3076 <input type="text"
3077 class="ays-text-input"
3078 data-alpha="true"
3079 id='ays-poll-border-color'
3080 name='ays_poll_border_color'
3081 value="<?php echo esc_attr($default_border); ?>"/>
3082 </div>
3083 </div>
3084 <hr>
3085 <!-- Buttons Styles Start -->
3086 </div>
3087 </div>
3088 <div class="ays-poll-accordion-options-main-container">
3089 <div class="ays-poll-accordion-header">
3090 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3091 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__('Button Styles', "poll-maker"); ?></p>
3092 </div>
3093 <hr class="ays-poll-bolder-hr"/>
3094 <div class="ays-poll-accordion-body">
3095 <div class="form-group row">
3096 <div class="col-sm-4">
3097 <label for="ays_poll_buttons_size">
3098 <?php echo esc_html__('Buttons Size', "poll-maker"); ?>
3099 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
3100 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3101 </a>
3102 </label>
3103 </div>
3104 <div class="col-sm-8 ays_divider_left">
3105 <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">
3106 <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo esc_html__('Small', "poll-maker"); ?></option>
3107 <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo esc_html__('Medium', "poll-maker"); ?></option>
3108 <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo esc_html__('Large', "poll-maker"); ?></option>
3109 </select>
3110 </div>
3111 </div> <!-- Buttons Size -->
3112 <hr>
3113 <div class="form-group row">
3114 <div class="col-sm-4">
3115 <label for='ays-poll-button-text-color'>
3116 <?php echo esc_html__('Buttons Text Color', "poll-maker"); ?>
3117 <a class="ays_help"
3118 data-toggle="tooltip"
3119 data-placement="top"
3120 title="<?php echo esc_html__("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
3121 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3122 </a>
3123 </label>
3124 </div>
3125 <div class="col-sm-8 ays_divider_left">
3126 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
3127 name='ays_poll_button_text_color'
3128 value="<?php echo esc_attr($poll_button_text_color); ?>"/>
3129 </div>
3130 </div><!-- Buttons text color -->
3131 <hr>
3132 <div class="form-group row">
3133 <div class="col-sm-4">
3134 <label for='ays-poll-button-bg-color'>
3135 <?php echo esc_html__('Buttons Background Color', "poll-maker"); ?>
3136 <a class="ays_help"
3137 data-toggle="tooltip"
3138 data-placement="top"
3139 title="<?php echo esc_html__("Specify the background color of the poll button.", "poll-maker"); ?>">
3140 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3141 </a>
3142 </label>
3143 </div>
3144 <div class="col-sm-8 ays_divider_left">
3145 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
3146 name='ays_poll_button_bg_color'
3147 value="<?php echo esc_attr($poll_button_bg_color); ?>"/>
3148 </div>
3149 </div><!-- Buttons background color -->
3150 <hr>
3151 <div class="form-group row">
3152 <div class="col-sm-4">
3153 <label for='ays_poll_buttons_font_size'>
3154 <?php echo esc_html__('Buttons font size', "poll-maker"); ?> (px)
3155 <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"); ?>">
3156 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3157 </a>
3158 </label>
3159 </div>
3160 <div class="col-sm-8 ays_divider_left">
3161 <input type="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; ?>"/>
3162 </div>
3163 </div> <!-- Buttons font size -->
3164 <hr>
3165 <div class="form-group row">
3166 <div class="col-sm-4">
3167 <label for='ays_poll_buttons_mobile_font_size'>
3168 <?php echo esc_html__('Buttons mobile font size', "poll-maker"); ?> (px)
3169 <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"); ?>">
3170 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3171 </a>
3172 </label>
3173 </div>
3174 <div class="col-sm-8 ays_divider_left">
3175 <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; ?>"/>
3176 </div>
3177 </div> <!-- Buttons font size -->
3178 <hr>
3179 <div class="form-group row">
3180 <div class="col-sm-4">
3181 <label for="ays_poll_buttons_left_right_padding">
3182 <?php echo esc_html__('Buttons padding (px)', "poll-maker"); ?>
3183 <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"); ?>">
3184 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3185 </a>
3186 </label>
3187 </div>
3188 <div class="col-sm-8 ays_divider_left">
3189 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
3190 <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;" />
3191 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Left / Right', "poll-maker"); ?></span>
3192 </div>
3193 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
3194 <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;" />
3195 <span class="ays_poll_small_hint_text"><?php echo esc_html__('Top / Bottom', "poll-maker"); ?></span>
3196 </div>
3197 </div>
3198 </div> <!-- Buttons padding -->
3199 <hr>
3200 <div class="form-group row">
3201 <div class="col-sm-4">
3202 <label for="ays_poll_buttons_border_radius">
3203 <?php echo esc_html__('Buttons border radius', "poll-maker"); ?> (px)
3204 <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"); ?>">
3205 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3206 </a>
3207 </label>
3208 </div>
3209 <div class="col-sm-8 ays_divider_left">
3210 <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; ?>"/>
3211 </div>
3212 </div>
3213 <hr>
3214 <div class="form-group row">
3215 <div class="col-sm-4">
3216 <label for='ays_poll_buttons_width'>
3217 <?php echo esc_html__('Buttons width', "poll-maker"); ?> (px)
3218 <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"); ?>">
3219 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3220 </a>
3221 </label>
3222 </div>
3223 <div class="col-sm-8 ays_divider_left">
3224 <div>
3225 <div>
3226 <label for="ays_poll_buttons_width">
3227 <?php echo esc_html__('On desktop', "poll-maker"); ?>
3228 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for PC devices.', "poll-maker"); ?>">
3229 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3230 </a>
3231 </label>
3232 </div>
3233 <div>
3234 <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; ?>"/>
3235 <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>
3236 </div>
3237 </div>
3238 <hr>
3239 <div>
3240 <div>
3241 <label for="ays_poll_buttons_mobile_width">
3242 <?php echo esc_html__('On mobile', "poll-maker"); ?>
3243 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the width for mobile devices.', "poll-maker"); ?>">
3244 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3245 </a>
3246 </label>
3247 </div>
3248 <div>
3249 <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; ?>"/>
3250 <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>
3251 </div>
3252 </div>
3253 </div>
3254 </div>
3255 <hr/>
3256 <div class="form-group row">
3257 <div class="col-sm-4">
3258 <label for="ays_poll_custom_class">
3259 <?php echo esc_html__('Custom class for poll container', "poll-maker")?>
3260 <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")?>">
3261 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3262 </a>
3263 </label>
3264 </div>
3265 <div class="col-sm-8 ays_divider_left">
3266 <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; ?>">
3267 </div>
3268 </div>
3269 </div>
3270 </div>
3271 </div>
3272 <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3273 <?php
3274
3275 $content = "
3276 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
3277 <div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''>
3278 <div class='apm-title-box'>
3279 <h5>{$poll['title']}</h5>
3280 </div>";
3281
3282 $content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div>
3283 <div class='apm-img-box'>";
3284 $content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : "";
3285 $checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
3286 $content .= "</div>
3287 <div class='apm-answers ays_poll_list_view_container'>";
3288 $minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ;
3289 $minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ;
3290 if ($poll_answer_icon_check && $poll['theme_id'] != 3) {
3291 switch ($poll_answer_icon) {
3292 case 'radio':
3293 $answer_icon_class = 'ays_poll_answer_icon_radio';
3294 break;
3295 case 'checkbox':
3296 $answer_icon_class = 'ays_poll_answer_icon_checkbox';
3297 break;
3298 default:
3299 $answer_icon_class = '';
3300 break;
3301 }
3302 }else{
3303 $answer_icon_class = '';
3304 }
3305 switch ( $poll['type'] ) {
3306 case 'choosing':
3307 if(empty($poll['answers'])){
3308 for ($i = 0 ; $i < $answer_default_count ; $i++){
3309 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i.">
3310 <input type='radio' name='answer' id='radio-".$i."-' value='".$i."'>
3311 <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>
3312
3313 </div>";
3314 }
3315 }
3316 else{
3317 foreach ( $poll['answers'] as $index => $answer ) {
3318 $answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : "";
3319 $poll_class_for_answer_label = "";
3320 $poll_class_for_answer_label_text = "";
3321 if($answer_image != ""){
3322 $poll_class_for_answer_label = "ays_poll_label_without_padding";
3323 $poll_class_for_answer_label_text = "ays_poll_label_text_with_padding";
3324 }
3325 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index.">
3326 <input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'>
3327 <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>
3328 </div>";
3329 }
3330 }
3331 break;
3332 case 'voting':
3333 $poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand";
3334 switch ( $poll_view_type_voting ) {
3335 case 'hand':
3336 foreach ( $poll['answers'] as $index => $answer ) {
3337 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3338 <label for='radio-$index-'>";
3339 $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>";
3340 }
3341 break;
3342 case 'emoji':
3343 foreach ( $poll['answers'] as $index => $answer ) {
3344 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3345 <label for='radio-$index-'>";
3346 $content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>";
3347 }
3348 break;
3349 default:
3350 break;
3351 }
3352 break;
3353 case 'rating':
3354 $poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star";
3355 switch ( $poll_view_type_rating ) {
3356 case 'star':
3357 foreach ( $poll['answers'] as $index => $answer ) {
3358 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3359 <label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>";
3360 }
3361 break;
3362 case 'emoji':
3363 foreach ( $poll['answers'] as $index => $answer ) {
3364 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3365 <label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>";
3366 }
3367 break;
3368 default:
3369 break;
3370 }
3371 break;
3372 case 'text':
3373 $poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text";
3374 switch ( $poll_view_type_text ) {
3375 case 'short_text':
3376 $content .= "<div class='ays-poll-maker-text-live-preview'>
3377 <input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'>
3378 <label for='ays_poll_text_type_short_live'></label>
3379 </div>";
3380 break;
3381 case 'paragraph':
3382 $content .= "<div class='ays-poll-maker-text-live-preview'>
3383 <textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea>
3384 <label for='ays_poll_text_type_paragraph_live'></label>
3385 </div>";
3386 break;
3387 default:
3388 break;
3389 }
3390 break;
3391 default:
3392 break;
3393 }
3394 $content .= "</div>
3395 <div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . ">
3396 <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') . '">
3397 </div>';
3398 $content .= "<div class='".$poll_logo_img." ays_live_logo_container'>";
3399 if($poll_check_logo){
3400 $content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>";
3401 }
3402 $content .= "</div>";
3403
3404 $content .='</div>
3405 </div>';
3406 print wp_kses_post($content);
3407 ?>
3408 </div>
3409 </div>
3410 <hr/>
3411 <div class="form-group row">
3412 <div class="col-sm-2">
3413 <label for="ays_custom_css">
3414 <?php echo esc_html__("Custom CSS", "poll-maker"); ?>
3415 </label>
3416 <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"); ?>">
3417 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3418 </a>
3419 <br>
3420 </div>
3421 <div class="col-sm-10 ays_divider_left">
3422 <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>
3423 </div>
3424 </div>
3425 <hr/>
3426 <div class="form-group row">
3427 <div class="col-sm-2">
3428 <label for="ays_poll_reset_to_default">
3429 <?php echo esc_html__('Reset styles', "poll-maker") ?>
3430 <a class="ays_help" data-toggle="tooltip"
3431 title="<?php echo esc_html__('Reset styles to default values', "poll-maker") ?>">
3432 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3433 </a>
3434 </label>
3435 </div>
3436 <div class="col-sm-10 ays_divider_left">
3437 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3438 id="ays_poll_reset_to_default"><?php echo esc_html__("Reset", "poll-maker") ?>
3439 </button>
3440 </div>
3441 </div>
3442 </div>
3443 <hr>
3444 <div class="only_pro" style="position: relative; display: inline-block">
3445 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
3446 <div class="pro-features-popup-conteiner">
3447 <div class="pro-features-popup-title">
3448 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
3449 </div>
3450 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
3451 <p>
3452 <?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"); ?>
3453 </p>
3454 <p>
3455 <?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"); ?>
3456 </p>
3457 </div>
3458 <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 ); ?>">
3459 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3460 </div>
3461 </div>
3462 </div>
3463 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
3464 <span class="ays_save_as_default_content_for_mobile">
3465 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
3466 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
3467 </a>
3468 <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" ); ?>">
3469 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3470 </a>
3471 </span>
3472 </div>
3473 </div>
3474 </div>
3475 <div id="tab3" class="ays-poll-tab-content <?php echo $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3476 <div class="ays-poll-accordion-options-main-container">
3477 <div class="ays-poll-accordion-header">
3478 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
3479 <p class="ays-subtitle"><?php echo esc_html__('Feature options', "poll-maker"); ?> </p>
3480 </div>
3481 <hr class="ays-poll-bolder-hr"/>
3482 <div class="ays-poll-accordion-body">
3483 <div class="form-group row">
3484 <div class="col-sm-3">
3485 <label>
3486 <?php echo esc_html__('Status', "poll-maker"); ?>
3487 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3488 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") ?>">
3489 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3490 </a>
3491 </label>
3492 </div>
3493 <div class="col-sm-9">
3494 <div class="d-flex">
3495 <div class="form-check form-check-inline">
3496 <input type="radio" id="ays-publish" name="ays_publish"
3497 value="1" <?php echo ($published == 1) ? 'checked' : ''; ?> />
3498 <label class="form-check-label"
3499 for="ays-publish"> <?php echo esc_html__('Published', "poll-maker"); ?> </label>
3500 </div>
3501 <div class="form-check form-check-inline">
3502 <input type="radio" id="ays-unpublish" name="ays_publish"
3503 value="0" <?php echo ($published == 0) ? 'checked' : ''; ?> />
3504 <label class="form-check-label"
3505 for="ays-unpublish"> <?php echo esc_html__('Unpublished', "poll-maker"); ?> </label>
3506 </div>
3507 </div>
3508 </div>
3509 </div>
3510 <hr>
3511 <div class='form-group row'>
3512 <div class="col-sm-3">
3513 <label for='ays-poll-category'>
3514 <?php echo esc_html__('Categories', "poll-maker"); ?>
3515 <a class="ays_help" data-toggle="tooltip"
3516 data-placement="top"
3517 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"); ?>">
3518 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3519 </a>
3520 </label>
3521 </div>
3522 <div class="col-sm-9">
3523 <?php if (!empty($categories)): ?>
3524 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3525 data-placeholder='<?php echo esc_html__("Select category", "poll-maker") ?>'>
3526 <?php
3527 foreach ( $categories as $cat ) {
3528 ?>
3529 <option value="<?php echo esc_attr($cat['id']); ?>" <?php echo in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3530 <?php echo esc_html($cat['title']); ?>
3531 </option>
3532 <?php }
3533 ?>
3534 </select>
3535 <div class="ays_poll_small_hint_text_for_message_variables" style="margin-top: 5px;">
3536 <span>
3537 <?php
3538 echo (sprintf(
3539 /* translators: %s: opening and closing <a> HTML code */
3540 wp_kses_post(__('Create a new category %s here %s', 'poll-maker')),
3541 '<a href="'. esc_url( $poll_category_page_url ) .'" target="_blank">',
3542 '</a>'
3543 ));
3544 ?>
3545 </span>
3546 </div>
3547 <?php else: ?>
3548 <a href="?page=poll-maker-ays-cats&action=add"><?php echo esc_html__("Create category", "poll-maker") ?></a>
3549 <?php endif; ?>
3550 </div>
3551 </div>
3552 <hr>
3553 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3554 <div class="form-group row ays_toggle_parent">
3555 <div class="col-sm-3">
3556 <label for="ays_add_post_for_poll">
3557 <?php echo esc_html__('Create post for poll', "poll-maker")?>
3558 <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")?>">
3559 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3560 </a>
3561 </label>
3562 </div>
3563 <div class="col-sm-1">
3564 <input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/>
3565 </div>
3566 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3567 <div class="form-group row">
3568 <div class="col-sm-4">
3569 <label for="ays_add_postcat_for_poll">
3570 <?php echo esc_html__('Choose Post Categories', "poll-maker")?>
3571 <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")?>">
3572 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3573 </a>
3574 </label>
3575 </div>
3576 <div class="col-sm-8">
3577 <div class="input-group">
3578 <select name="ays_add_postcat_for_poll[]"
3579 id="ays_add_postcat_for_poll"
3580 class="apm-cat-select2"
3581 multiple>
3582 <?php
3583
3584 foreach ($cat_list as $cat) {
3585 echo "<option value='" . wp_kses_post($cat->cat_ID) . "' >" . wp_kses_post($cat->name) . "</option>";
3586 }
3587 ?>
3588 </select>
3589 </div>
3590 </div>
3591 </div>
3592 </div>
3593 </div> <!-- Create post for poll -->
3594 <hr/>
3595 <?php else: ?>
3596 <div class="form-group row">
3597 <div class="col-sm-3">
3598 <label for="ays_add_post_for_poll">
3599 <?php echo esc_html__('WP Post', "poll-maker")?>
3600 <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")?>">
3601 <i class="ays_fa ays_fa_info_circle"></i>
3602 </a>
3603 </label>
3604 </div>
3605 <div class="col-sm-8" style="margin-left: 15px;">
3606 <div class="row">
3607 <div style="margin-right: 10px;">
3608 <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>
3609 </div>
3610 <div>
3611 <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>
3612 </div>
3613 </div>
3614 </div>
3615 <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo esc_attr($post_id); ?>">
3616 </div>
3617 <hr>
3618 <?php endif; ?>
3619 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3620 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3621 <div class="pro_features" style="justify-content:flex-end;">
3622 </div>
3623 <div class="form-group row">
3624 <div class="col-sm-3">
3625 <label for="ays_poll_enable_copy_protection">
3626 <?php echo esc_html__('Enable copy protection',"poll-maker"); ?>
3627 <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"); ?>">
3628 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3629 </a>
3630 </label>
3631 </div>
3632 <div class="col-sm-9">
3633 <input type="checkbox" class="ays-enable-timer1" />
3634 </div>
3635 </div>
3636 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3637 <div class="ays-poll-new-upgrade-button-box">
3638 <div>
3639 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3640 <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">
3641 </div>
3642 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3643 </div>
3644 </a>
3645 </div>
3646 </div>
3647 <hr/>
3648 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3649 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3650 <div class="pro_features" style="justify-content:flex-end;">
3651 </div>
3652 <div class="form-group row">
3653 <div class="col-sm-3">
3654 <label for="ays_poll_question_text_to_speech">
3655 <?php echo esc_html__('Enable text to speech',"poll-maker")?>
3656 <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")?>">
3657 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3658 </a>
3659 </label>
3660 </div>
3661 <div class="col-sm-9">
3662 <input type="checkbox" class="ays-enable-timer1"
3663 name="ays_poll_question_text_to_speech"
3664 value="on"/>
3665 </div>
3666 </div>
3667 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3668 <div class="ays-poll-new-upgrade-button-box">
3669 <div>
3670 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3671 <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">
3672 </div>
3673 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3674 </div>
3675 </a>
3676 </div>
3677 </div> <!-- Questions text to speech -->
3678 <hr>
3679 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3680 <div class="col-sm-3">
3681 <label for='ays_poll_allow_multivote'>
3682 <?php echo esc_html__('Allow multivote', "poll-maker"); ?>
3683 <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"); ?>">
3684 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3685 </a>
3686 </label>
3687 </div>
3688 <div class="col-sm-1">
3689 <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; ?>>
3690 </div>
3691 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="<?php echo esc_attr($poll_enable_multivote_answer) ? '' : 'display: none'; ?>">
3692 <div class="row">
3693 <div class="col-sm-3">
3694 <label for='ays_poll_multivote_min_count'>
3695 <?php echo esc_html__('Min', "poll-maker"); ?>
3696 <a class="ays_help"
3697 data-toggle="tooltip"
3698 data-placement="top"
3699 title="<?php echo esc_html__("Indicate the minimum count of answers.", "poll-maker"); ?>">
3700 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3701 </a>
3702 </label>
3703 </div>
3704 <div class="col-sm-9">
3705 <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; ?>">
3706 </div>
3707 </div>
3708 <hr>
3709 <div class="row">
3710 <div class="col-sm-3">
3711 <label for='ays_poll_multivote_count'>
3712 <?php echo esc_html__('Max', "poll-maker"); ?>
3713 <a class="ays_help"
3714 data-toggle="tooltip"
3715 data-placement="top"
3716 title="<?php echo esc_html__("Indicate the maximum count of answers.", "poll-maker"); ?>">
3717 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3718 </a>
3719 </label>
3720 </div>
3721 <div class="col-sm-9">
3722 <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; ?>">
3723 </div>
3724 </div>
3725 </div>
3726 </div>
3727 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3728 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3729 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3730 <div class="pro_features" style="justify-content:flex-end;">
3731 </div>
3732 <div class="form-group row">
3733 <div class="col-sm-3">
3734 <label for="ays-poll-allow-edit">
3735 <?php echo esc_html__('Edit previous submission', "poll-maker") ?>
3736 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
3737 data-placement="top"
3738 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"); ?>">
3739 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3740 </a>
3741 </label>
3742 </div>
3743 <div class="col-sm-9">
3744 <input type="checkbox" class="ays-enable-timer1"
3745 name="ays_edit_previous_submission"
3746 value="on"/>
3747 </div>
3748 </div>
3749 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3750 <div class="ays-poll-new-upgrade-button-box">
3751 <div>
3752 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3753 <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">
3754 </div>
3755 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3756 </div>
3757 </a>
3758 </div>
3759 </div>
3760 <hr>
3761 <div class="form-group row">
3762 <div class="col-sm-3">
3763 <label for='show-title'>
3764 <?php echo esc_html__('Show Title', "poll-maker"); ?>
3765 <a class="ays_help" data-toggle="tooltip"
3766 data-placement="top"
3767 title="<?php echo esc_html__("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3768 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3769 </a>
3770 </label>
3771 </div>
3772 <div class="col-sm-9">
3773 <input type="checkbox" name="show_title" id="show-title"
3774 value="show" <?php echo $poll['show_title'] ? 'checked' : ''; ?>>
3775 </div>
3776 </div>
3777 <hr>
3778 <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' ?>" >
3779 <div class="col-sm-3">
3780 <label>
3781 <?php echo esc_html__('Alignment', "poll-maker"); ?>
3782 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3783 title="<?php echo esc_html__('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3784 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3785 </a>
3786 </label>
3787 </div>
3788 <div class="col-sm-9">
3789 <div class="d-flex">
3790 <div class="form-check form-check-inline">
3791 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3792 value="ltr" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3793 <label class="form-check-label"
3794 for="apm-dir-ltr"> <?php echo esc_html__('Left', "poll-maker"); ?> </label>
3795 </div>
3796 <div class="form-check form-check-inline">
3797 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3798 value="center" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3799 <label class="form-check-label"
3800 for="apm-dir-center"> <?php echo esc_html__('Center', "poll-maker"); ?> </label>
3801 </div>
3802 <div class="form-check form-check-inline">
3803 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3804 value="rtl" <?php echo (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3805 <label class="form-check-label"
3806 for="apm-dir-rtl"> <?php echo esc_html__('Right', "poll-maker"); ?> </label>
3807 </div>
3808 </div>
3809 </div>
3810 </div>
3811 <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' ?>" >
3812 <div class="form-group row">
3813 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3814 <div class="pro_features pro_features_popup">
3815 <div class="pro-features-popup-conteiner">
3816 <div class="pro-features-popup-title">
3817 <?php echo esc_html__("Allow Anonymity", "poll-maker"); ?>
3818 </div>
3819 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3820 <p>
3821 <?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"); ?>
3822 </p>
3823 </div>
3824 <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 ); ?>">
3825 <?php echo esc_html__("Pricing", "poll-maker"); ?>
3826 </div>
3827 </div>
3828 </div>
3829 <div class="pro_features" style="justify-content:flex-end;">
3830 </div>
3831 <div class="form-group row">
3832 <div class="col-sm-3">
3833 <label for='ays-poll-allow-anonymity'>
3834 <?php echo esc_html__('Allow anonymity', "poll-maker"); ?>
3835 <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"); ?>">
3836 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3837 </a>
3838 </label>
3839 </div>
3840 <div class="col-sm-9">
3841 <input type="checkbox" name="ays_allow_anonymity"
3842 value="1" >
3843 </div>
3844 </div>
3845 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3846 <div class="ays-poll-new-upgrade-button-box">
3847 <div>
3848 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3849 <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">
3850 </div>
3851 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
3852 </div>
3853 </a>
3854 <div class="ays-poll-new-watch-video-button-box">
3855 <div>
3856 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
3857 <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">
3858 </div>
3859 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
3860 </div>
3861 </div>
3862 </div>
3863 <hr>
3864 <div class="form-group row">
3865 <div class="col-sm-3">
3866 <label for='ays_poll_change_creation_date'>
3867 <?php echo esc_html__('Change current poll creation date', "poll-maker"); ?>
3868 <a class="ays_help" data-toggle="tooltip"
3869 data-placement="top"
3870 title="<?php echo esc_html__("Choose your preferred creation date.", "poll-maker"); ?>">
3871 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3872 </a>
3873 </label>
3874 </div>
3875 <div class="col-sm-9" style="display: inherit;">
3876 <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"
3877 value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3878 <div class="input-group-append" style="display: block">
3879 <label for="ays_poll_change_creation_date" class="input-group-text">
3880 <span><i class="ays_fa ays_fa_calendar"></i></span>
3881 </label>
3882 </div>
3883 </div>
3884 </div>
3885 <hr>
3886 <div class="form-group row">
3887 <div class="col-sm-3">
3888 <label for="ays_poll_create_author">
3889 <?php echo esc_html__('Change the author of the current poll', "poll-maker"); ?>
3890 <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"); ?>">
3891 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3892 </a>
3893 </label>
3894 </div>
3895 <div class="col-sm-9">
3896 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3897 <option value=""><?php echo esc_html__('Select User', "poll-maker")?></option>
3898 <?php
3899 $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;
3900 $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) ) : '';
3901 $selected = '';
3902 ?>
3903 <option value="<?php echo esc_attr($poll_user_id);?>" selected>
3904 <?php echo esc_html($poll_user_display_name); ?>
3905 </option>
3906 </select>
3907 </div>
3908 </div> <!-- Change the author of the current poll -->
3909 <hr/>
3910 <!-- Poll Main URL Start -->
3911 <div class="form-group row">
3912 <div class="col-sm-3">
3913 <label for="ays_poll_main_url">
3914 <?php echo esc_html__('Poll main URL', "poll-maker")?>
3915 <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");
3916 ?>">
3917 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3918 </a>
3919 </label>
3920 </div>
3921 <div class="col-sm-9">
3922 <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); ?>">
3923 </div>
3924 </div>
3925 <!-- Poll Main URL End -->
3926 <hr>
3927 <div class="form-group row">
3928 <div class="col-sm-3">
3929 <label for='show-poll-create-dates'>
3930 <?php echo esc_html__('Show creation date', "poll-maker"); ?>
3931 <a class="ays_help" data-toggle="tooltip"
3932 data-placement="top"
3933 title="<?php echo esc_html__("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3934 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3935 </a>
3936 </label>
3937 </div>
3938 <div class="col-sm-9">
3939 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3940 value="1" <?php echo esc_attr($show_create_date) ? 'checked' : '' ?> >
3941 </div>
3942 </div>
3943 <hr>
3944 <div class="form-group row">
3945 <div class="col-sm-3">
3946 <label for='show-poll-author'>
3947 <?php echo esc_html__('Show author', "poll-maker"); ?>
3948 <a class="ays_help" data-toggle="tooltip"
3949 data-placement="top"
3950 title="<?php echo esc_html__("Enable to show the author inside the poll.", "poll-maker"); ?>">
3951 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3952 </a>
3953 </label>
3954 </div>
3955 <div class="col-sm-9">
3956 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3957 value="1" <?php echo esc_attr($show_author) ? 'checked' : '' ?> >
3958 </div>
3959 </div>
3960 <hr>
3961 <div class="form-group row">
3962 <div class="col-sm-3">
3963 <label for="schedule_the_poll">
3964 <?php echo esc_html__('Schedule', "poll-maker"); ?>
3965 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3966 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") ?>">
3967 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3968 </a>
3969 </label>
3970 </div>
3971 <div class="col-sm-1">
3972 <input type="checkbox"
3973 id="schedule_the_poll"
3974 class="active_date_check"
3975 name="active_date_check" <?php echo (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3976 </div>
3977 <div class="col-sm-8">
3978 <div class="row">
3979 <div class="col-sm-12 active_date ays_divider_left"
3980 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3981 <!-- -1- -->
3982 <div class="form-group row">
3983 <div class="col-sm-3">
3984 <label class="form-check-label" for="ays-active"> <?php echo esc_html__('Start date:', "poll-maker"); ?> </label>
3985 </div>
3986 <div class="col-sm-9">
3987 <div class="input-group mb-3">
3988 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
3989 value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3990 <div class="input-group-append">
3991 <label for="ays-active" class="input-group-text">
3992 <span><i class="ays_fa ays_fa_calendar"></i></span>
3993 </label>
3994 </div>
3995 </div>
3996 </div>
3997 </div>
3998 <!-- -2- -->
3999 <div class="form-group row">
4000 <div class="col-sm-3">
4001 <label class="form-check-label" for="ays-deactive"> <?php echo esc_html__('End date:', "poll-maker"); ?> </label>
4002 </div>
4003 <div class="col-sm-9">
4004 <div class="input-group mb-3">
4005 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
4006 value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
4007 <div class="input-group-append">
4008 <label for="ays-deactive" class="input-group-text">
4009 <span><i class="ays_fa ays_fa_calendar"></i></span>
4010 </label>
4011 </div>
4012 </div>
4013 </div>
4014 </div>
4015 <!-- ////////// -->
4016 <hr>
4017 <div class="form-group row">
4018 <div class="col-sm-3">
4019 <label for='ays_poll_show_timer'>
4020 <?php echo esc_html__('Show timer', "poll-maker"); ?>
4021 <a class="ays_help" data-toggle="tooltip"
4022 data-placement="top"
4023 title="<?php echo esc_html__("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
4024 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4025 </a>
4026 </label>
4027 </div>
4028 <div class="col-sm-1">
4029 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
4030 value="1" <?php echo $schedule_show_timer ? 'checked' : '' ?> >
4031 </div>
4032 <div class="col-sm-8">
4033 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
4034 <div class="d-flex">
4035 <div class="form-check form-check-inline">
4036 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
4037 value="countdown" <?php echo $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
4038 <label class="form-check-label"
4039 for="show_time_countdown"> <?php echo esc_html__('Show countdown', "poll-maker"); ?> </label>
4040 </div>
4041 <div class="form-check form-check-inline">
4042 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
4043 value="enddate" <?php echo $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
4044 <label class="form-check-label"
4045 for="show_time_enddate"> <?php echo esc_html__('Show end date', "poll-maker"); ?> </label>
4046 </div>
4047 </div>
4048 <hr>
4049 <div class='form-group row'>
4050 <div class='col-sm-5'>
4051 <label class="form-check-label" for="show_bottom_timer">
4052 <?php echo esc_html__(' Show timer at the bottom', "poll-maker"); ?>
4053 <a class="ays_help" data-toggle="tooltip"
4054 data-placement="top"
4055 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"); ?>">
4056 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4057 </a>
4058 </label>
4059 </div>
4060 <div class='col-sm-7'>
4061 <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?php echo $show_bottom_timer == true ? 'checked' : ''; ?> >
4062 </div>
4063 </div>
4064 </div>
4065 </div>
4066 </div>
4067 <hr>
4068 <div class="form-group row">
4069 <div class="col-sm-3">
4070 <label class="form-check-label"
4071 for="active_date_message"><?php echo esc_html__("Pre start message:", "poll-maker") ?></label>
4072 </div>
4073 <div class="col-sm-9">
4074 <div class="editor">
4075 <?php
4076 $content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']);
4077 $editor_id = 'active_date_message_soon';
4078 $settings = array(
4079 'editor_height' => $poll_wp_editor_height,
4080 'textarea_name' => 'active_date_message_soon',
4081 'editor_class' => 'ays-textarea',
4082 'media_elements' => false
4083 );
4084 wp_editor($content, $editor_id, $settings);
4085 ?>
4086 </div>
4087 </div>
4088 </div>
4089 <hr>
4090 <!-- -3- -->
4091 <div class="form-group row">
4092 <div class="col-sm-3">
4093 <label class="form-check-label"
4094 for="active_date_message"><?php echo esc_html__("Expiration message:", "poll-maker") ?></label>
4095 </div>
4096 <div class="col-sm-9">
4097 <div class="editor">
4098 <?php
4099 $content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']);
4100 $editor_id = 'active_date_message';
4101 $settings = array(
4102 'editor_height' => $poll_wp_editor_height,
4103 'textarea_name' => 'active_date_message',
4104 'editor_class' => 'ays-textarea',
4105 'media_elements' => false
4106 );
4107 wp_editor($content, $editor_id, $settings);
4108 ?>
4109 </div>
4110 </div>
4111 </div>
4112 <hr>
4113 <div class="form-group row">
4114 <div class="col-sm-3">
4115 <label for='show_result_btn_schedule'>
4116 <?php echo esc_html__('Show result button', "poll-maker"); ?>
4117 <a class="ays_help" data-toggle="tooltip"
4118 data-placement="top"
4119 title="<?php echo esc_html__("Enable to show the result button after the schedule.", "poll-maker"); ?>">
4120 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4121 </a>
4122 </label>
4123 </div>
4124 <div class="col-sm-1">
4125 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
4126 value="1" <?php echo $showresbtnschedule ? 'checked' : '' ?> >
4127 </div>
4128 <div class="col-sm-8">
4129 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
4130 <div class="form-check form-check-inline">
4131 <label class="form-check-label">
4132 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
4133 <span>
4134 <?php echo esc_html__('With See Results button', "poll-maker"); ?>
4135 </span>
4136 </label>
4137 </div>
4138 <div class="form-check form-check-inline">
4139 <label class="form-check-label">
4140 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
4141 <span>
4142 <?php echo esc_html__('Without See Results button', "poll-maker"); ?>
4143 </span>
4144 </label>
4145 </div>
4146 </div>
4147 </div>
4148 </div>
4149 <hr>
4150 <div class="form-group row">
4151 <div class="col-sm-3">
4152 <label for='ays_show_poll_container'>
4153 <?php echo esc_html__("Don't show poll", "poll-maker"); ?>
4154 <a class="ays_help" data-toggle="tooltip"
4155 data-placement="top"
4156 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"); ?>">
4157 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4158 </a>
4159 </label>
4160 </div>
4161 <div class="col-sm-9">
4162 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
4163 value="on" <?php echo esc_attr($poll_check_exp_cont); ?> >
4164 </div>
4165 </div>
4166 </div>
4167 </div>
4168 </div>
4169 </div>
4170 <hr>
4171 <div class="form-group row ays_toggle_parent">
4172 <div class="col-sm-3">
4173 <label for='ays-poll-allow-not-vote'>
4174 <?php echo esc_html__('Allow not to vote', "poll-maker"); ?>
4175 <a class="ays_help"
4176 data-toggle="tooltip"
4177 data-placement="top"
4178 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"); ?>">
4179 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4180 </a></label>
4181 </div>
4182 <div class="col-sm-1">
4183 <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' : ''; ?>>
4184 </div>
4185 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
4186 <div class="row">
4187 <div class="col-sm-3 ays_divider_left">
4188 <label for="ays-poll-btn-text">
4189 <?php echo esc_html__("Results button text", "poll-maker"); ?>
4190 <a class="ays_help"
4191 data-toggle="tooltip"
4192 data-placement="top"
4193 title="<?php echo esc_html__("Write the text of the button, which shows results.", "poll-maker"); ?>">
4194 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4195 </a>
4196 </label>
4197 </div>
4198 <div class="col-sm-9">
4199 <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"); ?>"/>
4200 </div>
4201 </div>
4202 </div>
4203 </div>
4204 <hr>
4205 <div class="form-group row">
4206 <div class="col-sm-3" style="padding-right: 0px;">
4207 <label for="ays_enable_pass_count">
4208 <?php echo esc_html__('Show passed users count', "poll-maker") ?>
4209 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4210 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") ?>">
4211 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4212 </a>
4213 </label>
4214 </div>
4215 <div class="col-sm-9">
4216 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
4217 value="on" <?php echo ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
4218 </div>
4219 </div>
4220 <hr>
4221 <div class="form-group row ays_toggle_parent">
4222 <div class="col-sm-3">
4223 <label for="ays_redirect_after_vote">
4224 <?php echo esc_html__('Redirect after voting', "poll-maker"); ?>
4225 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4226 title="<?php echo esc_html__('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
4227 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4228 </a>
4229 </label>
4230 </div>
4231 <div class="col-sm-1">
4232 <input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> />
4233 </div>
4234 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>">
4235 <div class="row">
4236 <div class="col-sm-12 ays_divider_left">
4237 <div class="form-group row">
4238 <div class="col-sm-3">
4239 <label for="redirection_url">
4240 <?php echo esc_html__('URL', "poll-maker"); ?>
4241 <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"); ?>">
4242 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4243 </a>
4244 </label>
4245 </div>
4246 <div class="col-sm-9">
4247 <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">
4248 </div>
4249 </div>
4250 <hr>
4251 <div class="form-group row">
4252 <div class="col-sm-3">
4253 <label for="redirectio_delay">
4254 <?php echo esc_html__('Delay', "poll-maker"); ?>
4255 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4256 title="<?php echo esc_html__('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
4257 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4258 </a>
4259 </label>
4260 </div>
4261 <div class="col-sm-9">
4262 <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">
4263 </div>
4264 </div>
4265 </div>
4266 </div>
4267
4268 </div>
4269 </div>
4270 <hr/>
4271 <div class="form-group row">
4272 <div class="col-sm-3">
4273 <label for="randomize-answers">
4274 <?php echo esc_html__('Randomize Answers', "poll-maker"); ?>
4275 <a class="ays_help" data-toggle="tooltip"
4276 data-placement="top"
4277 title="<?php echo esc_html__("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
4278 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4279 </a>
4280 </label>
4281 </div>
4282 <div class="col-sm-9">
4283 <input type="checkbox"
4284 name="randomize_answers"
4285 id="randomize-answers"
4286 value="on"
4287 <?php echo $randomize_answers ? 'checked' : ''; ?>
4288 />
4289 </div>
4290 </div>
4291 <hr/>
4292 <div class="form-group row ays_toggle_parent">
4293 <div class="col-sm-3" style="padding-right: 0px;">
4294 <label for="ays_enable_asnwers_sound">
4295 <?php echo esc_html__('Enable answers sound', "poll-maker")?>
4296 <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")?>">
4297 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4298 </a>
4299 </label>
4300 </div>
4301 <div class="col-sm-1">
4302 <input type="checkbox" id="ays_enable_asnwers_sound"
4303 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
4304 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
4305 </div>
4306 <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo esc_attr($enable_asnwers_sound) ? '' : 'display:none;' ?>">
4307 <?php if($answers_sound_status): ?>
4308 <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>
4309 <?php else: ?>
4310 <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>
4311 <?php endif; ?>
4312 </div>
4313 </div>
4314 <hr/>
4315 <div class="form-group row">
4316 <div class="col-3">
4317 <label for="ays-poll-reason">
4318 <?php echo esc_html__('Vote Reason', "poll-maker"); ?>
4319 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4320 title="<?php echo esc_html__("Allow users to add their vote reason", "poll-maker"); ?>">
4321 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4322 </a>
4323 </label>
4324 </div>
4325 <div class="col-9">
4326 <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo esc_attr($poll_vote_reason); ?>>
4327 </div>
4328 </div>
4329 <hr/>
4330 <div class="form-group row ays_toggle_parent">
4331 <div class="col-sm-3">
4332 <label for="ays_enable_vote_button">
4333 <?php echo esc_html__('Enable Vote button', "poll-maker") ?>
4334 <a class="ays_help" data-toggle="tooltip"
4335 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") ?>">
4336 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4337 </a>
4338 </label>
4339 </div>
4340 <div class="col-sm-1">
4341 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4342 value="1" <?php echo (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4343 </div>
4344 <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;' : '' ?>">
4345 <div class="row">
4346 <div class="col-sm-3 ays_divider_left">
4347 <label for="ays-poll-btn-text_vote">
4348 <?php echo esc_html__("Vote button text", "poll-maker"); ?>
4349 <a class="ays_help"
4350 data-toggle="tooltip"
4351 data-placement="top"
4352 title="<?php echo esc_html__("Write the text of the vote button.", "poll-maker"); ?>">
4353 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4354 </a>
4355 </label>
4356 </div>
4357 <div class="col-sm-9">
4358 <input type="text" class="ays-text-input ays-text-input-short"
4359 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4360 value="<?php echo esc_attr(stripslashes($options['btn_text'])) ?>"/>
4361 </div>
4362 </div>
4363 </div>
4364 </div>
4365 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4366 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4367 <div class="col-sm-3">
4368 <label for="ays_enable_view_more_button">
4369 <?php echo esc_html__('Enable View more button', "poll-maker") ?>
4370 <a class="ays_help" data-toggle="tooltip"
4371 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"); ?>">
4372 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4373 </a>
4374 </label>
4375 </div>
4376 <div class="col-sm-1">
4377 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_view_more_button" name="ays_enable_view_more_button"
4378 value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> />
4379 </div>
4380 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4381 <div class="form-group row">
4382 <div class="col-sm-3">
4383 <label for="ays_poll_view_more_button_count">
4384 <?php echo esc_html__("Count", "poll-maker"); ?>
4385 <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"); ?>">
4386 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4387 </a>
4388 </label>
4389 </div>
4390 <div class="col-sm-9">
4391 <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; ?>"/>
4392 </div>
4393 </div>
4394 </div>
4395 </div>
4396 <hr>
4397 <div class="form-group row">
4398 <div class="col-sm-3">
4399 <label for="ays_answers_sort_select">
4400 <?php echo esc_html__('Answers sorting', "poll-maker") ?>
4401 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4402 title="<?php
4403 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") .
4404 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4405 "<li>".esc_html__('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4406 "<li>".esc_html__('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4407 "<li>".esc_html__('Most voted – by most votes', "poll-maker") ."</li>".
4408 "<li>".esc_html__('Less voted - by less votes', "poll-maker") ."</li>".
4409 "<li>".esc_html__('Default - upon your preferences', "poll-maker") ."</li>".
4410 "</ul>";
4411 ?>">
4412 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4413 </a>
4414 </label>
4415 </div>
4416 <div class="col-sm-9">
4417 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4418 <option value="default" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo esc_html__('Default', "poll-maker") ?></option>
4419 <option value="ascending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo esc_html__('Ascending', "poll-maker") ?></option>
4420 <option value="descending" <?php echo isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo esc_html__('Descending', "poll-maker") ?></option>
4421 <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>
4422 <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>
4423 </select>
4424 </div>
4425 </div>
4426 <hr>
4427 <div class="form-group row">
4428 <div class="col-sm-3">
4429 <label for="ays_poll_aysDropdown">
4430 <?php echo esc_html__('Answers numbering', "poll-maker"); ?>
4431 <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"); ?>">
4432 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4433 </a>
4434 </label>
4435 </div>
4436 <div class="col-sm-9">
4437 <select class="ays_poll_aysDropdown" id="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4438 <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo esc_html__( "None", "poll-maker"); ?></option>
4439 <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo esc_html__( "1.", "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 == "A." ? "selected" : ""; ?> value="A."><?php echo esc_html__( "A.", "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 == "VI." ? "selected" : ""; ?> value="VI."><?php echo esc_html__( "VI.", "poll-maker"); ?></option>
4446 </select>
4447 </div>
4448 </div> <!-- Show answers numbering -->
4449 <hr>
4450 <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;' : ''; ?>">
4451 <div class="col-sm-3">
4452 <label for="ays_show_votes_before_voting">
4453 <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4454 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4455 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") ?>">
4456 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4457 </a>
4458 </label>
4459 </div>
4460 <div class="col-sm-1">
4461 <input type="checkbox" class="ays_toggle_checkbox" id="ays_show_votes_before_voting" name="ays_show_votes_before_voting"
4462 value="on" <?php echo ($show_votes_before_voting) ? 'checked' : ''; ?> />
4463 </div>
4464 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($show_votes_before_voting) ? '' : 'display: none'; ?>">
4465 <div class="d-flex">
4466 <div class="form-check-inline ays_poll_loader">
4467 <label class="form-check-label">
4468 <input type="radio" name="ays_show_votes_before_voting_by" value="by_count" <?php echo ($show_votes_before_voting_by == 'by_count') ? 'checked' : ''; ?> />
4469 <span><?= __('By count', "poll-maker"); ?></span>
4470 </label>
4471 </div>
4472 <div class="form-check-inline ays_poll_loader">
4473 <label class="form-check-label">
4474 <input type="radio" name="ays_show_votes_before_voting_by" value="by_percentage" <?php echo ($show_votes_before_voting_by == 'by_percentage') ? 'checked' : ''; ?> />
4475 <span><?= __('By percentage', "poll-maker"); ?></span>
4476 </label>
4477 </div>
4478 </div>
4479 </div>
4480 </div>
4481 </div>
4482 </div>
4483 <div class="only_pro" style="position: relative; display: inline-block">
4484 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
4485 <div class="pro-features-popup-conteiner">
4486 <div class="pro-features-popup-title">
4487 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
4488 </div>
4489 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
4490 <p>
4491 <?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"); ?>
4492 </p>
4493 <p>
4494 <?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"); ?>
4495 </p>
4496 </div>
4497 <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 ); ?>">
4498 <?php echo esc_html__("Pricing", "poll-maker"); ?>
4499 </div>
4500 </div>
4501 </div>
4502 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
4503 <span class="ays_save_as_default_content_for_mobile">
4504 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
4505 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
4506 </a>
4507 <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" ); ?>">
4508 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4509 </a>
4510 </span>
4511 </div>
4512 </div>
4513 </div>
4514 <div id="tab4" class="ays-poll-tab-content <?php echo $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4515 <div class="ays-poll-accordion-options-main-container">
4516 <div class="ays-poll-accordion-header">
4517 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
4518 <p class="ays-subtitle"><?php echo esc_html__('Limitation of Users', "poll-maker"); ?></p>
4519 </div>
4520 <hr class="ays-poll-bolder-hr"/>
4521 <div class="ays-poll-accordion-body">
4522 <div class="form-group row ays_toggle_parent">
4523 <div class="col-sm-3">
4524 <label for="apm_limit_users">
4525 <?php echo esc_html__('Maximum number of attempts per user', "poll-maker"); ?>
4526 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4527 title="<?php echo esc_html__('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4528 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4529 </a>
4530 </label>
4531 </div>
4532 <div class="col-sm-1">
4533 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4534 value="on" <?php echo $options['limit_users'] ? 'checked' : ''; ?> />
4535 </div>
4536 <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo $options['limit_users'] ? '' : 'display: none;'; ?>">
4537 <div class="ays-limitation-options">
4538 <!-- Limitation method -->
4539 <div class="form-group row">
4540 <div class="col-sm-3">
4541 <label for="ays_redirect_method">
4542 <?php echo esc_html__('Detects users by', "poll-maker"); ?>
4543 <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" ); ?>
4544 <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>
4545 <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>
4546 <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>
4547 <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>"
4548 >
4549 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4550 </a>
4551 </label>
4552 </div>
4553 <div class="col-sm-9">
4554 <div class="ays-poll-sel-fields d-flex p-0">
4555 <div class="ays-poll-check-box mr-2">
4556 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4557 value="ip" <?php echo (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4558 <label class="form-check-label"
4559 for="ays_limit_method_ip"><?php echo esc_html__('IP', "poll-maker"); ?> </label>
4560 </div>
4561 <div class="ays-poll-check-box mr-2">
4562 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4563 value="user" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4564 <label class="form-check-label"
4565 for="ays_limit_method_user"><?php echo esc_html__('User ID', "poll-maker"); ?> </label>
4566 </div>
4567 <div class="ays-poll-check-box mr-2">
4568 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4569 value="cookie" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4570 <label class="form-check-label"
4571 for="ays_limit_method_cookie"><?php echo esc_html__('Cookie', "poll-maker"); ?> </label>
4572 </div>
4573 <div class="ays-poll-check-box mr-2">
4574 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4575 value="cookie_ip" <?php echo !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4576 <label class="form-check-label"
4577 for="ays_limit_method_cookie_ip"><?php echo esc_html__('Cookie and IP', "poll-maker"); ?> </label>
4578 </div>
4579 </div>
4580 </div>
4581 </div>
4582 <hr>
4583 <!-- Limitation message -->
4584 <div class="form-group row">
4585 <div class="col-sm-3">
4586 <label for="ays_limitation_message">
4587 <?php echo esc_html__('Message', "poll-maker"); ?>
4588 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4589 title="<?php echo esc_html__('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4590 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4591 </a>
4592 </label>
4593 </div>
4594 <div class="col-sm-9">
4595 <?php
4596 $content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']);
4597 $editor_id = 'ays_limitation_message';
4598 $settings = array(
4599 'editor_height' => $poll_wp_editor_height,
4600 'textarea_name' => 'ays_limitation_message',
4601 'editor_class' => 'ays-textarea',
4602 'media_elements' => false
4603 );
4604 wp_editor($content, $editor_id, $settings);
4605 ?>
4606 </div>
4607 </div>
4608 <hr>
4609 <!-- Limitation redirect url -->
4610 <div class="form-group row">
4611 <div class="col-sm-3">
4612 <label for="ays_redirect_url">
4613 <?php echo esc_html__('Redirect URL', "poll-maker"); ?>
4614 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4615 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"); ?>">
4616 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4617 </a>
4618 </label>
4619 </div>
4620 <div class="col-sm-9">
4621 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4622 class="ays-text-input"
4623 value="<?php echo $options['redirect_url'] ?>"/>
4624 </div>
4625 </div>
4626 <hr>
4627 <!-- Limitation redirect delay -->
4628 <div class="form-group row">
4629 <div class="col-sm-3">
4630 <label for="ays_redirection_delay">
4631 <?php echo esc_html__('Redirect delay (sec)', "poll-maker"); ?>
4632 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4633 title="<?php echo esc_html__('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4634 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4635 </a>
4636 </label>
4637 </div>
4638 <div class="col-sm-9">
4639 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4640 class="ays-text-input"
4641 value="<?php echo $options['redirection_delay'] ?>"/>
4642 </div>
4643 </div>
4644 <hr>
4645 <div class="form-group row">
4646 <div class="col-sm-3">
4647 <label for="ays_see_result_show">
4648 <?php echo esc_html__('See results', "poll-maker"); ?>
4649 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4650 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" ); ?>
4651 <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>
4652 <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>">
4653 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4654 </a>
4655 </label>
4656 </div>
4657 <div class="col-sm-9">
4658 <div class="row">
4659 <div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;">
4660 <input type="checkbox" id="ays_see_result_show"
4661 name="ays_see_result_show"
4662 class="ays_poll_show_hide_button"
4663 value="on" <?php echo esc_attr($poll_see_result_button); ?>>
4664 </div>
4665
4666 <div class="col-sm-10" id="ays_poll_show_hide_button">
4667 <div class="row <?php echo esc_attr($poll_see_result_button_cont); ?>">
4668 <div class="col-sm-6">
4669 <div class="ays-poll-check-box d-flex align-items-center"
4670 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4671 <input type="radio"
4672 id="ays_see_result_button_show"
4673 name="ays_poll_see_result_show"
4674 class="ays_poll_show_hide_button mr-2"
4675 value="ays_see_result_button"
4676 <?php echo esc_attr($poll_see_result_botton_show) ?>>
4677 <label for="ays_see_result_button_show" class="form-check-label">
4678 <?php echo esc_html__('After clicking on the button', "poll-maker"); ?>
4679 </label>
4680 </div>
4681 </div>
4682 <div class="col-sm-6">
4683 <div class="ays-poll-check-box d-flex align-items-center"
4684 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4685 <input type="radio"
4686 id="ays_see_result_button_hide"
4687 name="ays_poll_see_result_show"
4688 class="ays_poll_show_hide_button mr-2"
4689 value="ays_see_result_immediately"
4690 <?php echo esc_attr($poll_see_result_immediately) ?>>
4691 <label for="ays_see_result_button_hide" class="form-check-label">
4692 <?php echo esc_html__('Directly', "poll-maker"); ?>
4693 </label>
4694 </div>
4695 </div>
4696
4697 </div>
4698 </div>
4699 </div>
4700 </div>
4701 </div>
4702 <hr>
4703 <div class="form-group row">
4704 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4705 <div class="pro_features" style="justify-content:flex-end;">
4706 </div>
4707 <div class="form-group row d-flex">
4708 <div class="col-sm-3">
4709 <label for="ays_attempts_count">
4710 <?php echo esc_html__('Attempts count', "poll-maker")?>
4711 <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")?>">
4712 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4713 </a>
4714 </label>
4715 </div>
4716 <div class="col-sm-9">
4717 <input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input">
4718 </div>
4719 </div>
4720 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4721 <div class="ays-poll-new-upgrade-button-box">
4722 <div>
4723 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4724 <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">
4725 </div>
4726 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4727 </div>
4728 </a>
4729 </div>
4730 </div>
4731 </div>
4732 </div>
4733 </div><!-- Maximum number of attempts per user -->
4734 <hr/>
4735 <div class="form-group row ays_toggle_parent">
4736 <div class="col-sm-3">
4737 <label for="ays_enable_logged_users">
4738 <?php echo esc_html__('Only for logged in users', "poll-maker"); ?>
4739 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4740 title="<?php echo esc_html__('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4741 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4742 </a>
4743 </label>
4744 </div>
4745 <div class="col-sm-1">
4746 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4747 value="on" <?php echo $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4748 </div>
4749 <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?php echo $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4750 <div class="form-group row">
4751 <div class="col-sm-3">
4752 <label for="ays_logged_in_message">
4753 <?php echo esc_html__('Message', "poll-maker"); ?>
4754 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4755 title="<?php echo esc_html__('Write the message for unauthorized users.', "poll-maker"); ?>">
4756 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4757 </a>
4758 </label>
4759 </div>
4760 <div class="col-sm-9">
4761 <?php
4762 $content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message'];
4763 $editor_id = 'ays_logged_in_message';
4764 $settings = array(
4765 'editor_height' => $poll_wp_editor_height,
4766 'textarea_name' => 'ays_enable_logged_users_message',
4767 'editor_class' => 'ays-textarea',
4768 'media_elements' => false
4769 );
4770 wp_editor($content, $editor_id, $settings);
4771 ?>
4772 </div>
4773 </div>
4774 <hr/>
4775 <div class="form-group row">
4776 <div class="col-sm-3">
4777 <label for="ays_show_login_form">
4778 <?php echo esc_html__('Show Login form', "poll-maker")?>
4779 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Enable to show the login form.', "poll-maker")?>">
4780 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4781 </a>
4782 </label>
4783 </div>
4784 <div class="col-sm-9">
4785 <input type="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' : ''; ?>/>
4786 </div>
4787 </div>
4788 </div>
4789 </div> <!-- Only for logged in users -->
4790 <hr/>
4791 <div class="form-group row ays_toggle_parent">
4792 <div class="col-sm-3">
4793 <label for="ays_enable_restriction_pass">
4794 <?php echo esc_html__('Only for selected user role', "poll-maker"); ?>
4795 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4796 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"); ?>">
4797 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4798 </a>
4799 </label>
4800 </div>
4801 <div class="col-sm-1">
4802 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4803 value="on" <?php echo (isset($options['enable_restriction_pass']) &&
4804 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4805 </div>
4806 <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;'; ?>">
4807 <div class="form-group row">
4808 <div class="col-sm-3">
4809 <label for="ays_users_roles">
4810 <?php echo esc_html__('User role', "poll-maker"); ?></label>
4811 </div>
4812 <div class="col-sm-9">
4813 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4814 <?php
4815 foreach ($ays_users_roles as $key => $user_role) {
4816 $selected_role = "";
4817 if(is_array($users_role)){
4818 if(in_array($user_role['name'], $users_role)){
4819 $selected_role = 'selected';
4820 }else{
4821 $selected_role = '';
4822 }
4823 }else{
4824 if($users_role == $user_role['name']){
4825 $selected_role = 'selected';
4826 }else{
4827 $selected_role = '';
4828 }
4829 }
4830 echo "<option value='" . esc_attr($user_role['name']) . "' " . esc_attr($selected_role) . ">" . esc_html($user_role['name']) . "</option>";
4831 }
4832 ?>
4833 </select>
4834 </div>
4835 </div>
4836 <hr>
4837 <div class="form-group row">
4838 <div class="col-sm-3">
4839 <label for="restriction_pass_message">
4840 <?php echo esc_html__('Message', "poll-maker"); ?>
4841 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4842 title="<?php echo esc_html__('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4843 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4844 </a>
4845 </label>
4846 </div>
4847 <div class="col-sm-9">
4848 <?php
4849 $content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']);
4850 $editor_id = 'restriction_pass_message';
4851 $settings = array(
4852 'editor_height' => $poll_wp_editor_height,
4853 'textarea_name' => 'restriction_pass_message',
4854 'editor_class' => 'ays-textarea',
4855 'media_elements' => false
4856 );
4857 wp_editor($content, $editor_id, $settings);
4858 ?>
4859 </div>
4860 </div>
4861 </div>
4862 </div> <!-- Only for selected user role -->
4863 <hr>
4864 <div class="form-group row ays_toggle_parent">
4865 <div class="col-sm-3">
4866 <label for="ays_poll_enable_password">
4867 <?php echo esc_html__('Password for passing Poll', "poll-maker")?>
4868 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Choose a password for users to pass the poll.' , "poll-maker")?>">
4869 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4870 </a>
4871 </label>
4872 </div>
4873 <div class="col-sm-1">
4874 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password"
4875 name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>>
4876 </div>
4877 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4878 <div class="form-group row">
4879 <div class="col-sm-3">
4880 <label for="ays_poll_password">
4881 <?php echo esc_html__('Password' , "poll-maker")?>
4882 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.' , "poll-maker")?>">
4883 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4884 </a>
4885 </label>
4886 </div>
4887 <div class="col-sm-9">
4888 <input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>">
4889 </div>
4890 </div>
4891 <hr>
4892 <div class="form-group row">
4893 <div class="col-sm-3">
4894 <label for="ays_poll_enable_password_visibility">
4895 <?php echo esc_html__('Enable toggle password visibility', "poll-maker"); ?>
4896 <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"); ?>">
4897 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4898 </a>
4899 </label>
4900 </div>
4901 <div class="col-sm-9">
4902 <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' : ''; ?>/>
4903 </div>
4904 </div>
4905 <hr>
4906 <div class="form-group row">
4907 <div class="col-sm-3">
4908 <label for="ays_poll_password">
4909 <?php echo esc_html__('Message', "poll-maker")?>
4910 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Write your password.', "poll-maker")?>">
4911 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4912 </a>
4913 </label>
4914 </div>
4915
4916 <div class="col-sm-9">
4917 <?php
4918 $content = $poll_password_message;
4919 $editor_id = 'ays-poll-password-message';
4920 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
4921 wp_editor($content, $editor_id, $settings);
4922 ?>
4923 </div>
4924 </div>
4925 </div>
4926 </div><!-- Password for passing Poll PRO Feautre-->
4927 <hr>
4928 <div class="form-group row">
4929 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4930 <div class="pro_features" style="justify-content:flex-end;">
4931 </div>
4932 <div class="form-group row ays_toggle_parent">
4933 <div class="col-sm-3">
4934 <label for="ays_enable_tackers_count">
4935 <?php echo esc_html__('Limitation count of takers', "poll-maker")?>
4936 <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")?>">
4937 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4938 </a>
4939 </label>
4940 </div>
4941 <div class="col-sm-1">
4942 <input type="checkbox" class="ays-enable-timer1"
4943 name="ays_enable_tackers_count" value="on">
4944 </div>
4945 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4946 <div class="form-group row">
4947 <div class="col-sm-3">
4948 <label for="ays_tackers_count">
4949 <?php echo esc_html__('Count', "poll-maker")?>
4950 <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")?>">
4951 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4952 </a>
4953 </label>
4954 </div>
4955 <div class="col-sm-9">
4956 <input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input"
4957 >
4958 </div>
4959 </div>
4960 </div>
4961 </div>
4962 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4963 <div class="ays-poll-new-upgrade-button-box">
4964 <div>
4965 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4966 <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">
4967 </div>
4968 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4969 </div>
4970 </a>
4971 </div>
4972 </div><!-- Limitation count of takers Poll PRO Feautre-->
4973 <hr>
4974 <div class="form-group row">
4975 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4976 <div class="pro_features" style="justify-content:flex-end;">
4977 </div>
4978 <div class="form-group row ays_toggle_parent">
4979 <div class="col-sm-3">
4980 <label for="ays_enable_vote_limitation">
4981 <?php echo esc_html__('Allow to vote once per session', "poll-maker")?>
4982 <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")?>">
4983 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4984 </a>
4985 </label>
4986 </div>
4987 <div class="col-sm-1">
4988 <input type="checkbox" class="ays-enable-timer1"
4989 name="ays_enable_vote_limitation" value="on" >
4990 </div>
4991 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4992 <div class="form-group row">
4993 <div class="col-sm-3">
4994 <label for="ays_vote_limitation">
4995 <?php echo esc_html__('Session Period', "poll-maker")?>
4996 <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")?>">
4997 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4998 </a>
4999 </label>
5000 </div>
5001 <div class="col-sm-7">
5002 <input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input">
5003
5004 </div>
5005 <div class="col-sm-2 ays_vote_limitation_time_period_box">
5006 <select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period">
5007 <option>Minute(s)
5008 </option>
5009 </select>
5010 </div>
5011 </div>
5012 <div class="form-group row d-flex w-100">
5013 <div class="col-sm-3">
5014 <label for="">
5015 <?php echo esc_html__('Message', "poll-maker"); ?>
5016 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5017 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"); ?>">
5018 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5019 </a>
5020 </label>
5021 </div>
5022 <div class="col-sm-9">
5023 <?php
5024 $editor_id = 'vote_limit_message';
5025 $settings = array(
5026 'editor_height' => 100,
5027 'textarea_name' => 'vote_limit_message',
5028 'editor_class' => 'ays-textarea',
5029 'media_elements' => false
5030 );
5031 wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings);
5032 ?>
5033 </div>
5034 </div>
5035 </div>
5036 </div>
5037 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5038 <div class="ays-poll-new-upgrade-button-box">
5039 <div>
5040 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5041 <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">
5042 </div>
5043 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5044 </div>
5045 </a>
5046 </div>
5047 </div> <!-- Allow to vote once per session PRO Feautre-->
5048 <hr>
5049 <div class="form-group row">
5050 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5051 <div class="pro_features" style="justify-content:flex-end;">
5052 </div>
5053 <div class="form-group row ays_toggle_parent">
5054 <div class="col-sm-3">
5055 <label for="enable_limit_by_country">
5056 <?php echo esc_html__('Limit by country', "poll-maker")?>
5057 <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")?>">
5058 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5059 </a>
5060 </label>
5061 </div>
5062 <div class="col-sm-1">
5063 <input type="checkbox" class="ays-enable-timer1"/>
5064 </div>
5065 <div class="col-sm-8 ays_toggle_target ays_divider_left">
5066 <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>
5067 <option selected value="AD">Andorra</option>
5068 <option selected value="US">United States</option>
5069 <option selected value="GB">United Kingdom</option>
5070 <option selected value="FR">France</option>
5071 </select>
5072 </div>
5073 </div>
5074 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5075 <div class="ays-poll-new-upgrade-button-box">
5076 <div>
5077 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5078 <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">
5079 </div>
5080 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5081 </div>
5082 </a>
5083 </div>
5084 </div> <!-- Limit by country PRO Feautre -->
5085 <hr>
5086 </div>
5087 </div>
5088 <div class="only_pro" style="position: relative; display: inline-block">
5089 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5090 <div class="pro-features-popup-conteiner">
5091 <div class="pro-features-popup-title">
5092 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5093 </div>
5094 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5095 <p>
5096 <?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"); ?>
5097 </p>
5098 <p>
5099 <?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"); ?>
5100 </p>
5101 </div>
5102 <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 ); ?>">
5103 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5104 </div>
5105 </div>
5106 </div>
5107 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5108 <span class="ays_save_as_default_content_for_mobile">
5109 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5110 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5111 </a>
5112 <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" ); ?>">
5113 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5114 </a>
5115 </span>
5116 </div>
5117 </div>
5118 </div>
5119 <div id="tab5" class="ays-poll-tab-content <?php echo $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
5120 <div class="ays-poll-accordion-options-main-container">
5121 <div class="ays-poll-accordion-header">
5122 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5123 <p class="ays-subtitle"><?php echo esc_html__('User Data Settings', "poll-maker"); ?></p>
5124 </div>
5125 <hr class="ays-poll-bolder-hr"/>
5126 <div class="ays-poll-accordion-body">
5127 <div class="form-group row">
5128 <div class="col-sm-3">
5129 <label>
5130 <?php echo esc_html__('Information form title', "poll-maker"); ?>
5131 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5132 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"); ?>">
5133 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5134 </a>
5135 </label>
5136 </div>
5137 <div class="col-sm-9 ays_divider_left">
5138 <?php
5139 $content = stripslashes($options['info_form_title']);
5140 $editor_id = 'ays-poll-info-form-text';
5141 $settings = array(
5142 'editor_height' => $poll_wp_editor_height,
5143 'textarea_name' => 'ays-poll-info-form-text',
5144 'editor_class' => 'ays-textarea',
5145 'media_elements' => false
5146 );
5147 wp_editor($content, $editor_id, $settings);
5148 ?>
5149 </div>
5150 </div>
5151 <hr>
5152 <div class="form-group row ays_toggle_parent">
5153 <div class="col-sm-2">
5154 <label for='ays_poll_info_form'>
5155 <?php echo esc_html__('Enable Information Form', "poll-maker"); ?>
5156 <a class="ays_help" data-toggle="tooltip"
5157 data-placement="top"
5158 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"); ?>">
5159 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5160 </a>
5161 </label>
5162 </div>
5163 <div class="col-sm-1">
5164 <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' : ''; ?>>
5165 </div>
5166 <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' : ''; ?>">
5167 <div class="col-sm-7">
5168 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
5169 <?php echo esc_html__('Allow collecting information of logged in users', "poll-maker"); ?>
5170 <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")?>">
5171 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5172 </a>
5173 </label>
5174 <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; ?>>
5175 </div> <!-- Allow collecting information of logged in users -->
5176 </div>
5177 <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;"; ?>">
5178 <div>
5179 <label>
5180 <?php echo esc_html__('Form Fields', "poll-maker"); ?>
5181 <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"); ?>">
5182 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5183 </a>
5184 </label>
5185 <hr>
5186 </div>
5187 <div>
5188 <div class="ays-poll-sel-fields d-flex">
5189 <?php foreach ( $all_fields as $field ): ?>
5190 <div class="ays-poll-check-box mr-2">
5191 <input type="checkbox" name="ays-poll-form-fields[]" value="<?php echo $field['slug']; ?>" id="ays-poll-form-field-<?php echo $field['slug']; ?>"
5192 <?php echo (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
5193 <label for="ays-poll-form-field-<?php echo $field['slug']; ?>">
5194 <?php echo ucfirst($field['name']); ?></label>
5195 </div>
5196 <?php endforeach; ?>
5197 </div>
5198 <hr>
5199 </div>
5200 <div>
5201 <label>
5202 <?php echo esc_html__('Required Fields', "poll-maker"); ?>
5203 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5204 title="<?php echo esc_html__("Select which fields are required.", "poll-maker"); ?>">
5205 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5206 </a>
5207 </label>
5208 <hr>
5209 </div>
5210 <div>
5211 <div class="ays-poll-sel-fields d-flex">
5212 <?php foreach ( $all_fields as $field ): ?>
5213 <div class="ays-poll-check-box mr-2"
5214 id="ays-poll-box-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5215 $fields) === false) ? "style='display:none'" : ""; ?>>
5216 <input type="checkbox" name="ays-poll-form-required-fields[]"
5217 value="<?php echo $field['slug']; ?>"
5218 id="ays-poll-form-rfield-<?php echo $field['slug']; ?>" <?php echo (array_search($field['slug'],
5219 $required_fields) !== false) ? "checked" : ""; ?>>
5220 <label for="ays-poll-form-rfield-<?php echo $field['slug']; ?>">
5221 <?php echo ucfirst($field['name']); ?></label>
5222 </div>
5223 <?php endforeach; ?>
5224 </div>
5225 </div>
5226 </div>
5227 <hr>
5228 </div>
5229 <hr>
5230 <div class="form-group row">
5231 <div class="col-sm-3">
5232 <label for="ays_poll_autofill_user_data">
5233 <?php echo esc_html__('Autofill logged-in user data', "poll-maker"); ?>
5234 <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"); ?>">
5235 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5236 </a>
5237 </label>
5238 </div>
5239 <div class="col-sm-9">
5240 <div class="information_form_settings">
5241 <input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>>
5242 </div>
5243 </div>
5244 </div>
5245 <hr>
5246 <div class="form-group row">
5247 <div class="col-sm-3">
5248 <label for="ays_poll_display_fields_labels">
5249 <?php echo esc_html__('Display form fields with labels', "poll-maker"); ?>
5250 <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"); ?>">
5251 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5252 </a>
5253 </label>
5254 </div>
5255 <div class="col-sm-9">
5256 <div class="information_form_settings">
5257 <input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>>
5258 </div>
5259 </div>
5260 </div>
5261 <hr>
5262 <div class="form-group row">
5263 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5264 <div class="pro_features" style="justify-content:flex-end;">
5265 </div>
5266 <div class="form-group row">
5267 <div class="col-sm-3">
5268 <label>
5269 <?php echo esc_html__('Add custom fields', "poll-maker"); ?>
5270 <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"); ?>">
5271 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5272 </a>
5273 </label>
5274 </div>
5275 <div class="col-sm-9">
5276 <blockquote>
5277 <?php echo esc_html__("For creating custom fields click ", "poll-maker"); ?>
5278 <a href="?page=<?php echo $this->plugin_name; ?>-poll-attributes"><?php echo esc_html__("here", "poll-maker"); ?></a>
5279 </blockquote>
5280 </div>
5281 </div>
5282 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5283 <div class="ays-poll-new-upgrade-button-box">
5284 <div>
5285 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5286 <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">
5287 </div>
5288 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5289 </div>
5290 </a>
5291 </div>
5292 </div>
5293 <hr>
5294 </div>
5295 </div>
5296 <div class="only_pro" style="position: relative; display: inline-block">
5297 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5298 <div class="pro-features-popup-conteiner">
5299 <div class="pro-features-popup-title">
5300 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5301 </div>
5302 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5303 <p>
5304 <?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"); ?>
5305 </p>
5306 <p>
5307 <?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"); ?>
5308 </p>
5309 </div>
5310 <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 ); ?>">
5311 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5312 </div>
5313 </div>
5314 </div>
5315 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5316 <span class="ays_save_as_default_content_for_mobile">
5317 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5318 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5319 </a>
5320 <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" ); ?>">
5321 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5322 </a>
5323 </span>
5324 </div>
5325 </div>
5326 </div>
5327 <div id="tab6" class="ays-poll-tab-content <?php echo $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
5328 <div class="ays-poll-accordion-options-main-container">
5329 <div class="ays-poll-accordion-header">
5330 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5331 <p class="ays-subtitle"><?php echo esc_html__('Email settings', "poll-maker"); ?></p>
5332 </div>
5333 <hr class="ays-poll-bolder-hr"/>
5334 <div class="ays-poll-accordion-body">
5335 <div class="form-group row ays_toggle_parent">
5336 <div class="col-sm-3">
5337 <label for="ays_notify_by_email_on">
5338 <?php echo esc_html__('Results notification by email', "poll-maker"); ?>
5339 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5340 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"); ?>">
5341 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5342 </a>
5343 </label>
5344 </div>
5345 <div class="col-sm-1">
5346 <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' : ''; ?> />
5347 </div>
5348 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
5349 <div class="row ays_divider_left">
5350 <div class="col-sm-3">
5351 <label for="ays_notify_email">
5352 <?php echo esc_html__('Email address', "poll-maker"); ?>
5353 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5354 title="<?php echo esc_html__('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
5355 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5356 </a>
5357 </label>
5358 </div>
5359 <div class="col-sm-9">
5360 <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">
5361 </div>
5362 </div>
5363 </div>
5364 </div>
5365 <hr>
5366 <div class="form-group row">
5367 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5368 <div class="pro_features pro_features_popup">
5369 <div class="pro-features-popup-conteiner">
5370 <div class="pro-features-popup-title">
5371 <?php echo esc_html__("Send Mail to User", "poll-maker"); ?>
5372 </div>
5373 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
5374 <p>
5375 <?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"); ?>
5376 </p>
5377 <p>
5378 <?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"); ?>
5379 </p>
5380 </div>
5381 <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 ); ?>">
5382 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5383 </div>
5384 </div>
5385 </div>
5386 <div class="pro_features" style="justify-content:flex-end;">
5387 </div>
5388 <div class="form-group row" >
5389 <div class="col-sm-3">
5390 <label for="ays_enable_mail_user">
5391 <?php echo esc_html__('Send Mail to User', "poll-maker"); ?>
5392 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5393 title="<?php echo esc_html__('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
5394 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5395 </a>
5396 </label>
5397 </div>
5398 <div class="col-sm-1">
5399 <input type="checkbox" name="ays_enable_mail_user" value="on" />
5400 </div>
5401 <div class="col-sm-8 if-enable-email_note">
5402
5403 </div>
5404 </div>
5405 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5406 <div class="ays-poll-new-upgrade-button-box">
5407 <div>
5408 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5409 <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">
5410 </div>
5411 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5412 </div>
5413 </a>
5414 <div class="ays-poll-new-watch-video-button-box">
5415 <div>
5416 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
5417 <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">
5418 </div>
5419 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
5420 </div>
5421 </div>
5422 </div>
5423 <hr>
5424 <div class="form-group row">
5425 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5426 <div class="pro_features" style="justify-content:flex-end;">
5427 </div>
5428 <div class="form-group row">
5429 <div class="col-sm-4">
5430 <label>
5431 <?php echo esc_html__('Email configuration', "poll-maker")?>
5432 <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"); ?>">
5433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5434 </a>
5435 </label>
5436 </div>
5437 <div class="col-sm-8 ays_divider_left">
5438 <div class="form-group row">
5439 <div class="col-sm-3">
5440 <label for="ays_poll_email_configuration_from_email">
5441 <?php echo esc_html__('From email', "poll-maker")?>
5442 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5443 /* translators: 1: opening em tag, 2: closing em tag */
5444 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"),
5445 '<em>',
5446 '</em>'
5447 ) );
5448 ?>">
5449 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5450 </a>
5451 </label>
5452 </div>
5453 <div class="col-sm-9">
5454 <input type="text" class="ays-text-input" />
5455 </div>
5456 </div> <!-- From email -->
5457 <hr/>
5458 <div class="form-group row">
5459 <div class="col-sm-3">
5460 <label for="ays_poll_email_configuration_from_name">
5461 <?php echo esc_html__('From name', "poll-maker")?>
5462 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5463 /* translators: 1: opening em tag, 2: closing em tag */
5464 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"),
5465 // translators: 1: opening em tag,
5466 '<em>',
5467 // translators: 2: closing em tag
5468 '</em>'
5469 ), array(
5470 'em' => array()
5471 ) );
5472 ?>">
5473 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5474 </a>
5475 </label>
5476 </div>
5477 <div class="col-sm-9">
5478 <input type="text" class="ays-text-input" >
5479 </div>
5480 </div><!-- From name -->
5481 <hr/>
5482 <div class="form-group row">
5483 <div class="col-sm-3">
5484 <label for="ays_poll_email_configuration_from_subject">
5485 <?php echo esc_html__('Subject', "poll-maker")?>
5486 <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"); ?>">
5487 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5488 </a>
5489 </label>
5490 </div>
5491 <div class="col-sm-9">
5492 <input type="text" class="ays-text-input">
5493 </div>
5494 </div> <!-- Subject -->
5495 <hr/>
5496 <div class="form-group row">
5497 <div class="col-sm-3">
5498 <label for="ays_poll_email_configuration_replyto_email">
5499 <?php echo esc_html__('Reply to email', "poll-maker")?>
5500 <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"); ?>">
5501 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5502 </a>
5503 </label>
5504 </div>
5505 <div class="col-sm-9">
5506 <input type="text" class="ays-text-input">
5507 </div>
5508 </div> <!-- Reply to email -->
5509 <hr/>
5510 <div class="form-group row">
5511 <div class="col-sm-3">
5512 <label for="ays_poll_email_configuration_replyto_name">
5513 <?php echo esc_html__('Reply to name', "poll-maker")?>
5514 <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"); ?>">
5515 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5516 </a>
5517 </label>
5518 </div>
5519 <div class="col-sm-9">
5520 <input type="text" class="ays-text-input">
5521 </div>
5522 </div> <!-- Reply to name -->
5523 </div>
5524 </div> <!-- Email Configuration -->
5525 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5526 <div class="ays-poll-new-upgrade-button-box">
5527 <div>
5528 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5529 <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">
5530 </div>
5531 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5532 </div>
5533 </a>
5534 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5535 <div class="ays-poll-center-big-main-button-box">
5536 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5537 <div class="ays-poll-center-new-big-upgrade-button">
5538 <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">
5539 <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">
5540 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
5541 </div>
5542 </a>
5543 </div>
5544 </div>
5545 </div>
5546 </div>
5547 <hr>
5548 </div>
5549 </div>
5550 <div class="only_pro" style="position: relative; display: inline-block">
5551 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
5552 <div class="pro-features-popup-conteiner">
5553 <div class="pro-features-popup-title">
5554 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
5555 </div>
5556 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
5557 <p>
5558 <?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"); ?>
5559 </p>
5560 <p>
5561 <?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"); ?>
5562 </p>
5563 </div>
5564 <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 ); ?>">
5565 <?php echo esc_html__("Pricing", "poll-maker"); ?>
5566 </div>
5567 </div>
5568 </div>
5569 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
5570 <span class="ays_save_as_default_content_for_mobile">
5571 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
5572 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
5573 </a>
5574 <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" ); ?>">
5575 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5576 </a>
5577 </span>
5578 </div>
5579 </div>
5580 </div>
5581 <div id="tab7" class="ays-poll-tab-content <?php echo $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5582 <div class="ays-poll-accordion-options-main-container">
5583 <div class="ays-poll-accordion-header">
5584 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
5585 <p class="ays-subtitle"><?php echo esc_html__('Integrations settings', "poll-maker"); ?></p>
5586 </div>
5587 <hr class="ays-poll-bolder-hr"/>
5588 <div class="ays-poll-accordion-body">
5589 <fieldset class="ays_poll_settings_integration_container">
5590 <legend>
5591 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mailchimp_logo.png" alt="">
5592 <h5><?php echo esc_html__('MailChimp Settings', "poll-maker")?></h5>
5593 </legend>
5594 <?php
5595 if(count($mailchimp) > 0):
5596 ?>
5597 <?php
5598 if($mailchimp_username == "" || $mailchimp_api_key == ""):
5599 ?>
5600 <blockquote class="error_message">
5601 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5602 <?php echo (
5603 /* translators: anchor tag */
5604 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5605 "<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>"
5606 )
5607 );
5608 ?>
5609 </blockquote>
5610 <?php
5611 else:
5612 ?>
5613 <div class="form-group row">
5614 <div class="col-sm-4">
5615 <label for="ays_enable_mailchimp">
5616 <?php echo esc_html__('Enable MailChimp', "poll-maker")?>
5617 </label>
5618 </div>
5619 <div class="col-sm-1">
5620 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
5621 name="ays_enable_mailchimp"
5622 value="on"
5623 <?php
5624 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5625 echo "disabled";
5626 }else{
5627 echo ($enable_mailchimp == 'on') ? 'checked' : '';
5628 }
5629 ?>/>
5630 </div>
5631 </div>
5632 <hr>
5633 <div class="form-group row">
5634 <div class="col-sm-4">
5635 <label for="ays_mailchimp_list">
5636 <?php echo esc_html__('MailChimp list', "poll-maker")?>
5637 </label>
5638 </div>
5639 <div class="col-sm-8">
5640 <?php if(is_array($mailchimp_select)): ?>
5641 <select name="ays_mailchimp_list" id="ays_mailchimp_list"
5642 <?php
5643 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5644 echo 'disabled';
5645 }
5646 ?>>
5647 <option value="" disabled selected>Select list</option>
5648 <?php foreach($mailchimp_select as $mlist): ?>
5649 <option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?>
5650 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5651 <?php endforeach; ?>
5652 </select>
5653 <?php else: ?>
5654 <span><?php echo esc_html($mailchimp_select); ?></span>
5655 <?php endif; ?>
5656 </div>
5657 </div>
5658 <?php
5659 endif;
5660 ?>
5661 <?php
5662 else:
5663 ?>
5664 <blockquote class="error_message">
5665 <?php echo (
5666 /* translators: anchor tag */
5667 sprintf(esc_html__("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5668 "<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>"
5669 )
5670 );
5671 ?>
5672 </blockquote>
5673 <?php
5674 endif;
5675 ?>
5676 </fieldset><!-- MailChimp Settings -->
5677 <hr/>
5678 <fieldset class="ays_poll_settings_integration_container">
5679 <legend>
5680 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/campaignmonitor_logo.png" alt="">
5681 <h5><?php echo esc_html__('Campaign Monitor Settings', "poll-maker") ?></h5>
5682 </legend>
5683 <div class="form-group row" style="margin: 0px;">
5684 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5685 <div class="pro_features" style="justify-content:flex-end;">
5686 </div>
5687 <div class="form-group row">
5688 <div class="col-sm-4">
5689 <label for="ays_enable_monitor">
5690 <?php echo esc_html__('Enable Campaign Monitor', "poll-maker") ?>
5691 </label>
5692 </div>
5693 <div class="col-sm-8">
5694 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
5695 </div>
5696 </div>
5697 <hr>
5698 <div class="form-group row">
5699 <div class="col-sm-4">
5700 <label for="ays_monitor_list">
5701 <?php echo esc_html__('Campaign Monitor list', "poll-maker") ?>
5702 </label>
5703 </div>
5704 <div class="col-sm-8">
5705 <select name="ays_monitor_list" id="ays_monitor_list">
5706 <option value="" disabled selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5707 </select>
5708 </div>
5709 </div>
5710 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5711 <div class="ays-poll-new-upgrade-button-box">
5712 <div>
5713 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5714 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5715 </div>
5716 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5717 </div>
5718 </a>
5719 </div>
5720 </div>
5721 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5722 <hr/>
5723 <fieldset class="ays_poll_settings_integration_container">
5724 <legend>
5725 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/zapier_logo.png" alt="">
5726 <h5><?php echo esc_html__('Zapier Integration Settings', "poll-maker") ?></h5>
5727 </legend>
5728 <div class="form-group row" style="margin: 0px;">
5729 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5730 <div class="pro_features" style="justify-content:flex-end;">
5731 </div>
5732 <div class="form-group row">
5733 <div class="col-sm-4">
5734 <label for="ays_enable_zapier">
5735 <?php echo esc_html__('Enable Zapier Integration', "poll-maker") ?>
5736 </label>
5737 </div>
5738 <div class="col-sm-1">
5739 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
5740 </div>
5741 <div class="col-sm-3">
5742 <button type="button"
5743 id="testZapier"
5744 class="btn btn-outline-secondary">
5745 <?php echo esc_html__("Send test data", "poll-maker") ?>
5746 </button>
5747 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5748 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") ?>">
5749 <i class="ays_fa ays_fa_info_circle"></i>
5750 </a>
5751 </div>
5752 </div>
5753 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5754 <div class="ays-poll-new-upgrade-button-box">
5755 <div>
5756 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5757 <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">
5758 </div>
5759 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5760 </div>
5761 </a>
5762 </div>
5763 </div>
5764 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5765 <hr/>
5766 <fieldset class="ays_poll_settings_integration_container">
5767 <legend>
5768 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/activecampaign_logo.png" alt="">
5769 <h5><?php echo esc_html__('Active Campaign Settings', "poll-maker") ?></h5>
5770 </legend>
5771 <div class="form-group row" style="margin: 0px;">
5772 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5773 <div class="pro_features" style="justify-content:flex-end;">
5774 </div>
5775 <div class="form-group row">
5776 <div class="col-sm-4">
5777 <label for="ays_enable_active_camp">
5778 <?php echo esc_html__('Enable ActiveCampaign', "poll-maker") ?>
5779 </label>
5780 </div>
5781 <div class="col-sm-1">
5782 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
5783 </div>
5784 </div>
5785 <hr>
5786 <div class="form-group row">
5787 <div class="col-sm-4">
5788 <label>
5789 <?php echo esc_html__('ActiveCampaign list', "poll-maker") ?>
5790 </label>
5791 </div>
5792 <div class="col-sm-8">
5793 <select name="ays_active_camp_list" id="ays_active_camp_list">
5794 <option value="" disabled
5795 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5796 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5797 </select>
5798 </div>
5799 </div>
5800 <hr>
5801 <div class="form-group row">
5802 <div class="col-sm-4">
5803 <label>
5804 <?php echo esc_html__('ActiveCampaign automation', "poll-maker") ?>
5805 </label>
5806 </div>
5807 <div class="col-sm-8">
5808 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5809 <option value="" disabled
5810 selected><?php echo esc_html__("Select List", "poll-maker") ?></option>
5811 <option value=""><?php echo esc_html__("Just create contact", "poll-maker") ?></option>
5812 </select>
5813 </div>
5814 </div>
5815 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5816 <div class="ays-poll-new-upgrade-button-box">
5817 <div>
5818 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5819 <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">
5820 </div>
5821 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5822 </div>
5823 </a>
5824 </div>
5825 </div>
5826 </fieldset><!-- Active Campaign Settings PRO Feature -->
5827 <hr/>
5828 <fieldset class="ays_poll_settings_integration_container">
5829 <legend>
5830 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/slack_logo.png" alt="">
5831 <h5><?php echo esc_html__('Slack Settings', "poll-maker") ?></h5>
5832 </legend>
5833 <div class="form-group row" style="margin: 0px;">
5834 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5835 <div class="pro_features" style="justify-content:flex-end;">
5836 </div>
5837 <div class="form-group row">
5838 <div class="col-sm-4">
5839 <label for="ays_enable_slack">
5840 <?php echo esc_html__('Enable Slack integration', "poll-maker") ?>
5841 </label>
5842 </div>
5843 <div class="col-sm-1">
5844 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
5845 </div>
5846 </div>
5847 <hr>
5848 <div class="form-group row">
5849 <div class="col-sm-4">
5850 <label>
5851 <?php echo esc_html__('Slack conversation', "poll-maker") ?>
5852 </label>
5853 </div>
5854 <div class="col-sm-8">
5855 <select id="ays_slack_conversation">
5856 <option value="" disabled
5857 selected><?php echo esc_html__("Select Channel", "poll-maker") ?></option>
5858 </select>
5859 </div>
5860 </div>
5861 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5862 <div class="ays-poll-new-upgrade-button-box">
5863 <div>
5864 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5865 <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">
5866 </div>
5867 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5868 </div>
5869 </a>
5870 </div>
5871 </div>
5872 </fieldset> <!-- Slack Settings PRO Feature -->
5873 <hr>
5874 <fieldset class="ays_poll_settings_integration_container">
5875 <legend>
5876 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/sheets_logo.png" alt="">
5877 <h5><?php echo esc_html__('Google Sheet Settings', "poll-maker") ?></h5>
5878 </legend>
5879 <div class="form-group row" style="margin: 0px;">
5880 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5881 <div class="pro_features" style="justify-content:flex-end;">
5882 </div>
5883 <div class="form-group row">
5884 <div class="col-sm-4">
5885 <label for="ays_poll_enable_google">
5886 <?php echo esc_html__('Enable Google integration', "poll-maker") ?>
5887 </label>
5888 </div>
5889 <div class="col-sm-1">
5890 <input type="checkbox" class="ays-enable-timer1"
5891 value="on">
5892 </div>
5893 </div>
5894 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5895 <div class="ays-poll-new-upgrade-button-box">
5896 <div>
5897 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5898 <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">
5899 </div>
5900 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5901 </div>
5902 </a>
5903 </div>
5904 </div>
5905 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5906 <hr>
5907 <fieldset class="ays_poll_settings_integration_container">
5908 <legend>
5909 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5910 <h5><?php echo esc_html__('Mad Mimi', "poll-maker") ?></h5>
5911 </legend>
5912 <div class="form-group row" style="margin: 0px;">
5913 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5914 <div class="pro_features" style="justify-content:flex-end;">
5915 </div>
5916 <hr/>
5917 <div class="form-group row">
5918 <div class="col-sm-4">
5919 <label for="ays_poll_enable_mad_mimi">
5920 <?php echo esc_html__('Enable Mad Mimi', "poll-maker") ?>
5921 </label>
5922 </div>
5923 <div class="col-sm-1">
5924 <input type="checkbox" class="ays-enable-timer1">
5925 </div>
5926 </div>
5927 <hr>
5928 <div class="form-group row">
5929 <div class="col-sm-4">
5930 <label>
5931 <?php echo esc_html__('Select List', "poll-maker") ?>
5932 </label>
5933 </div>
5934 <div class="col-sm-8">
5935 <?php
5936 $allowed_tags = array(
5937 'select' => array(
5938 'id' => array(),
5939 'class' => array()
5940 ),
5941 'option' => array(
5942 'value' => array(),
5943 'selected' => array()
5944 )
5945 );
5946
5947 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5948 $mad_mimi_select .= "<option value=''>Select list</option>";
5949 $mad_mimi_select .= "</select>";
5950 echo wp_kses($mad_mimi_select, $allowed_tags);
5951
5952 ?>
5953 </div>
5954 </div>
5955 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5956 <div class="ays-poll-new-upgrade-button-box">
5957 <div>
5958 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5959 <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">
5960 </div>
5961 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
5962 </div>
5963 </a>
5964 </div>
5965 </div>
5966 </fieldset> <!-- Mad Mimi -->
5967 <hr>
5968 <fieldset class="ays_poll_settings_integration_container">
5969 <legend>
5970 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/get_response.png" alt="">
5971 <h5><?php echo esc_html__('GetResponse Settings', "poll-maker") ?></h5>
5972 </legend>
5973 <div class="form-group row" style="margin: 0px;">
5974 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5975 <div class="pro_features" style="justify-content:flex-end;">
5976 </div>
5977 <div class="form-group row">
5978 <div class="col-sm-4">
5979 <label for="ays_poll_enable_getResponse">
5980 <?php echo esc_html__('Enable GetResponse', "poll-maker") ?>
5981 </label>
5982 </div>
5983 <div class="col-sm-8">
5984 <input type="checkbox"
5985 class="ays-enable-timer1">
5986 </div>
5987 </div>
5988 <hr>
5989 <div class="form-group row">
5990 <div class="col-sm-4">
5991 <label>
5992 <?php echo esc_html__('GetResponse List', "poll-maker") ?>
5993 </label>
5994 </div>
5995 <div class="col-sm-8">
5996 <?php
5997 $allowed_tags = array(
5998 'select' => array(
5999 'id' => array(),
6000 'class' => array(),
6001 'name' => array()
6002 ),
6003 'option' => array(
6004 'value' => array(),
6005 'selected' => array(),
6006 'disabled' => array()
6007 )
6008 );
6009 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
6010 $mad_mimi_select .= "<option value=''>Select list</option>";
6011 $mad_mimi_select .= "</select>";
6012 echo wp_kses($mad_mimi_select, $allowed_tags);
6013
6014 ?>
6015 </div>
6016 </div>
6017 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6018 <div class="ays-poll-new-upgrade-button-box">
6019 <div>
6020 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6021 <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">
6022 </div>
6023 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6024 </div>
6025 </a>
6026 </div>
6027 </div>
6028 </fieldset> <!-- GetResponse Settings -->
6029 <hr>
6030 <fieldset class="ays_poll_settings_integration_container">
6031 <legend>
6032 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/convertkit_logo.png" alt="">
6033 <h5><?php echo esc_html__('ConvertKit Settings', "poll-maker")?></h5>
6034 </legend>
6035 <div class="form-group row" style="margin: 0px;">
6036 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6037 <div class="pro_features" style="justify-content:flex-end;">
6038 </div>
6039 <div class="form-group row">
6040 <div class="col-sm-4">
6041 <label for="ays_poll_enable_convertkit">
6042 <?php echo esc_html__('Enable ConvertKit', "poll-maker")?>
6043 </label>
6044 </div>
6045 <div class="col-sm-1">
6046 <input type="checkbox" class="ays-enable-timer1"/>
6047 </div>
6048 </div>
6049 <hr>
6050 <div class="form-group row">
6051 <div class="col-sm-4">
6052 <label>
6053 <?php echo esc_html__('ConvertKit list', "poll-maker")?>
6054 </label>
6055 </div>
6056 <div class="col-sm-8">
6057 <select id="ays_poll_convertKit_list">
6058 <option value="" disabled selected>Select list</option>
6059 </select>
6060 </div>
6061 </div>
6062 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6063 <div class="ays-poll-new-upgrade-button-box">
6064 <div>
6065 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6066 <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">
6067 </div>
6068 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6069 </div>
6070 </a>
6071 </div>
6072 </div>
6073 </fieldset> <!-- ConvertKit Settings -->
6074 <hr/>
6075 <fieldset class="ays_poll_settings_integration_container">
6076 <legend>
6077 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/klaviyo-logo.png" alt="">
6078 <h5><?php echo esc_html__('Klaviyo', "poll-maker") ?></h5>
6079 </legend>
6080 <div class="form-group row" style="margin: 0px;">
6081 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6082 <div class="pro_features" style="justify-content:flex-end;">
6083 </div>
6084 <div class="form-group row">
6085 <div class="col-sm-4">
6086 <label for="ays_poll_enable_klaviyo"><?php echo esc_html__('Enable Klaviyo', "poll-maker"); ?></label>
6087 </div>
6088 <div class="col-sm-1">
6089 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
6090 </div>
6091 </div>
6092 <hr>
6093 <div class="form-group row">
6094 <div class="col-sm-4">
6095 <label for="ays_poll_klaviyo_list"><?php echo esc_html__('Klaviyo list',"poll-maker") ?></label>
6096 </div>
6097 <div class="col-sm-8">
6098 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
6099 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6100 </select>
6101 </div>
6102 </div>
6103 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6104 <div class="ays-poll-new-upgrade-button-box">
6105 <div>
6106 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6107 <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">
6108 </div>
6109 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6110 </div>
6111 </a>
6112 </div>
6113 </div>
6114 </fieldset> <!-- Klaviyo -->
6115 <hr>
6116 <fieldset class="ays_poll_settings_integration_container">
6117 <legend>
6118 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/aweber-logo.png" alt="">
6119 <h5><?php echo esc_html__('Aweber', "poll-maker") ?></h5>
6120 </legend>
6121 <div class="form-group row" style="margin: 0px;">
6122 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6123 <div class="pro_features" style="justify-content:flex-end;">
6124 </div>
6125 <div class="form-group row">
6126 <div class="col-sm-4">
6127 <label for="ays_poll_enable_aweber"><?php echo esc_html__('Enable Aweber', "poll-maker") ?></label>
6128 </div>
6129 <div class="col-sm-1">
6130 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
6131 </div>
6132 </div>
6133 <hr>
6134 <div class="form-group row">
6135 <div class="col-sm-4">
6136 <label for="ays_poll_aweber_list_id"><?php echo esc_html__('Aweber Lists', "poll-maker") ?></label>
6137 </div>
6138 <div class="col-sm-8">
6139 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
6140 <option value='' disabled selected><?php echo esc_html__( "Select list", "poll-maker" ) ?></option>
6141 </select>
6142 </div>
6143 </div>
6144 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6145 <div class="ays-poll-new-upgrade-button-box">
6146 <div>
6147 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6148 <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">
6149 </div>
6150 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6151 </div>
6152 </a>
6153 </div>
6154 </div>
6155 </fieldset> <!-- Aweber -->
6156 <hr>
6157 <fieldset class="ays_poll_settings_integration_container">
6158 <legend>
6159 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/mail_poet.png" alt="">
6160 <h5><?php echo esc_html__('MailPoet', "poll-maker") ?></h5>
6161 </legend>
6162 <div class="form-group row" style="margin:0;">
6163 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6164 <div class="pro_features" style="justify-content:flex-end;">
6165 </div>
6166 <div class="form-group row">
6167 <div class="col-sm-4">
6168 <label for="ays_poll_enable_mailpoet"><?php echo esc_html__('Enable MailPoet',"poll-maker"); ?></label>
6169 </div>
6170 <div class="col-sm-1">
6171 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
6172 </div>
6173 </div>
6174 <hr>
6175 <div class="form-group row">
6176 <div class="col-sm-4">
6177 <label for="ays_poll_mailpoet_list"><?php echo esc_html__('MailPoet list',"poll-maker") ?></label>
6178 </div>
6179 <div class="col-sm-8">
6180 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
6181 <option value="" disabled selected> <?php echo esc_html__( "Select list", "poll-maker" ) ?> </option>
6182 </select>
6183 </div>
6184 </div>
6185 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6186 <div class="ays-poll-new-upgrade-button-box">
6187 <div>
6188 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6189 <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">
6190 </div>
6191 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6192 </div>
6193 </a>
6194 </div>
6195 </div>
6196 </fieldset> <!-- Mailpoet -->
6197 <hr>
6198 <fieldset class="ays_poll_settings_integration_container">
6199 <legend>
6200 <img class="ays_integration_logo" src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/integrations/recaptcha_logo.png" alt="">
6201 <h5><?php echo esc_html__('reCAPTCHA Settings', "poll-maker") ?></h5>
6202 </legend>
6203 <div class="form-group row" style="margin:0;">
6204 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
6205 <div class="pro_features" style="justify-content:flex-end;">
6206 </div>
6207 <div class="form-group row">
6208 <div class="col-sm-4">
6209 <label for="ays_poll_enable_recaptcha"><?php echo esc_html__('Enable reCAPTCHA',"poll-maker"); ?></label>
6210 </div>
6211 <div class="col-sm-1">
6212 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_recaptcha" name="ays_poll_enable_recaptcha" value="on" selected disabled >
6213 </div>
6214 </div>
6215 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6216 <div class="ays-poll-new-upgrade-button-box">
6217 <div>
6218 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6219 <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">
6220 </div>
6221 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
6222 </div>
6223 </a>
6224 </div>
6225 </div>
6226 </fieldset> <!-- reCaptcha Settings -->
6227 <hr>
6228 </div>
6229 </div>
6230 </div>
6231 <div id="tab8" class="ays-poll-tab-content <?php echo $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
6232 <div class="ays-poll-accordion-options-main-container">
6233 <div class="ays-poll-accordion-header">
6234 <?php echo wp_kses($poll_acordion_svg_html, $acordion_svg_html_allow); ?>
6235 <p class="ays-subtitle"><?php echo esc_html__('Results Settings', "poll-maker"); ?></p>
6236 </div>
6237 <hr class="ays-poll-bolder-hr"/>
6238 <div class="ays-poll-accordion-body">
6239 <div class="form-group row">
6240 <div class="col-sm-3">
6241 <label for='show-res-percent'>
6242 <?php echo esc_html__('Show answer percent', "poll-maker"); ?>
6243 <a class="ays_help" data-toggle="tooltip"
6244 data-placement="top"
6245 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"); ?>">
6246 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6247 </a>
6248 </label>
6249 </div>
6250 <div class="col-sm-9">
6251 <input type="checkbox" name="show_res_percent" id="show-res-percent"
6252 value="1" <?php echo $show_res_percent ? 'checked' : '' ?> >
6253 </div>
6254 </div>
6255 <hr>
6256 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
6257 <div class="col-sm-3">
6258 <label for='ays-poll-hide-results'>
6259 <?php echo esc_html__('Hide results', "poll-maker"); ?>
6260 <a class="ays_help"
6261 data-toggle="tooltip"
6262 data-placement="top"
6263 title="<?php echo esc_html__("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
6264 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6265 </a>
6266 </label>
6267 <p class="ays_poll_small_hint_text_for_message_variables">
6268 <span><?php echo esc_html__( "To see all Message Variables " , "poll-maker" ); ?></span>
6269 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here" , "poll-maker" ); ?></a>
6270 </p>
6271 </div>
6272 <div class="col-sm-9 ays_toggle_parent">
6273 <div class="form-group row">
6274
6275 <!-- <div class="col-sm-1"> -->
6276 <div class="col-sm-12">
6277 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
6278 value="hide" <?php echo isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
6279 </div>
6280 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
6281 <div class="form-group row">
6282 <div class="col-sm-12">
6283 <div>
6284 <label for='ays-poll-hide-results-text'>
6285 <?php echo esc_html__('Message instead of results', "poll-maker"); ?>
6286 <a class="ays_help"
6287 data-toggle="tooltip"
6288 data-placement="top"
6289 title="<?php echo esc_html__("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
6290 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6291 </a>
6292 </label>
6293 </div>
6294 <?php
6295 echo $poll_message_vars_html;
6296 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
6297 $editor_id = 'ays-poll-hide-results-text';
6298 $settings = array(
6299 'editor_height' => $poll_wp_editor_height,
6300 'textarea_name' => 'ays-poll-hide-results-text',
6301 'editor_class' => 'ays-textarea',
6302 'media_elements' => false
6303 );
6304 wp_editor($content, $editor_id, $settings);
6305 ?>
6306 </div>
6307 </div>
6308 </div>
6309 </div>
6310 </div>
6311 </div>
6312 <hr>
6313 <div class="form-group row ays-poll-desc-message-vars-parent">
6314 <div class="col-sm-3">
6315 <label for="ays_poll_result_message">
6316 <?php echo esc_html__('Result Message', "poll-maker")?>
6317 <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")?>">
6318 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6319 </a>
6320 </label>
6321 <p class="ays_poll_small_hint_text_for_message_variables">
6322 <span><?php echo esc_html__( "To see all Message Variables ", "poll-maker" ); ?></span>
6323 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo esc_html__( "click here", "poll-maker" ); ?></a>
6324 </p>
6325 </div>
6326 <div class="col-sm-9 ays_toggle_parent">
6327 <div class="form-group row">
6328 <div class="col-sm-12">
6329 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
6330 value="hide" <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
6331 </div>
6332 <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;'; ?>">
6333 <?php
6334 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6335
6336 echo $poll_message_vars_html;
6337 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
6338 $editor_id = 'ays_result_message';
6339 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6340 wp_editor($content, $editor_id, $settings);
6341 ?>
6342 </div>
6343 </div>
6344 </div>
6345 </div>
6346 <hr>
6347 <div class="form-group row">
6348 <div class="col-sm-3">
6349 <label for='ays-poll-result-sort-type'>
6350 <?php echo esc_html__('Results sorting', "poll-maker"); ?>
6351 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
6352 echo esc_html__("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
6353 "<ul style='list-style-type: circle;padding-left: 20px;'>".
6354 "<li>".esc_html__('Ascending – the smallest to largest', "poll-maker") ."</li>".
6355 "<li>".esc_html__('Descending – the largest to smallest', "poll-maker") ."</li>".
6356 "<li>".esc_html__('None', "poll-maker") ."</li>".
6357 "</ul>";
6358 ?>">
6359 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6360 </a></label>
6361 </div>
6362 <div class="col-sm-9">
6363 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
6364 <option value="none" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
6365 <?php echo esc_html__("None", "poll-maker"); ?>
6366 </option>
6367 <option value="ASC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
6368 <?php echo esc_html__("Ascending", "poll-maker"); ?>
6369 </option>
6370 <option value="DESC" <?php echo isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
6371 <?php echo esc_html__("Descending", "poll-maker"); ?>
6372 </option>
6373 </select>
6374 </div>
6375 </div>
6376 <hr>
6377 <div class="form-group row">
6378 <div class="col-sm-3">
6379 <label for='show-votes-count'>
6380 <?php echo esc_html__('Show votes count', "poll-maker"); ?>
6381 <a class="ays_help" data-toggle="tooltip"
6382 data-placement="top"
6383 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"); ?>">
6384 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6385 </a>
6386 </label>
6387 </div>
6388 <div class="col-sm-9">
6389 <input type="checkbox" name="show_votes_count" id="show-votes-count"
6390 value="1" <?php echo $showvotescount ? 'checked' : '' ?> >
6391 </div>
6392 </div>
6393 <hr>
6394
6395 <!-- Loading effect start -->
6396
6397 <div class="form-group row">
6398 <div class="col-sm-3">
6399 <label for='ays-poll-load-effect'>
6400 <?php echo esc_html__('Loading effect', "poll-maker"); ?>
6401 <a class="ays_help" data-toggle="tooltip"
6402 data-placement="top"
6403 title="<?php echo esc_html__("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
6404 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6405 </a>
6406 </label>
6407 </div>
6408 <div class="col-sm-3">
6409 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
6410 <option value="load_gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
6411 <?php echo esc_html__("Loading GIF", "poll-maker"); ?>
6412 </option>
6413 <option value="opacity" <?php echo isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
6414 <?php echo esc_html__("Opacity", "poll-maker"); ?>
6415 </option>
6416 <option value="blur" <?php echo isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
6417 <?php echo esc_html__("Blur", "poll-maker"); ?>
6418 </option>
6419 <option value="message" <?php echo isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
6420 <?php echo esc_html__("Message", "poll-maker"); ?>
6421 </option>
6422 <option class="apm-pro-feature" disabled
6423 title="<?php echo esc_html__("It is PRO version feature", "poll-maker"); ?>" value="pro">
6424 <?php echo esc_html__("Custom GIF", "poll-maker"); ?>
6425 </option>
6426 </select>
6427 </div>
6428 <div class="if-loading-gif col-sm-6 row">
6429 <div class="apm-loader d-flex justify-content-between align-items-center">
6430 <input type="radio"
6431 name="ays-poll-load-gif" <?php echo isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_default' ? 'checked' : ''; ?>
6432 id="plg_default" value="plg_default">
6433 <label for="plg_default" class="apm-loading-gif">
6434 <div class="loader loader--style3">
6435 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
6436 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6437 height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;"
6438 xml:space="preserve">
6439 <path fill="#000"
6440 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">
6441 <animateTransform attributeType="xml" attributeName="transform"
6442 type="rotate" from="0 25 25" to="360 25 25" dur="0.7s"
6443 repeatCount="indefinite"/>
6444 </path>
6445 </svg>
6446 </div>
6447 </label>
6448 </div>
6449 <div class="apm-loader d-flex justify-content-between align-items-center">
6450 <input type="radio"
6451 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' : ''; ?>
6452 id="plg_1" value="plg_1">
6453 <label for="plg_1" class="apm-loading-gif">
6454 <div class="loader loader--style5">
6455 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6456 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6457 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6458 xml:space="preserve">
6459 <rect x="0" y="0" width="4" height="10" fill="#333">
6460 <animateTransform attributeType="xml" attributeName="transform"
6461 type="translate" values="0 0; 0 20; 0 0" begin="0"
6462 dur="0.8s" repeatCount="indefinite"/>
6463 </rect>
6464 <rect x="10" y="0" width="4" height="10" fill="#333">
6465 <animateTransform attributeType="xml" attributeName="transform"
6466 type="translate" values="0 0; 0 20; 0 0" begin="0.2s"
6467 dur="0.8s" repeatCount="indefinite"/>
6468 </rect>
6469 <rect x="20" y="0" width="4" height="10" fill="#333">
6470 <animateTransform attributeType="xml" attributeName="transform"
6471 type="translate" values="0 0; 0 20; 0 0" begin="0.4s"
6472 dur="0.8s" repeatCount="indefinite"/>
6473 </rect>
6474 </svg>
6475 </div>
6476 </label>
6477 </div>
6478 <div class="apm-loader d-flex justify-content-between align-items-center">
6479 <input type="radio"
6480 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' : ''; ?>
6481 id="plg_2" value="plg_2">
6482 <label for="plg_2" class="apm-loading-gif">
6483 <div class="loader loader--style8">
6484 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6485 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6486 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6487 xml:space="preserve">
6488 <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
6489 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6490 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6491 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6492 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6493 <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s"
6494 dur="0.7s" repeatCount="indefinite"/>
6495 </rect>
6496 <rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
6497 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6498 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6499 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6500 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6501 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6502 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6503 </rect>
6504 <rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
6505 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6506 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6507 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6508 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6509 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6510 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6511 </rect>
6512 </svg>
6513 </div>
6514 </label>
6515 </div>
6516 <div class="apm-loader d-flex justify-content-between align-items-center">
6517 <input type="radio"
6518 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' : ''; ?>
6519 id="plg_3" value="plg_3">
6520 <label for="plg_3" class="apm-loading-gif">
6521 <div class="loader loader--style5">
6522 <svg width="100%" height="100%" viewBox="0 0 105 105"
6523 xmlns="http://www.w3.org/2000/svg" fill="#000">
6524 <circle cx="12.5" cy="12.5" r="12.5">
6525 <animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1"
6526 calcMode="linear" repeatCount="indefinite"/>
6527 </circle>
6528 <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
6529 <animate attributeName="fill-opacity" begin="100ms" dur="0.9s"
6530 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6531 </circle>
6532 <circle cx="52.5" cy="12.5" r="12.5">
6533 <animate attributeName="fill-opacity" begin="300ms" dur="0.9s"
6534 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6535 </circle>
6536 <circle cx="52.5" cy="52.5" r="12.5">
6537 <animate attributeName="fill-opacity" begin="600ms" dur="0.9s"
6538 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6539 </circle>
6540 <circle cx="92.5" cy="12.5" r="12.5">
6541 <animate attributeName="fill-opacity" begin="800ms" dur="0.9s"
6542 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6543 </circle>
6544 <circle cx="92.5" cy="52.5" r="12.5">
6545 <animate attributeName="fill-opacity" begin="400ms" dur="0.9s"
6546 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6547 </circle>
6548 <circle cx="12.5" cy="92.5" r="12.5">
6549 <animate attributeName="fill-opacity" begin="700ms" dur="0.9s"
6550 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6551 </circle>
6552 <circle cx="52.5" cy="92.5" r="12.5">
6553 <animate attributeName="fill-opacity" begin="500ms" dur="0.9s"
6554 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6555 </circle>
6556 <circle cx="92.5" cy="92.5" r="12.5">
6557 <animate attributeName="fill-opacity" begin="200ms" dur="0.9s"
6558 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6559 </circle>
6560 </svg>
6561 </div>
6562 </label>
6563 </div>
6564 <div class="apm-loader d-flex justify-content-between align-items-center">
6565 <input type="radio"
6566 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' : ''; ?>
6567 id="plg_4" value="plg_4">
6568 <label for="plg_4" class="apm-loading-gif">
6569 <div class="loader loader--style4">
6570 <svg width="100%" height="100%" viewBox="0 0 57 57"
6571 xmlns="http://www.w3.org/2000/svg" stroke="#000">
6572 <g fill="none" fill-rule="evenodd">
6573 <g transform="translate(1 1)" stroke-width="2">
6574 <circle cx="5" cy="50" r="5">
6575 <animate attributeName="cy" begin="0s" dur="2.2s"
6576 values="50;5;50;50" calcMode="linear"
6577 repeatCount="indefinite"/>
6578 <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5"
6579 calcMode="linear" repeatCount="indefinite"/>
6580 </circle>
6581 <circle cx="27" cy="5" r="5">
6582 <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5"
6583 values="5;50;50;5" calcMode="linear"
6584 repeatCount="indefinite"/>
6585 <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27"
6586 values="27;49;5;27" calcMode="linear"
6587 repeatCount="indefinite"/>
6588 </circle>
6589 <circle cx="49" cy="50" r="5">
6590 <animate attributeName="cy" begin="0s" dur="2.2s"
6591 values="50;50;5;50" calcMode="linear"
6592 repeatCount="indefinite"/>
6593 <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s"
6594 values="49;5;27;49" calcMode="linear"
6595 repeatCount="indefinite"/>
6596 </circle>
6597 </g>
6598 </g>
6599 </svg>
6600 </div>
6601 </label>
6602 </div>
6603 <div class="apm-loader d-flex justify-content-between align-items-center">
6604 <input type="radio"
6605 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' : ''; ?>
6606 id="plg_5" value="plg_5">
6607 <label for="plg_5" class="apm-loading-gif">
6608 <div class="loader loader--style4">
6609 <svg width="100%" height="100%" viewBox="0 0 135 140"
6610 xmlns="http://www.w3.org/2000/svg" fill="#000">
6611 <rect y="10" width="15" height="120" rx="6">
6612 <animate attributeName="height" begin="0.5s" dur="1s"
6613 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6614 repeatCount="indefinite"/>
6615 <animate attributeName="y" begin="0.5s" dur="1s"
6616 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6617 repeatCount="indefinite"/>
6618 </rect>
6619 <rect x="30" y="10" width="15" height="120" rx="6">
6620 <animate attributeName="height" begin="0.25s" dur="1s"
6621 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6622 repeatCount="indefinite"/>
6623 <animate attributeName="y" begin="0.25s" dur="1s"
6624 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6625 repeatCount="indefinite"/>
6626 </rect>
6627 <rect x="60" width="15" height="140" rx="6">
6628 <animate attributeName="height" begin="0s" dur="1s"
6629 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6630 repeatCount="indefinite"/>
6631 <animate attributeName="y" begin="0s" dur="1s"
6632 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6633 repeatCount="indefinite"/>
6634 </rect>
6635 <rect x="90" y="10" width="15" height="120" rx="6">
6636 <animate attributeName="height" begin="0.25s" dur="1s"
6637 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6638 repeatCount="indefinite"/>
6639 <animate attributeName="y" begin="0.25s" dur="1s"
6640 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6641 repeatCount="indefinite"/>
6642 </rect>
6643 <rect x="120" y="10" width="15" height="120" rx="6">
6644 <animate attributeName="height" begin="0.5s" dur="1s"
6645 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6646 repeatCount="indefinite"/>
6647 <animate attributeName="y" begin="0.5s" dur="1s"
6648 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6649 repeatCount="indefinite"/>
6650 </rect>
6651 </svg>
6652 </div>
6653 </label>
6654 </div>
6655 </div>
6656 <div class="if-loading-message col-sm-6 row">
6657 <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); ?>">
6658 </div>
6659 </div>
6660 <hr class="<?php echo esc_attr($poll_loader_size_line_enable); ?> ays_line_changeing">
6661 <div class="form-group row <?php echo esc_attr($poll_loader_size_enable); ?> ays_load_gif_cont">
6662 <div class="col-sm-3">
6663 <label for="ays_loader_font_size">
6664 <?php echo esc_html__('Loading effect size', "poll-maker") ?>
6665 <a class="ays_help" data-toggle="tooltip"
6666 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") ?>">
6667 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6668 </a>
6669 </label>
6670 </div>
6671 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6672 <div>
6673 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6674 name="ays_loader_font_size"
6675 value="<?php echo esc_attr($poll_loader_font_size); ?>"/>
6676 </div>
6677 <div class="ays_option_default_measurement_unit">
6678 <input type="text" value="px" disabled>
6679 </div>
6680 </div>
6681 </div>
6682 <hr>
6683 <!-- Loading effect end -->
6684 <div class="form-group row">
6685 <div class="col-sm-3">
6686 <label for="ays_enable_restart_button">
6687 <?php echo esc_html__('Enable restart button', "poll-maker") ?>
6688 <a class="ays_help" data-toggle="tooltip"
6689 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") ?>">
6690 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6691 </a>
6692 </label>
6693 </div>
6694 <div class="col-sm-1">
6695 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6696 name="ays_enable_restart_button"
6697 value="on" <?php echo (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6698 </div>
6699 </div>
6700 <hr>
6701 <div class="form-group row ays_toggle_parent">
6702 <div class="col-sm-3">
6703 <label for='ays-poll-show-social'>
6704 <?php echo esc_html__('Social share buttons', "poll-maker"); ?>
6705 <a class="ays_help"
6706 data-toggle="tooltip"
6707 data-placement="top"
6708 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"); ?>'>
6709 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6710 </a></label>
6711 </div>
6712 <div class="col-sm-1">
6713 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6714 value="show" <?php echo $poll_social_buttons ? 'checked' : ''; ?>>
6715 </div>
6716 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6717 <div class="form-group row">
6718 <div class="col-sm-4">
6719 <label>
6720 <?php echo esc_html__('Heading for share buttons', "poll-maker")?>
6721 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6722 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6723 </a>
6724 </label>
6725 </div>
6726 <div class="col-sm-8">
6727 <?php
6728 $content = $poll_social_buttons_heading;
6729 $editor_id = 'ays_poll_social_buttons_heading';
6730 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6731 wp_editor($content, $editor_id, $settings);
6732 ?>
6733 </div>
6734 </div>
6735 <hr>
6736 <div class="form-group row">
6737 <div class="col-sm-4">
6738 <label for="ays_poll_enable_linkedin_share_button">
6739 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6740 <?php echo esc_html__('LinkedIn button', "poll-maker")?>
6741 <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"); ?>">
6742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6743 </a>
6744 </label>
6745 </div>
6746 <div class="col-sm-8">
6747 <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" : ""; ?>/>
6748 </div>
6749 </div>
6750 <hr/>
6751 <div class="form-group row">
6752 <div class="col-sm-4">
6753 <label for="ays_poll_enable_facebook_share_button">
6754 <i class="ays_poll_fas ays_poll_facebook"></i>
6755 <?php echo esc_html__('Facebook button', "poll-maker")?>
6756 <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"); ?>">
6757 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6758 </a>
6759 </label>
6760 </div>
6761 <div class="col-sm-8">
6762 <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" : ""; ?>/>
6763 </div>
6764 </div>
6765 <hr/>
6766 <div class="form-group row">
6767 <div class="col-sm-4">
6768 <label for="ays_poll_enable_twitter_share_button">
6769 <i class="ays_fa ays_fa_twitter_square"></i>
6770 <?php echo esc_html__('Twitter button', "poll-maker")?>
6771 <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"); ?>">
6772 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6773 </a>
6774 </label>
6775 </div>
6776 <div class="col-sm-8">
6777 <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" : ""; ?>/>
6778 </div>
6779 </div>
6780 <hr/>
6781 <div class="form-group row">
6782 <div class="col-sm-4">
6783 <label for="ays_poll_enable_vkontakte_share_button">
6784 <i class="ays_fa ays_fa_vk"></i>
6785 <?php echo esc_html__('VKontakte button', "poll-maker")?>
6786 <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"); ?>">
6787 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6788 </a>
6789 </label>
6790 </div>
6791 <div class="col-sm-8">
6792 <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" : ""; ?>/>
6793 </div>
6794 </div>
6795 </div>
6796 </div>
6797 <hr>
6798 <div class="form-group row ays_toggle_parent">
6799 <div class="col-sm-3">
6800 <label for="ays_enable_social_links">
6801 <?php echo esc_html__('Enable Social Media links', "poll-maker")?>
6802 <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")?>">
6803 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6804 </a>
6805 </label>
6806 </div>
6807 <div class="col-sm-1">
6808 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links"
6809 name="ays_poll_enable_social_links"
6810 value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/>
6811 </div>
6812 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6813 <div class="form-group row">
6814 <div class="col-sm-4">
6815 <label>
6816 <?php echo esc_html__('Heading for social links', "poll-maker")?>
6817 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Text that will be displayed over social links.', "poll-maker"); ?>">
6818 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6819 </a>
6820 </label>
6821 </div>
6822 <div class="col-sm-8">
6823 <?php
6824 $content = $poll_social_links_heading;
6825 $editor_id = 'ays_poll_social_links_heading';
6826 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6827 wp_editor($content, $editor_id, $settings);
6828 ?>
6829 </div>
6830 </div>
6831 <hr>
6832 <div class="form-group row">
6833 <div class="col-sm-4">
6834 <label for="ays_linkedin_link">
6835 <i class="ays_fa ays_fa_linkedin_square"></i>
6836 <?php echo esc_html__('LinkedIn link', "poll-maker")?>
6837 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6838 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6839 </a>
6840 </label>
6841 </div>
6842 <div class="col-sm-8">
6843 <input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]"
6844 value="<?php echo $linkedin_link; ?>" />
6845 </div>
6846 </div>
6847 <hr/>
6848 <div class="form-group row">
6849 <div class="col-sm-4">
6850 <label for="ays_facebook_link">
6851 <i class="ays_fa ays_fa_facebook_square"></i>
6852 <?php echo esc_html__('Facebook link', "poll-maker")?>
6853 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6854 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6855 </a>
6856 </label>
6857 </div>
6858 <div class="col-sm-8">
6859 <input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]"
6860 value="<?php echo $facebook_link; ?>" />
6861 </div>
6862 </div>
6863 <hr/>
6864 <div class="form-group row">
6865 <div class="col-sm-4">
6866 <label for="ays_twitter_link">
6867 <!-- <i class="ays_fa ays_fa_twitter_square"></i> -->
6868 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6869 <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>
6870 </svg>
6871 <?php echo esc_html__('X link', "poll-maker")?>
6872 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('X profile or page link for showing after poll finish.', "poll-maker")?>">
6873 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6874 </a>
6875 </label>
6876 </div>
6877 <div class="col-sm-8">
6878 <input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]"
6879 value="<?php echo $twitter_link; ?>" />
6880 </div>
6881 </div>
6882 <hr/>
6883 <div class="form-group row">
6884 <div class="col-sm-4">
6885 <label for="ays_vkontakte_link">
6886 <i class="ays_fa ays_fa_vk_square"></i>
6887 <?php echo esc_html__('VKontakte link', "poll-maker")?>
6888 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6889 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6890 </a>
6891 </label>
6892 </div>
6893 <div class="col-sm-8">
6894 <input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]"
6895 value="<?php echo $vkontakte_link; ?>" />
6896 </div>
6897 </div>
6898 <hr>
6899 <div class="form-group row">
6900 <div class="col-sm-4">
6901 <label for="ays_youtube_link">
6902 <i class="ays_fa ays_fa_youtube_square"></i>
6903 <?php echo esc_html__('YouTube link', "poll-maker")?>
6904 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6905 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6906 </a>
6907 </label>
6908 </div>
6909 <div class="col-sm-8">
6910 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6911 value="<?php echo $youtube_link; ?>" />
6912 </div>
6913 </div>
6914 <hr>
6915 <div class="form-group row">
6916 <div class="col-sm-4">
6917 <label for="ays_tiktok_link">
6918 <!-- <i class="ays_fa ays_fa_tiktok_square"></i> -->
6919 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6920 <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>
6921 </svg>
6922 <?php echo esc_html__('TikTok link', "poll-maker")?>
6923 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tiktok profile or page link for showing after poll finish.', "poll-maker")?>">
6924 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6925 </a>
6926 </label>
6927 </div>
6928 <div class="col-sm-8">
6929 <input type="text" class="ays-text-input" id="ays_tiktok_link" name="ays_poll_social_links[ays_tiktok_link]"
6930 value="<?php echo $tiktok_link; ?>" />
6931 </div>
6932 </div>
6933 <hr>
6934 <div class="form-group row">
6935 <div class="col-sm-4">
6936 <label for="ays_instagram_link">
6937 <i class="ays_fa ays_fa_instagram_square"></i>
6938 <?php echo esc_html__('Instagram link', "poll-maker")?>
6939 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Instagram profile or page link for showing after poll finish.', "poll-maker")?>">
6940 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6941 </a>
6942 </label>
6943 </div>
6944 <div class="col-sm-8">
6945 <input type="text" class="ays-text-input" id="ays_instagram_link" name="ays_poll_social_links[ays_instagram_link]"
6946 value="<?php echo $instagram_link; ?>" />
6947 </div>
6948 </div>
6949 </div>
6950 </div>
6951 <hr>
6952 <div class="form-group row">
6953 <div class="col-sm-3">
6954 <label for='ays-poll-res-rgba'>
6955 <?php echo esc_html__('Results bar in RGBA', "poll-maker"); ?>
6956 <a class="ays_help" data-toggle="tooltip"
6957 data-placement="top"
6958 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"); ?>">
6959 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6960 </a>
6961 </label>
6962 </div>
6963 <div class="col-sm-9">
6964 <input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba"
6965 value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>>
6966 </div>
6967 </div>
6968 <hr>
6969 <div class="form-group row ays_toggle_parent">
6970 <div class="col-sm-3">
6971 <label for='ays_poll_show_users'>
6972 <?php echo esc_html__('Show passed users avatars', "poll-maker"); ?>
6973 <a class="ays_help" data-toggle="tooltip"
6974 data-placement="top"
6975 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"); ?>">
6976 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6977 </a>
6978 </label>
6979 </div>
6980 <div class="col-sm-1">
6981 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6982 value="on" <?php echo esc_attr($poll_show_passed_users_checked); ?>>
6983 </div>
6984 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6985 <div class="row">
6986 <div class="col-sm-3 ays_divider_left">
6987 <label for='ays_poll_show_users_count'>
6988 <?php echo esc_html__('Users count', "poll-maker"); ?>
6989 <a class="ays_help" data-toggle="tooltip"
6990 data-placement="top"
6991 title="<?php echo esc_html__("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6992 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6993 </a>
6994 </label>
6995 </div>
6996 <div class="col-sm-9">
6997 <input type="number"
6998 name="ays_poll_show_users_count"
6999 id="ays_poll_show_users_count"
7000 class="ays-text-input ays-poll-answer-results-short-input"
7001 value="<?php echo esc_attr($poll_show_passed_users_count); ?>">
7002 </div>
7003 </div>
7004 </div>
7005 </div>
7006 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
7007 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
7008 <div class="col-sm-3">
7009 <label for="ays_poll_enable_answer_redirect_delay">
7010 <?php echo esc_html__('Option Redirect Delay', "poll-maker") ?>
7011 <a class="ays_help" data-toggle="tooltip"
7012 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") ?>">
7013 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7014 </a>
7015 </label>
7016 </div>
7017 <div class="col-sm-1">
7018 <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" : ""; ?>>
7019 </div>
7020 <div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>">
7021 <input type="number"
7022 class="ays-text-input ays-poll-answer-results-short-input"
7023 id="ays_poll_answer_redirect_delay"
7024 name="ays_poll_answer_redirect_delay"
7025 value="<?php echo $poll_every_answer_redirect_delay; ?>"/>
7026 <span class="ays_poll_small_hint_text"><?php echo esc_html__("Seconds", "poll-maker"); ?></span>
7027 </div>
7028 </div>
7029 <hr>
7030 <div class="form-group row">
7031 <div class="col-sm-3">
7032 <label for="ays_poll_enable_answer_image_after_voting">
7033 <?php echo esc_html__('Show answers image', "poll-maker") ?>
7034 <a class="ays_help" data-toggle="tooltip"
7035 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") ?>">
7036 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7037 </a>
7038 </label>
7039 </div>
7040 <div class="col-sm-1">
7041 <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" : ""; ?>>
7042 </div>
7043 </div>
7044 <hr>
7045 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
7046 <div class="form-group row">
7047 <div class="col-sm-3">
7048 <label for="apm_allow_add_answers">
7049 <?php echo esc_html__('Show results by', "poll-maker"); ?>
7050 <a class="ays_help" data-toggle="tooltip" data-placement="top"
7051 title="<?php echo esc_html__("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
7052 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7053 </a>
7054 </label>
7055 </div>
7056 <div class="col-sm-9">
7057 <div class="form-group row" style="align-items:center">
7058 <div class="col-sm-4">
7059 <div style="display: flex;">
7060 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7061 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
7062 <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' : '' ?>/>
7063 <span><?php echo esc_html__('Bar chart(Google)', "poll-maker"); ?></span>
7064 </label>
7065 </div>
7066 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7067 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
7068 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
7069 <span><?php echo esc_html__('Bar chart', "poll-maker"); ?></span>
7070 </label>
7071 </div>
7072 </div>
7073 </div>
7074 <div class="col-sm-8" style="padding-left: 0">
7075 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
7076 <div class="pro_features pro_features_popup">
7077 <div class="pro-features-popup-conteiner">
7078 <div class="pro-features-popup-title">
7079 <?php echo esc_html__("Show Results by", "poll-maker"); ?>
7080 </div>
7081 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
7082 <p>
7083 <?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"); ?>
7084 </p>
7085 </div>
7086 <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 ); ?>">
7087 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7088 </div>
7089 </div>
7090 </div>
7091 <div class="pro_features" style="justify-content:flex-end;">
7092 </div>
7093 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7094 <input type="radio"/>
7095 <label class="form-check-label ays_poll_check_label">
7096 <?php echo esc_html__('Pie Chart', "poll-maker"); ?>
7097 </label>
7098 </div>
7099 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
7100 <input type="radio"/>
7101 <label class="form-check-label ays_poll_check_label">
7102 <?php echo esc_html__('Column Chart', "poll-maker"); ?>
7103 </label>
7104 </div>
7105 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
7106 <input type="radio"/>
7107 <label class="form-check-label ays_poll_check_label">
7108 <?php echo esc_html__('Versus Chart', "poll-maker"); ?>
7109 </label>
7110 </div>
7111 <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'?>">
7112 <input type="radio"/>
7113 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
7114 <?php echo esc_html__('Rating Chart', "poll-maker"); ?>
7115 </label>
7116 </div>
7117 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7118 <div class="ays-poll-new-upgrade-button-box">
7119 <div>
7120 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7121 <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">
7122 </div>
7123 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7124 </div>
7125 </a>
7126 <div class="ays-poll-new-watch-video-button-box">
7127 <div>
7128 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7129 <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">
7130 </div>
7131 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7132 </div>
7133 </div>
7134 </div>
7135 </div>
7136 <hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7137 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
7138 <div class="form-group row" style="align-items: center; margin-left: 0;">
7139 <div class="col-sm-2">
7140 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
7141 <?php echo esc_html__('Chart height', "poll-maker") ?>
7142 <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"); ?>">
7143 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7144 </a>
7145 </label>
7146 </div>
7147 <div class="col-sm-9 ays_option_with_default_measurement_unit">
7148 <div>
7149 <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; ?>"/>
7150 </div>
7151 <div class="ays_option_default_measurement_unit">
7152 <input type="text" value="px" disabled>
7153 </div>
7154 </div>
7155 </div>
7156 </div>
7157 </div>
7158 </div>
7159 </div>
7160 <hr/>
7161 <div class="form-group row">
7162 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
7163 <div class="pro_features pro_features_popup">
7164 <div class="pro-features-popup-conteiner">
7165 <div class="pro-features-popup-title">
7166 <?php echo esc_html__("Results Message Based on the Answer", "poll-maker"); ?>
7167 </div>
7168 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
7169 <p>
7170 <?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"); ?>
7171 </p>
7172 </div>
7173 <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 ); ?>">
7174 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7175 </div>
7176 </div>
7177 </div>
7178 <div class="pro_features" style="justify-content:flex-end;">
7179 </div>
7180 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo esc_html__("Result message based on the answer", "poll-maker"); ?></p>
7181 <hr>
7182 <div class="form-group row">
7183 <div class="col-sm-3">
7184 <label for="ays_show_answer_message">
7185 <?php echo esc_html__('Show Answer message', "poll-maker")?>
7186 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
7187 data-placement="top"
7188 title="<?php echo esc_html__("Show different messages based on the answer.", "poll-maker"); ?>">
7189 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7190 </a>
7191 </label>
7192 </div>
7193 <div class="col-sm-9">
7194 <input type="checkbox" class="ays-enable-timer1"
7195 name=""
7196 value="on">
7197 </div>
7198 </div>
7199 <hr/>
7200 <!--Result message -->
7201 <div class='form-group row'>
7202 <div class="ays_reset_answers_div">
7203 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
7204 </div>
7205 <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"); ?>">
7206 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7207 </a>
7208 </div>
7209 <hr>
7210 <?php
7211 $allowed_tags = array(
7212 'div' => array(
7213 'class' => true
7214 ),
7215 'table' => array(
7216 'class' => true
7217 ),
7218 'thead' => array(),
7219 'tbody' => array(),
7220 'tr' => array(
7221 'class' => true
7222 ),
7223 'th' => array(),
7224 'td' => array(
7225 'class' => true
7226 ),
7227 'span' => array(),
7228 'input' => array(
7229 'type' => true,
7230 'name' => true,
7231 'class' => true,
7232 'value' => true,
7233 'hidden' => true
7234 ),
7235 'textarea' => array(
7236 'type' => true,
7237 'name' => true,
7238 'class' => true
7239 ),
7240 'label' => array(
7241 'class' => true,
7242 'for' => true
7243 ),
7244 'a' => array(
7245 'href' => true,
7246 'class' => true
7247 ),
7248 'img' => array(
7249 'src' => true,
7250 'class' => true
7251 )
7252 );
7253
7254 $content = '<div class="ays-field-dashboard ays-table-wrap">
7255 <table class="ays-answers-table ">
7256 <thead>
7257 <tr class="ui-state-default">
7258 <th>'. esc_html__('Answers', "poll-maker").'</th>
7259 <th>'. esc_html__('Text', "poll-maker").'</th>
7260 <th>'. esc_html__('Image', "poll-maker").'</th>
7261 </tr>
7262 </thead>
7263 <tbody>';
7264 $content .= '<tr class="ays-interval-row">
7265 <td>
7266 <span>'. esc_html__("Answer 1", "poll-maker").'</span>
7267 <input type="hidden" name="ays_answer_id[]">
7268 </td>
7269 <td>
7270 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7271 </td>
7272 <td class="ays-answer-image-td">
7273 <label class="ays-label" for="ays-answer">
7274 <a href="javascript:void(0)" class="add-answer-image" >
7275 '. esc_html__("Add", "poll-maker").'
7276 </a>
7277 </label>
7278 <div class="ays-answer-image-container ays-interval-image-container">
7279 <span class="ays-remove-answer-img"></span>
7280 <img src="" class="ays-answer-img">
7281 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7282 >
7283 </div>
7284 </td>
7285 </tr>
7286 <tr class="ays-interval-row">
7287 <td>
7288 <span>'. esc_html__("Answer 2", "poll-maker").'</span>
7289 <input type="hidden" name="ays_answer_id[]">
7290 </td>
7291 <td>
7292 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
7293 </td>
7294 <td class="ays-answer-image-td">
7295 <label class="ays-label" for="ays-answer">
7296 <a href="javascript:void(0)" class="add-answer-image" >
7297 '. esc_html__("Add", "poll-maker").'
7298 </a>
7299 </label>
7300 <div class="ays-answer-image-container ays-interval-image-container">
7301 <span class="ays-remove-answer-img"></span>
7302 <img src="" class="ays-answer-img">
7303 <input type="hidden" name="interval_image[]" class="ays-answer-image"
7304 >
7305 </div>
7306 </td>
7307 </tr>';
7308 $content .= '</tbody></table></div>';
7309 echo wp_kses($content, $allowed_tags);
7310 ?>
7311 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7312 <div class="ays-poll-new-upgrade-button-box">
7313 <div>
7314 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
7315 <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">
7316 </div>
7317 <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
7318 </div>
7319 </a>
7320 <div class="ays-poll-new-watch-video-button-box">
7321 <div>
7322 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/video_24x24.svg'?>">
7323 <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">
7324 </div>
7325 <div class="ays-poll-new-watch-video-button"><?php echo esc_html__("Watch Video", "poll-maker"); ?></div>
7326 </div>
7327 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
7328 <div class="ays-poll-center-big-watch-video-button-box">
7329 <div class="ays-poll-center-new-watch-video-demo-button">
7330 <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">
7331 <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">
7332 <span class="ays-poll-center-new-watch-video-demo-name"><?php echo esc_html__("Watch Video", "poll-maker"); ?></span>
7333 </div>
7334 </div>
7335 <div class="ays-poll-center-big-upgrade-button-box">
7336 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
7337 <div class="ays-poll-center-new-big-upgrade-button">
7338 <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">
7339 <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">
7340 <?php echo esc_html__("Upgrade", "poll-maker"); ?>
7341 </div>
7342 </a>
7343 </div>
7344 </div>
7345 </div>
7346 <hr/>
7347 </div>
7348 </div>
7349 </div>
7350 <div class="only_pro" style="position: relative; display: inline-block">
7351 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
7352 <div class="pro-features-popup-conteiner">
7353 <div class="pro-features-popup-title">
7354 <?php echo esc_html__("Save as Default feature of Poll", "poll-maker"); ?>
7355 </div>
7356 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
7357 <p>
7358 <?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"); ?>
7359 </p>
7360 <p>
7361 <?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"); ?>
7362 </p>
7363 </div>
7364 <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 ); ?>">
7365 <?php echo esc_html__("Pricing", "poll-maker"); ?>
7366 </div>
7367 </div>
7368 </div>
7369 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
7370 <span class="ays_save_as_default_content_for_mobile">
7371 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
7372 <input type="button" class="button ays_default_btn ays-loader-banner" value="<?php echo esc_attr__( "Save as default", "poll-maker" ); ?>">
7373 </a>
7374 <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" ); ?>">
7375 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
7376 </a>
7377 </span>
7378 </div>
7379 </div>
7380 </div>
7381 <div class="bottom-buttons-container">
7382 <div class='bottom-save-buttons-container'>
7383 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
7384 <?php
7385 echo wp_kses($loader_iamge, $loader_iamge_allow);
7386 wp_nonce_field('poll_action', 'poll_action');
7387 $save_bottom_attributes = array(
7388 'id' => 'ays-button-apply',
7389 'title' => 'Ctrl + s',
7390 'data-toggle' => 'tooltip',
7391 'data-delay'=> '{"show":"1000"}'
7392 );
7393 submit_button( esc_html__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
7394 $save_close_bottom_attributes = array('id' => 'ays-button');
7395 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);
7396 submit_button( esc_html__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
7397 ?>
7398 </div>
7399 </div>
7400 </div>
7401 </div>
7402 <div>
7403 <hr>
7404 <!-- <div class="form-group row ays-poll-general-bundle-container">
7405 <div class="col-sm-12 ays-poll-general-bundle-box">
7406 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
7407 <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>
7408 </div>
7409 <div class="ays-poll-general-bundle-row">
7410 <div class="ays-poll-general-bundle-text">
7411 <?php //echo esc_html__( "Do not miss", $this->plugin_name ); ?>
7412 <span><?php //echo esc_html__( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
7413 <?php //echo esc_html__( "on Poll Maker plugin!", $this->plugin_name ); ?>
7414 <span class="ays-poll-general-bundle-color">
7415 <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>
7416 </span> <?php //echo esc_html__( "plugin!", $this->plugin_name ); ?>
7417 </div>
7418 <p><?php //echo esc_html__( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
7419 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
7420 <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>
7421 </div>
7422 </div>
7423 <div class="ays-poll-general-bundle-row">
7424 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
7425 </div>
7426 </div>
7427 </div> -->
7428 <?php if($id === null): ?>
7429 <div class="ays_poll_layer_container">
7430 <div class="ays_poll_layer_content">
7431 <div class="ays_poll_layer_box">
7432 <div class="ays-poll-close-layer">
7433 <div class="ays-poll-choose-type">
7434 <p style="margin: 0;"><?php echo esc_html__('Choose Your Poll Type', "poll-maker"); ?></p>
7435 </div>
7436 <div class="ays-poll-close-type">
7437 <a href="?page=poll-maker-ays">
7438 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7439 </a>
7440 </div>
7441 </div>
7442 <div class="ays_poll_layer_box_blocks">
7443 <label class='ays-poll-dblclick-layer'>
7444 <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
7445 <div class="ays_poll_layer_item" >
7446 <div class="ays_poll_layer_item_logo" >
7447 <div class="ays_poll_layer_item_logo_overlay
7448 ays_poll_layer_item_logo_overlay_choosing" >
7449 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/choosing.png' ?>"
7450 alt="<?php echo esc_html__('Choosing', "poll-maker") ?>">
7451 </div>
7452 </div>
7453 <div class="ays_poll_layer_item_title">
7454 <p style="margin:0px;"><?php echo esc_html__('Choosing', "poll-maker") ?><p>
7455 <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>
7456 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7457 </div>
7458 <div class="ays_poll_layer_item_description"></div>
7459 </div>
7460 </label>
7461 <label class='ays-poll-dblclick-layer'>
7462 <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'rating') ? 'checked' : '' ?> >
7463 <div class="ays_poll_layer_item">
7464 <div class="ays_poll_layer_item_logo">
7465 <div class="ays_poll_layer_item_logo_overlay
7466 ays_poll_layer_item_logo_overlay_rating">
7467 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/rating.png' ?>"
7468 alt="<?php echo esc_html__('Rating', "poll-maker") ?>">
7469 </div>
7470 </div>
7471 <div class="ays_poll_layer_item_title">
7472 <p style="margin:0px;"><?php echo esc_html__('Rating', "poll-maker") ?><p>
7473 <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>
7474 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7475 </div>
7476 <div class="ays_poll_layer_item_description"></div>
7477 </div>
7478 </label>
7479 <label class='ays-poll-dblclick-layer'>
7480 <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'text') ? 'checked' : '' ?> >
7481 <div class="ays_poll_layer_item">
7482 <div class="ays_poll_layer_item_logo">
7483 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
7484
7485 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Text.png' ?>"
7486 alt="<?php echo esc_html__('Text', "poll-maker") ?>">
7487 </div>
7488 </div>
7489 <div class="ays_poll_layer_item_title">
7490 <p style="margin:0px;"><?php echo esc_html__('Text', "poll-maker") ?><p>
7491 <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>
7492 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7493 </div>
7494 <div class="ays_poll_layer_item_description"></div>
7495 </div>
7496 </label>
7497 <label class='ays-poll-dblclick-layer'>
7498 <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?php echo ($poll['type'] == 'voting') ? 'checked' : '' ?> >
7499 <div class="ays_poll_layer_item">
7500 <div class="ays_poll_layer_item_logo">
7501 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
7502 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/voting.png' ?>" alt="<?php echo esc_html__('Voting', "poll-maker") ?>">
7503 </div>
7504 </div>
7505 <div class="ays_poll_layer_item_title">
7506 <p style="margin:0px;"><?php echo esc_html__('Voting', "poll-maker") ?><p>
7507 <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>
7508 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7509 </div>
7510 <div class="ays_poll_layer_item_description"></div>
7511 </div>
7512 </label>
7513 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7514 <!-- <input type="radio" value="select" > -->
7515 <div class="ays_poll_layer_item">
7516 <span class="ays_poll_layer_item_pro_version">
7517 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7518 PRO
7519 </a>
7520 </span>
7521 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7522 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
7523
7524 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/Dropdown.png' ?>"
7525 alt="<?php echo esc_html__('Dropdown', "poll-maker") ?>">
7526 </div>
7527 </div>
7528 <div class="ays_poll_layer_item_title">
7529 <p style="margin:0px;">
7530 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7531 <?php echo esc_html__('Dropdown', "poll-maker") ?>
7532 </a>
7533 <p>
7534 <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>
7535 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7536 </div>
7537 <div class="ays_poll_layer_item_description"></div>
7538 </div>
7539 </label>
7540 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7541 <!-- <input value="range" type="radio"> -->
7542 <div class="ays_poll_layer_item">
7543 <span class="ays_poll_layer_item_pro_version">
7544 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7545 PRO
7546 </a>
7547 </span>
7548 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7549 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
7550
7551 <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL) . '/images/polls/range.png' ?>"
7552 alt="<?php echo esc_html__('Range', "poll-maker") ?>">
7553 </div>
7554 </div>
7555 <div class="ays_poll_layer_item_title">
7556 <p style="margin:0px;">
7557 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7558 <?php echo esc_html__('Range', "poll-maker") ?>
7559 </a>
7560 <p>
7561 <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>
7562 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7563 </div>
7564 <div class="ays_poll_layer_item_description"></div>
7565 </div>
7566 </label>
7567 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7568 <!-- <input value="versus" type="radio"> -->
7569 <div class="ays_poll_layer_item">
7570 <span class="ays_poll_layer_item_pro_version">
7571 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7572 PRO
7573 </a>
7574 </span>
7575 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7576 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" >
7577
7578 <span>VS</span>
7579 </div>
7580 </div>
7581 <div class="ays_poll_layer_item_title">
7582 <p style="margin:0px;">
7583 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7584 <?php echo esc_html__('Versus', "poll-maker") ?>
7585 </a>
7586 <p>
7587 <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>
7588 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7589 </div>
7590 <div class="ays_poll_layer_item_description"></div>
7591 </div>
7592 </label>
7593 </div>
7594 <div class="ays_poll_select_button_layer">
7595 <div class="ays_poll_select_button_item">
7596 <input type="button" class="ays_poll_layer_button" name="" value="<?php echo esc_attr__('Next', "poll-maker"); ?>" data-type="<?php echo $poll['type']; ?>">
7597 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7598 </div>
7599 </div>
7600 </div>
7601 </div>
7602 </div>
7603 <?php else: ?>
7604 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7605 <?php endif; ?>
7606 </form>
7607 <div class="ays-modal" id="pro-features-popup-modal">
7608 <div class="ays-modal-content">
7609 <!-- Modal Header -->
7610 <div class="ays-modal-header">
7611 <span class="ays-close-pro-popup">&times;</span>
7612 <!-- <h2></h2> -->
7613 </div>
7614
7615 <!-- Modal body -->
7616 <div class="ays-modal-body">
7617 <div class="row">
7618 <div class="col-sm-6 pro-features-popup-modal-left-section">
7619 </div>
7620 <div class="col-sm-6 pro-features-popup-modal-right-section">
7621 <div class="pro-features-popup-modal-right-box">
7622 <div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div>
7623
7624 <div class="pro-features-popup-modal-right-box-title"></div>
7625
7626 <div class="pro-features-popup-modal-right-box-content"></div>
7627
7628 <div class="pro-features-popup-modal-right-box-button">
7629 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7630 </div>
7631 </div>
7632 <div class="pro-features-popup-modal-right-box-footer-text">
7633 <span class="ays_poll_small_hint_text_for_message_variables"><?php echo esc_html__( "One-time payment", 'poll-maker' ); ?></span>
7634 </div>
7635 </div>
7636 </div>
7637 </div>
7638
7639 <!-- Modal footer -->
7640 <div class="ays-modal-footer" style="display:none">
7641 </div>
7642 </div>
7643 </div>
7644 </div>
7645 </div>