PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 5.6.0
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v5.6.0
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 5.6.6 All 153 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 5.6.0, at admin/partials/poll-maker-ays-polls-actions.php

7,081 lines 602.3 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 = __('Add Image', "poll-maker");
8 $image_text_bg = __('Add Image', "poll-maker");
9 $image_text_logo = __('Add Image', "poll-maker");
10
11 $poll_acordion_svg_html = '
12 <div class="ays-poll-accordion-arrow-box">
13 <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">
14 <g>
15 <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" />
16 </g>
17 </svg>
18 </div>';
19
20 $id = (isset($_GET['poll'])) ? absint(intval($_GET['poll'])) : null;
21
22 if ($action == 'edit') {
23 if ($id === null || $id === 0) {
24 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
25 wp_safe_redirect($url);
26 }
27 }
28
29 $user_id = get_current_user_id();
30 $user = get_userdata($user_id);
31 $users_table = esc_sql( $wpdb->prefix . 'users' );
32 // $sql_users = "SELECT ID, display_name FROM {$users_table}";
33 // $ays_poll_wp_users = $wpdb->get_results($sql_users, "ARRAY_A");
34 $author = array(
35 'id' => $user->ID,
36 'name' => $user->data->display_name
37 );
38
39 $cat_list = get_categories(
40 array(
41 'hide_empty' => false
42 )
43 );
44
45 $poll_message_vars = array(
46 '%%user_name%%' => __("User Name", "poll-maker"),
47 '%%user_email%%' => __("User Email", "poll-maker"),
48 '%%user_phone%%' => __("User Phone", "poll-maker"),
49 '%%poll_title%%' => __("Poll title", "poll-maker"),
50 '%%users_first_name%%' => __("User's First Name", "poll-maker"),
51 '%%users_last_name%%' => __("User's Last Name", "poll-maker"),
52 '%%creation_date%%' => __("Creation date of the poll", "poll-maker"),
53 '%%current_date%%' => __("The date of the submission poll", "poll-maker"),
54 '%%current_poll_author%%' => __("Author of the current poll", "poll-maker"),
55 '%%user_wordpress_roles%%' => __("User's Wordpress Roles", "poll-maker"),
56 "%%user_wordpress_email%%" => __("User's WordPress profile email", "poll-maker"),
57 '%%user_wordpress_website%%' => __("User's Wordpress Website", "poll-maker"),
58 '%%user_display_name%%' => __("User's Display Name", "poll-maker"),
59 '%%user_nickname%%' => __("User's Nick Name", "poll-maker"),
60 '%%user_ip_address%%' => __("User's IP address", "poll-maker"),
61 '%%poll_pass_count%%' => __("Polls pass count", "poll-maker"),
62 '%%passed_poll_count_per_user%%' => __("Passed polls count per user", "poll-maker"),
63 '%%current_poll_page_link%%' => __("Current polls posted link", "poll-maker"),
64 );
65
66 $poll_message_vars_html = $this->ays_poll_generate_message_vars_html( $poll_message_vars );
67
68
69 $poll = array(
70 'title' => 'Default title',
71 'description' => '',
72 'categories' => array(),
73 'image' => '',
74 'question' => '',
75 'type' => 'choosing',
76 'view_type' => '',
77 'answers' => array(),
78 'show_title' => 1,
79 'styles' => '',
80 'custom_css' => '',
81 'theme_id' => 1,
82 );
83 $default_colors = array(
84 "main_color" => "#0C6291",
85 "text_color" => "#0C6291",
86 "icon_color" => "#0C6291",
87 "box_shadow_color" => "#000000",
88 "bg_color" => "#FBFEF9",
89 "answer_bg_color" => "#FBFEF9",
90 "title_bg_color" => "",
91 "border_color" => "#0C6291",
92 );
93 $default_options = array(
94 'randomize_answers' => 'off',
95 "icon_size" => 24,
96 "width" => 600,
97 "width_for_mobile" => '',
98 "btn_text" => __('Vote', "poll-maker"),
99 "see_res_btn_text" => __('See Results', "poll-maker"),
100 "border_style" => "ridge",
101 "border_radius" => 0,
102 "border_width" => 2,
103 "enable_box_shadow" => "",
104 "bg_image" => "",
105 "hide_results" => 0,
106 "hide_results_text" => "<p style='text-align: center'>" . __("Thanks for your answer!", "poll-maker") . "</p>",
107 "allow_not_vote" => 0,
108 "show_social" => 0,
109 "poll_show_social_ln" => "on",
110 "poll_show_social_fb" => "on",
111 "poll_show_social_tr" => "on",
112 "poll_show_social_vk" => "off",
113 "load_effect" => "load_gif",
114 "load_gif" => "plg_default",
115 'limit_users' => 0,
116 "limitation_message" => "<p style='text-align: center'>" . __("You have already voted", "poll-maker") . "</p>",
117 'redirect_url' => '',
118 'redirection_delay' => '',
119 'users_role' => '',
120 'enable_restriction_pass' => 0,
121 'restriction_pass_message' => "<p style='text-align: center'>" . __("You don't have permissions for passing the poll", "poll-maker") . "</p>",
122 'enable_logged_users' => 0,
123 'enable_logged_users_message' => "<p style='text-align: center'>" . __('You must sign in for passing the poll', "poll-maker") . "</p>",
124 'notify_email_on' => 0,
125 'notify_email' => '',
126 'result_sort_type' => 'none',
127 'redirect_after_submit' => 0,
128 'redirect_users' => 0,
129 'redirect_after_vote_url' => '',
130 'redirect_after_vote_delay' => '',
131 'published' => 1,
132 'enable_pass_count' => 'on',
133 'activeInterval' => '',
134 'create_date' => current_time( 'mysql' ),
135 'author' => $author,
136 'deactiveInterval' => '',
137 'enable_background_gradient' => 'off',
138 'background_gradient_color_1' => '#103251',
139 'background_gradient_color_2' => '#607593',
140 'poll_gradient_direction' => 'vertical',
141 'activeIntervalSec' => '',
142 'deactiveIntervalSec' => '',
143 'active_date_check' => '',
144 'active_date_message_soon' => "<p style='text-align: center'>" . __("The poll will be available soon!", "poll-maker") . "</p>",
145 'active_date_message' => "<p style='text-align: center'>" . __("The poll has expired!", "poll-maker") . "</p>",
146 'enable_restart_button' => 0,
147 'enable_vote_btn' => 1,
148 'show_votes_count' => 1,
149 'show_res_percent' => 1,
150 'poll_direction' => 'ltr',
151 'info_form' => 0,
152 'fields' => 'apm_name,apm_email,apm_phone',
153 'required_fields' => 'apm_email',
154 'info_form_title' => "<h5>" . __("Please fill out the form:", "poll-maker") . "</h5>",
155 'disable_answer_hover' => 0,
156 'enable_asnwers_sound' => 'off',
157 'poll_bg_image_position' => 'center center',
158 'poll_bg_img_in_finish_page' => 'off',
159 'ays_add_post_for_poll' => 'off',
160 'result_in_rgba' => 'off',
161 'answer_sort_type' => 'default',
162 'answer_font_size' => '16',
163 'poll_answer_font_size_mobile' => '16',
164 'show_passed_users' => 'off',
165 'logo_image' => '',
166 'dont_show_poll_cont' => 'off',
167 'see_result_button' => 'on',
168 'see_result_radio' => 'ays_see_result_button',
169 'loader_font_size' => '64',
170 'show_answers_numbering' => 'none',
171 'poll_box_shadow_x_offset' => 0,
172 'poll_box_shadow_y_offset' => 0,
173 'poll_box_shadow_z_offset' => 15,
174 'poll_question_size_pc' => 16,
175 'poll_question_size_mobile' => 16,
176 'poll_question_image_object_fit' => "cover",
177 'poll_title_font_size' => 20,
178 'poll_title_font_size_mobile' => 20,
179 'poll_title_alignment' => "center",
180 'poll_title_alignment_mobile' => "center",
181 'poll_text_type_length_enable' => "off",
182 'poll_text_type_limit_type' => "characters",
183 'poll_text_type_limit_length' => "",
184 'poll_text_type_limit_message' => "off",
185 'poll_text_type_placeholder' => "Your answer",
186 'poll_text_type_width' => "",
187 'poll_text_type_width_type' => "percent",
188 'poll_enable_password' => "off",
189 'poll_password' => "",
190 'poll_enable_password_visibility' => "off",
191 'poll_password_message' => 'Please enter password',
192 'poll_answer_enable_box_shadow' => "off",
193 'poll_answer_box_shadow_color' => "#000000",
194 'poll_answer_box_shadow_x_offset' => 0,
195 'poll_answer_box_shadow_y_offset' => 0,
196 'poll_answer_box_shadow_z_offset' => 10,
197 'poll_answer_border_radius' => 0,
198 'poll_enable_answer_image_after_voting' => "off",
199 'enable_poll_title_text_shadow' => 'off',
200 'poll_title_text_shadow' => 'rgba(255,255,255,0)',
201 'poll_title_text_shadow_x_offset' => 2,
202 'poll_title_text_shadow_y_offset' => 2,
203 'poll_title_text_shadow_z_offset' => 0,
204 'display_fields_labels' => 'off',
205 'autofill_user_data' => 'off',
206 'poll_create_author' => $user_id,
207 'poll_main_url' => '',
208 'poll_logo_url_new_tab' => 'off',
209 'show_chart_type' => 'google_bar_chart',
210 );
211
212 $settings_options = $this->settings_obj->ays_get_setting('options');
213 if($settings_options){
214 $settings_options = json_decode($settings_options, true);
215 }else{
216 $settings_options = array();
217 }
218
219 switch ( $action ) {
220 case 'add':
221 $heading = __('Add new poll', "poll-maker");
222 $options = array_merge($default_options, $default_colors);
223 $loader_iamge = "<span class='display_none'><img src=".POLL_MAKER_AYS_ADMIN_URL."/images/loaders/loading.gif></span>";
224 // Default category
225 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
226
227 $poll['categories'] = $poll_default_cat;
228
229 // Default type
230 $poll_default_type = isset($settings_options['default_type']) && $settings_options['default_type'] != '' ? esc_attr($settings_options['default_type']) : "choosing";
231 $poll['type'] = $poll_default_type;
232
233 $ays_check_post = '';
234 break;
235 case 'edit':
236 $heading = __('Edit poll', "poll-maker");
237 $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".POLL_MAKER_AYS_ADMIN_URL."/images/loaders/loading.gif></span>";
238 $poll = $this->polls_obj->get_poll_by_id($id);
239 $post_id = !empty($poll) ? $poll['post_id'] : '';
240 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
241 $ays_poll_view_post_url = get_permalink($post_id);
242 $ays_poll_edit_post_url = get_edit_post_link($post_id);
243
244 if (empty($poll)) {
245 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
246 wp_safe_redirect($url);
247 }
248
249 $options = array_merge($default_options, $poll['styles']);
250 break;
251 default:
252 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
253 wp_safe_redirect($url);
254 break;
255 }
256 $enable_pass_count = $options['enable_pass_count'];
257 $categories = $this->polls_obj->get_categories();
258 global $wp_roles;
259 $ays_users_roles = $wp_roles->roles;
260
261 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
262 $this->polls_obj->add_or_edit_polls($_POST, $id);
263 }
264
265 if (isset($_POST['ays_apply_top']) || isset($_POST['ays_apply'])) {
266 $this->polls_obj->add_or_edit_polls($_POST, $id, "apply");
267 }
268
269 if (isset($_POST['ays_poll_cancel']) || isset($_POST['ays_poll_cancel_top']) ) {
270 unset($_GET['page']);
271 $url = remove_query_arg( array_keys($_GET) );
272 wp_redirect( $url );
273 }
274
275 $style = "display: none;";
276 $style_bg = "display: none;";
277 $style_bg_options = "display: none;";
278 $style_logo = "display: none;";
279 $style_logo_check = false;
280 if (isset($poll['image']) && !empty($poll['image'])) {
281
282 $style = "display: block;";
283 $image_text = __('Edit Image', "poll-maker");
284 }
285 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
286 $style_bg = "display: flex;";
287 $style_bg_options = "display: block;";
288 $image_text_bg = __('Edit Image', "poll-maker");
289 }
290 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
291 $style_logo = "display: block;";
292 $style_logo_check = true;
293 $image_text_logo = __('Edit Image', "poll-maker");
294 }
295
296 $published = $options['published'];
297
298
299 if (!empty($options['activeInterval']) && !empty($options['deactiveInterval'])) {
300 $activateTime = strtotime($options['activeInterval']);
301 $activePoll = date('Y-m-d', $activateTime);
302 $deactivateTime = strtotime($options['deactiveInterval']);
303 $deactivePoll = date('Y-m-d', $deactivateTime);
304 } else {
305 $activePoll = date('Y-m-d');
306 $deactivePoll = date('Y-m-d');
307 }
308
309 $activePollSec = isset($options['activeIntervalSec']) && !empty($options['activeIntervalSec']) ? $options['activeIntervalSec'] : '';
310 $deactivePollSec = isset($options['deactiveIntervalSec']) && !empty($options['deactiveIntervalSec']) ? $options['deactiveIntervalSec'] : '';
311
312 $activePoll = $activePoll . " " . $activePollSec;
313 $deactivePoll = $deactivePoll . " " . $deactivePollSec;
314
315 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
316
317 $all_fields = array(
318 array(
319 "name" => __("Name", "poll-maker"),
320 "slug" => "apm_name",
321 ),
322 array(
323 "name" => __("Email", "poll-maker"),
324 "slug" => "apm_email",
325 ),
326 array(
327 "name" => __("Phone", "poll-maker"),
328 "slug" => "apm_phone",
329 ),
330 );
331
332
333 //INTEGRATIONS
334 $poll_settings = $this->settings_obj;
335
336 $asnwers_sound = (isset($settings_options['answers_sound']) && $settings_options['answers_sound'] != '') ? true : false;
337
338 $answer_default_count = (isset($settings_options['answer_default_count']) && $settings_options['answer_default_count'] != '') ? $settings_options['answer_default_count'] : 2;
339
340 $answers_sound_status = false;
341 if($asnwers_sound){
342 $answers_sound_status = true;
343 }
344
345 // WP Editor height
346 $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 ;
347
348 // Answers sound option
349 $options['enable_asnwers_sound'] = isset($options['enable_asnwers_sound']) ? $options['enable_asnwers_sound'] : 'off';
350 $enable_asnwers_sound = (isset($options['enable_asnwers_sound']) && $options['enable_asnwers_sound'] == "on") ? true : false;
351
352 $mailchimp_res = ($poll_settings->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $poll_settings->ays_get_setting('mailchimp');
353 $mailchimp = json_decode($mailchimp_res, true);
354 $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '';
355 $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '';
356 $mailchimp_lists = $mailchimp_api_key ? $this->ays_get_mailchimp_lists($mailchimp_username, $mailchimp_api_key) : array();
357 $mailchimp_select = array();
358 if (!empty($mailchimp_lists) && isset($mailchimp_lists['total_items']) && $mailchimp_lists['total_items'] > 0) {
359 foreach ( $mailchimp_lists['lists'] as $list ) {
360 $mailchimp_select[] = array(
361 'listId' => $list['id'],
362 'listName' => $list['name']
363 );
364 }
365 } else {
366 $mailchimp_select = __("There are no lists", "poll-maker");
367 }
368
369 // MailChimp
370 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
371 $mailchimp_list = (isset($options['mailchimp_list'])) ? $options['mailchimp_list'] : '';
372
373
374 $fields = !empty($options['fields']) ? explode(",", $options['fields']) : array();
375 $required_fields = !empty($options['required_fields']) ? explode(",", $options['required_fields']) : array();
376
377 // Show votes count
378 $options['show_votes_count'] = isset($options['show_votes_count']) ? $options['show_votes_count'] : 1;
379 $showvotescount = isset($options['show_votes_count']) && intval($options['show_votes_count']) == 1 ? true : false;
380
381 // Show result percent
382 $options['show_res_percent'] = isset($options['show_res_percent']) ? $options['show_res_percent'] : 1;
383 $show_res_percent = isset($options['show_res_percent']) && intval($options['show_res_percent']) == 1 ? true : false;
384
385 // Show result button after schedule
386 $options['show_result_btn_schedule'] = isset($options['show_result_btn_schedule']) ? $options['show_result_btn_schedule'] : 0;
387 $showresbtnschedule = isset($options['show_result_btn_schedule']) && intval($options['show_result_btn_schedule']) == 1 ? true : false;
388
389 $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';
390
391 $schedule_show_timer = isset($options['ays_poll_show_timer']) && intval($options['ays_poll_show_timer']) == 1 ? true : false;
392
393 $show_timer_type = isset($options['ays_show_timer_type']) && !empty($options['ays_show_timer_type'])? $options['ays_show_timer_type'] : 'countdown';
394
395 $show_bottom_timer = isset($options['show_bottom_timer']) && intval($options['show_bottom_timer']) == 1 ? true : false;
396
397 // Show login form for not logged in users
398 $options['show_login_form'] = isset($options['show_login_form']) ? $options['show_login_form'] : 'off';
399 $show_login_form = (isset($options['show_login_form'] ) && $options['show_login_form'] == "on") ? true : false;
400
401 // Redirect after voting
402 $options['redirect_users'] = isset($options['redirect_users']) ? $options['redirect_users'] : 0;
403 $redirect_users = (isset($options['redirect_users']) && $options['redirect_users'] == 1) ? true : false;
404
405 // Results notification by email
406 $options['notify_email_on'] = isset($options['notify_email_on']) ? $options['notify_email_on'] : 0;
407 $notify_email_on = (isset($options['notify_email_on']) && $options['notify_email_on'] == 1) ? true : false;
408
409 // Background gradient
410 $options['enable_background_gradient'] = (!isset($options['enable_background_gradient'])) ? 'off' : $options['enable_background_gradient'];
411 $enable_background_gradient = (isset($options['enable_background_gradient']) && $options['enable_background_gradient'] == 'on') ? true : false;
412
413 $background_gradient_color_1 = (isset($options['background_gradient_color_1']) && $options['background_gradient_color_1'] != '' && $enable_background_gradient) ? $options['background_gradient_color_1'] : '#103251';
414 $background_gradient_color_2 = (isset($options['background_gradient_color_2']) && $options['background_gradient_color_2'] != '' && $enable_background_gradient) ? $options['background_gradient_color_2'] : '#607593';
415 $poll_gradient_direction = (isset($options['poll_gradient_direction']) && $options['poll_gradient_direction'] != '') ? $options['poll_gradient_direction'] : 'vertical';
416
417
418 // Redirect after submit
419 $options['redirect_after_submit'] = (!isset($options['redirect_after_submit'])) ? 0 : $options['redirect_after_submit'];
420 $redirect_after_submit = (isset($options['redirect_after_submit']) && $options['redirect_after_submit'] == 1) ? true : false;
421 $submit_redirect_url = isset($options['ays_submit_redirect_url']) ? $options['ays_submit_redirect_url'] : '';
422 // $submit_redirect_delay = isset($options['submit_redirect_delay']) ? $options['submit_redirect_delay'] : '';
423
424 $users_role = (isset($options['users_role']) && $options['users_role'] != "") ? json_decode($options['users_role'], true) : array();
425
426 $options['enable_answer_style'] = isset($options['enable_answer_style']) ? $options['enable_answer_style'] : 'on';
427
428 // $poll_create_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : "0000-00-00 00:00:00";
429
430 $change_creation_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : current_time( 'mysql' );
431
432
433 // Bg image positioning
434 $poll_bg_image_position = (isset($options['poll_bg_image_position']) && $options['poll_bg_image_position'] != '') ? $options['poll_bg_image_position'] : "center center";
435
436 $poll_bg_img_in_finish_page = (isset($options['poll_bg_img_in_finish_page']) && $options['poll_bg_img_in_finish_page'] == "on") ? true : false;
437
438 if(isset($options['author']) && $options['author'] != 'null'){
439 if ( ! is_array( $options['author'] ) ) {
440 $options['author'] = json_decode($options['author'], true);
441 $poll_author = $options['author'];
442 } else {
443 $poll_author = array_map( 'stripslashes', $options['author'] );
444 }
445 } else {
446 $poll_author = array('name' => 'Unknown');
447 }
448
449 $show_create_date = (isset($options['show_create_date']) && $options['show_create_date'] == 1) ? true : false;
450 $show_author = (isset($options['show_author']) && $options['show_author'] == 1) ? true : false;
451
452 $custom_class = (isset($options['custom_class']) && $options['custom_class'] != "") ? $options['custom_class'] : '';
453
454 // Results bar in RGBA
455 $options['result_in_rgba'] = isset($options['result_in_rgba']) ? $options['result_in_rgba'] : 'off';
456 $result_in_rgba = (isset($options['result_in_rgba']) && $options['result_in_rgba'] == "on") ? true : false;
457
458 // Enable View more button
459 $options['enable_view_more_button'] = isset($options['enable_view_more_button']) ? $options['enable_view_more_button'] : 'off';
460 $enable_view_more_button = (isset($options['enable_view_more_button']) && $options['enable_view_more_button'] == 'on' ) ? true : false;
461 $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;
462
463
464 // Poll Min Height
465 $poll_min_height = (isset($options['poll_min_height']) && $options['poll_min_height'] != '') ? absint(intval($options['poll_min_height'])) : '';
466
467 // Poll answer font size
468 $poll_answer_font_size = (isset($options['answer_font_size']) && $options['answer_font_size'] != '') ? esc_html($options['answer_font_size']) : '15';
469
470 // Poll answers font size on mobile
471 $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';
472
473 // Poll show passed users
474 $poll_show_passed_users = isset($options['show_passed_users']) ? esc_html($options['show_passed_users']) : 'off';
475 $poll_show_passed_users_checked = isset($poll_show_passed_users) && $poll_show_passed_users == 'on' ? 'checked' : '';
476 $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;
477
478 // Poll Logo image
479 $poll_logo_image = isset($options['logo_image']) && $options['logo_image'] != '' ? esc_url($options['logo_image']) : '';
480 $poll_check_logo = isset($poll_logo_image) && $poll_logo_image != '' ? true : false;
481 $poll_logo_img = $poll_check_logo ? 'ays_logo_image_on' : 'display_none';
482 $poll_logo_for_live_container = $poll_check_logo ? 'ays_logo_cont_image_on' : '';
483
484 //
485
486 $checking_answer_hover_live = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
487
488 // Poll schedule container on/off
489 $poll_check_exp_cont = (isset($options['dont_show_poll_cont']) && $options['dont_show_poll_cont'] == 'on') ? 'checked' : '';
490
491 // Poll see results button in limitations
492 $poll_see_result_button = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? 'checked' : '';
493 $poll_see_result_button_check = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? true : false;
494 $poll_see_result_button_cont = (isset($options['see_result_button']) && $options['see_result_button'] != 'on') ? 'ays_poll_display_none' : '';
495 $poll_see_result_radio = (isset($options['see_result_radio']) && $options['see_result_radio'] != '') ? esc_attr($options['see_result_radio']) : 'ays_see_result_button';
496 $poll_see_result_botton_show = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_button' ? 'checked' : '';
497 $poll_see_result_immediately = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_immediately' ? 'checked' : '';
498
499 // Loader font size
500 $poll_loader_font_size = (isset($options['loader_font_size']) && $options['loader_font_size'] != '') ? esc_attr($options['loader_font_size']) : '64';
501 $poll_loader_size_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "display_none";
502 $poll_loader_size_line_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "ays_hr_display_none";
503
504 // Show answers numbering
505 $show_answers_numbering = (isset($options['show_answers_numbering']) && sanitize_text_field( $options['show_answers_numbering'] ) != '') ? sanitize_text_field( $options['show_answers_numbering'] ) : 'none';
506
507 // Default border color
508 $main_color = isset($options['main_color']) && $options['main_color'] != "" ? $options['main_color'] : $default_colors['main_color'];
509 $default_border = isset($options['border_color']) && $options['border_color'] != "" ? $options['border_color'] : $main_color;
510
511 // Poll load effect message
512 $poll_effect_message = isset($options['effect_message']) && $options['effect_message'] != "" ? $options['effect_message'] : "";
513
514 // Poll title
515 $poll_title = isset($poll['title']) && $poll['title'] != "" ? stripslashes(htmlentities($poll['title'])) : "Default title";
516
517 // Box shadow coords
518 // Box Shadow X offset
519 $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;
520
521 // Box Shadow Y offset
522 $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;
523
524 // Box Shadow Z offset
525 $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;
526
527 // Poll Vote Reason
528 $poll_vote_reason = (isset($options['poll_vote_reason']) && $options['poll_vote_reason'] == 'on' ) ? "checked" : "";
529
530 // Allow multivote
531 $poll_allow_multivote = isset($options['poll_allow_multivote']) && $options['poll_allow_multivote'] == 'on' ? "checked" : "";
532 // Enable multivote answer
533 $poll_enable_multivote_answer = $poll_allow_multivote == "checked" ? true : false;
534
535 // Minimum count for multivote answer
536 $poll_multivote_min_count = (isset($options['multivote_answer_min_count']) && $options['multivote_answer_min_count'] != '') ? intval(esc_attr($options['multivote_answer_min_count'])) : '1';
537
538 // Count for multivote answer
539 $poll_multivote_answer_count = (isset($options['poll_allow_multivote_count']) && $options['poll_allow_multivote_count'] != '') ? intval(esc_attr($options['poll_allow_multivote_count'])) : '1';
540
541 // Allow collect user info
542 $poll_allow_collecting_users_data = (isset($options['poll_allow_collecting_users_data']) && $options['poll_allow_collecting_users_data'] == 'on') ? "checked" : "";
543
544 // Show answers icon
545 $poll_answer_icon_check = (isset($options['poll_answer_icon_check']) && $options['poll_answer_icon_check'] == 'on') ? true : false;
546 // Poll answer icon
547 $poll_answer_icon = isset($options['poll_answer_icon']) ? $options['poll_answer_icon'] : 'radio';
548
549 // Every Answer redirect delay
550 $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']) : "";
551
552 // Enable answer redirect delay
553 $poll_enable_answer_redirect_delay = isset($options['poll_enable_answer_redirect_delay']) && $options['poll_enable_answer_redirect_delay'] == "on" ? true : false;
554
555 // Show Answers image after voting
556 $poll_enable_answer_image_after_voting = isset($options['poll_enable_answer_image_after_voting']) && $options['poll_enable_answer_image_after_voting'] == "on" ? true : false;
557
558 // Poll logo image url
559 $poll_logo_image_url = isset($options['poll_logo_url']) && $options['poll_logo_url'] != "" ? esc_attr($options['poll_logo_url']) : "";
560
561 // Check if the poll logo URL is enabled
562 $poll_logo_image_url_check = isset($options['poll_enable_logo_url']) && $options['poll_enable_logo_url'] == "on" ? true : false;
563
564 // Poll question font size
565 $poll_question_font_size_pc = isset($options['poll_question_size_pc']) && $options['poll_question_size_pc'] != "" ? esc_attr($options['poll_question_size_pc']) : 16;
566
567 // Poll question font size for mobile
568 $poll_question_font_size_mobile = isset($options['poll_question_size_mobile']) && $options['poll_question_size_mobile'] != "" ? esc_attr($options['poll_question_size_mobile']) : 16;
569
570 // Poll question image height
571 $poll_question_image_height = isset($options['poll_question_image_height']) && $options['poll_question_image_height'] != "" ? esc_attr($options['poll_question_image_height']) : "";
572
573 // Poll container max-width for mobile
574 $poll_mobile_max_width = (isset($options['poll_mobile_max_width']) && $options['poll_mobile_max_width'] != "") ? esc_attr($options['poll_mobile_max_width']) : '';
575
576 // ==== BUTTON STYLES START ====
577 // Buttons font size
578 $poll_buttons_font_size = (isset($options['poll_buttons_font_size']) && $options['poll_buttons_font_size'] != "") ? esc_attr($options['poll_buttons_font_size']) : '17';
579
580 // Buttons text color
581 $poll_button_text_color = (isset($options['button_text_color']) && $options['button_text_color'] != "") ? $options['button_text_color'] : $options['bg_color'];
582
583 // Buttons background color
584 $poll_button_bg_color = (isset($options['button_bg_color']) && $options['button_bg_color'] != "") ? $options['button_bg_color'] : $main_color;
585
586 // Buttons mobile font size
587 $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';
588
589 // Buttons Left / Right padding
590 $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';
591
592 // Buttons Top / Bottom padding
593 $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';
594
595 // Buttons border radius
596 $poll_buttons_border_radius = (isset($options['poll_buttons_border_radius']) && $options['poll_buttons_border_radius'] != "") ? esc_attr($options['poll_buttons_border_radius']) : '3';
597
598 // Buttons Width
599 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
600
601 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
602 // ==== BUTTON STYLES END ====
603
604 // ==== Allow Answer options ====
605 // Allow custom answer
606 $poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : "";
607 // Require admin approval
608 $poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : "";
609
610 // ==== ====
611
612 // Poll answer view type
613 $poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list";
614
615 // Poll answer image height
616 $poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150";
617
618 // Poll answer image height for mobile
619 $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";
620
621 // Poll answer image border radius
622 $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;
623
624 // Poll answer image height
625 $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";
626
627 // Poll answer image object fit
628 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
629
630 // Poll answer padding
631 $poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10";
632
633 // Poll 1 column in mobile
634 $options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on';
635 $answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false;
636
637 // Poll answer gap
638 $poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10";
639
640 // Poll title font size
641 $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";
642
643 // Poll title font size for mobile
644 $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";
645
646 // Poll title alignment
647 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
648
649 // Poll title alignment mobile
650 $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;
651
652 // Poll view type
653 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
654
655 // ===== Poll text type options start =====
656 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
657 $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";
658 $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']) : "";
659 $poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false;
660 $poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : "";
661 $poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : "";
662 $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";
663 // ===== Poll text type options end =====
664
665 $poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false;
666 // Enable toggle password visibility
667 $options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off';
668 $poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false;
669 $poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : "";
670 $poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password";
671
672 // == Poll answer box shadow ==
673 // Poll answer box shadow enable
674 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
675 // Poll answer box shadow color
676 $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";
677
678 // Poll answer box shadow parameters
679 $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;
680
681 $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;
682
683 $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;
684
685 // Poll answer box shadow color
686 $poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0;
687
688 $poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false;
689 $poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : '';
690 $poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false;
691 $poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false;
692 $poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false;
693 $poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false;
694
695 // Title text shadow
696 $options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off';
697
698 $enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false;
699
700 $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)';
701
702 $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;
703
704 $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;
705
706 $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;
707
708 // Display form fields labels
709 $options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off';
710 $display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false;
711
712 // Autofill user data
713 $options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off';
714 $autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false;
715
716 // Change the author of the current poll
717 $change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id;
718 $get_current_poll_author_data = get_userdata($change_poll_create_author);
719
720 // Poll main url
721 $poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : '';
722
723 //Open logo URL in new tab
724 $poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : "";
725
726 //Poll Logo title
727 $poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : '';
728
729 //Poll mobile width
730 $width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : '';
731
732 // Social Media links
733 $enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false;
734 $social_links = (isset($options['social_links'])) ? $options['social_links'] : array(
735 'linkedin_link' => '',
736 'facebook_link' => '',
737 'twitter_link' => '',
738 'vkontakte_link' => '',
739 'instagram_link' => '',
740 'youtube_link' => '',
741 );
742 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
743 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
744 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
745 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
746 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
747 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
748
749 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
750 $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;
751
752 $next_poll_id = "";
753 $prev_poll_id = '';
754 if ( isset( $id ) && !is_null( $id ) ) {
755 $next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" );
756 $next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null;
757
758 $prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" );
759 $prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null;
760
761 }
762
763 $get_all_polls = Poll_Maker_Data::get_all_polls();
764
765 ?>
766 <!--LIVE PREVIEW STYLES-->
767 <?php
768 $emoji = array(
769 "<i class='ays_poll_far ays_poll_fa-dizzy'></i>",
770 "<i class='ays_poll_far ays_poll_fa-smile'></i>",
771 "<i class='ays_poll_far ays_poll_fa-meh'></i>",
772 "<i class='ays_poll_far ays_poll_fa-frown'></i>",
773 "<i class='ays_poll_far ays_poll_fa-tired'></i>",
774 ); ?>
775 <style>
776 /*save changing properties of poll in the css-variables*/
777 :root {
778 /*colors*/
779 --theme-main-color: <?=$options['main_color']?>;
780 --theme-bg-color: <?=$options['bg_color']?>;
781 --theme-answer-bg-color: <?= isset($options['answer_bg_color']) && !empty($options['answer_bg_color']) ? $options['answer_bg_color'] : $options['bg_color'] ?>;
782 --theme-title-bg-color: <?= isset($options['title_bg_color']) && !empty($options['title_bg_color']) ? $options['title_bg_color'] : $options['bg_color'] ?>;
783 --theme-text-color: <?=$options['text_color']?>;
784 --theme-button-text-color: <?=$options['bg_color']?>;
785 --theme-icon-color: <?=$options['icon_color']?>;
786 /*options*/
787 --poll-width: <?= (int) $options['width'] > 0 ? (int) $options['width'] . "px" : "100%" ?>;
788 --poll-border-style: <?=$options['border_style']?>;
789 --poll-border-radius: <?= absint($options['border_radius'])?>px;
790 --poll-border-width: <?= absint($options['border_width'])?>px;
791 --poll-box-shadow: <?= (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] . ' 0px 0px 10px 0px' : '' ?>;
792 --poll-bagckround-image: <?= !empty($options['bg_image']) ? "url({$options['bg_image']})" : "unset" ?>;
793 --poll-icons-size: <?= absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24 ?>px;
794 --poll-display-title: <?= $poll['show_title'] ? "block" : "none"?>;
795 --poll-display-image-box: <?= !empty($poll['image']) ? "block" : "none" ?>;
796
797 }
798
799
800 input[type='button'].ays-poll-btn{
801 font-size: <?php echo $poll_buttons_font_size; ?>px;
802 padding: <?php echo $poll_buttons_top_bottom_padding."px ".$poll_buttons_left_right_padding."px"; ?>;
803 border-radius: <?php echo $poll_buttons_border_radius; ?>px;
804 width: <?php echo $poll_buttons_width; ?>px;
805 }
806 </style>
807 <!--LIVE PREVIEW STYLES END-->
808 <div class="wrap">
809 <div class="ays-poll-heading-box">
810 <div class="ays-poll-wordpress-user-manual-box">
811 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
812 <i class="ays_poll_fas ays_fa_file_text"></i>
813 <span style="margin-left: 3px;text-decoration: underline;"><?php echo __("View Documentation", "poll-maker"); ?></span>
814 </a>
815 </div>
816 </div>
817 <div class="container-fluid">
818 <form class="ays-poll-form" id="ays-poll-form" method="post">
819 <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo htmlentities($active_tab); ?>"/>
820 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
821 <input type="hidden" name="ays_poll_author" value="<?php echo htmlentities(json_encode($poll_author)); ?>">
822 <input type="hidden" id="poll_choose_type_first" value="<?php echo $poll['type']; ?>" >
823 <h1 class="wp-heading-inline">
824 <?php
825 echo "$heading";
826 ?>
827 </h1>
828 <div>
829 <div class="ays-poll-subtitle-main-box">
830 <p class="ays-subtitle">
831 <?php if(isset($id) && count($get_all_polls) > 1):?>
832 <i class="ays_poll_fas ays_fa_arrow_down ays-poll-open-polls-list" style="font-size: 15px;"></i>
833 <?php endif; ?>
834 <strong class="ays_poll_title_in_top"><?php echo $poll['title']; ?></strong>
835 </p>
836 <?php if(isset($id) && count($get_all_polls) > 1):?>
837 <div class="ays-poll-polls-data">
838 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
839 <?php ?>
840 <label class="ays-poll-message-vars-each-data-label">
841 <input type="radio" class="ays-poll-polls-each-data-checker" hidden id="ays_poll_message_var_count_<?php echo $var_counter?>" name="ays_poll_message_var_count">
842 <div class="ays-poll-polls-each-data">
843 <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo $var; ?>">
844 <a href="?page=poll-maker-ays&action=edit&poll=<?php echo $var_name['id']?>" target="_blank" class="ays-poll-go-to-polls"><span><?php echo stripslashes(esc_attr($var_name['title'])); ?></span></a>
845 </div>
846 </label>
847 <?php endforeach ?>
848 </div>
849 <?php endif; ?>
850 </div>
851 <?php if($id !== null): ?>
852 <div class="row">
853 <div class="col-sm-3">
854 <label> <?php echo __( "Shortcode text for editor", "poll-maker" ); ?> </label>
855 </div>
856 <div class="col-sm-9">
857 <p style="font-size:14px; font-style:italic;">
858 <?php echo __("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
859 <strong class="ays-poll-shortcode-box" data-toggle="tooltip" title="<?php echo __('Click for copy.',"poll-maker");?>" onClick="selectElementContents(this)" style="font-size:16px; font-style:normal;"><?php echo "[ays_poll id=".$id."]"; ?></strong>
860 <?php echo " " . __( "and paste it at the desired place in the editor.", "poll-maker"); ?>
861 </p>
862 </div>
863 </div>
864 <?php endif;?>
865 </div>
866 <hr>
867 <div class='ays-all-container'>
868 <div class='ays-all-sub-container'>
869 <div class="ays-top-menu-wrapper">
870 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
871 <div class="ays-top-menu">
872 <div class="nav-tab-wrapper ays-top-tab-wrapper">
873 <a href="#tab1" data-title="General"
874 class="nav-tab <?= $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
875 <?= __('General', "poll-maker"); ?>
876 </a>
877 <a href="#tab2" data-title="Styles"
878 class="nav-tab <?= $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
879 <?= __('Styles', "poll-maker"); ?>
880 </a>
881 <a href="#tab3" data-title="Settings"
882 class="nav-tab <?= $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
883 <?= __('Settings', "poll-maker"); ?>
884 </a>
885 <a href="#tab8" data-title="Results Settings"
886 class="nav-tab <?= $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
887 <?= __('Results Settings', "poll-maker"); ?>
888 </a>
889 <a href="#tab4" data-title="Limitations"
890 class="nav-tab <?= $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
891 <?= __("Limitations", "poll-maker"); ?>
892 </a>
893 <a href="#tab5" data-title="Userdata"
894 class="nav-tab <?= $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
895 <?= __('User Data', "poll-maker"); ?>
896 </a>
897 <a href="#tab6" data-title="Email"
898 class="nav-tab <?= $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
899 <?= __('Email', "poll-maker"); ?>
900 </a>
901 <a href="#tab7" data-title="Integrations"
902 class="nav-tab <?= $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
903 <?= __('Integrations', "poll-maker"); ?>
904 </a>
905 </div>
906 <div class='top-menu-buttons-container'>
907 <?php
908 echo $loader_iamge;
909 $save_attributes = array(
910 'id' => 'ays-button-top-apply',
911 'title' => 'Ctrl + s',
912 'data-toggle' => 'tooltip',
913 'data-delay'=> '{"show":"1000"}'
914 );
915 submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
916 $save_close_attributes = array('id' => 'ays-button-top');
917 submit_button(__('Save and close', "poll-maker"), 'primary ays-top-menu-save-and-close ays-bottom-menu-buttons', 'ays_submit_top', false, $save_close_attributes);
918 submit_button(__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
919 ?>
920 </div>
921 </div>
922 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
923 </div>
924 <div id="tab1" class="ays-poll-tab-content <?= $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
925 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
926 <p class="ays-subtitle" style="margin-bottom:0;">
927 <?= __('General options', "poll-maker"); ?>
928 </p>
929 <?php if ($poll_main_url != ''): ?>
930 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
931 <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;">
932 <i class="fa fa-eye" aria-hidden="true"></i>
933 <span style="margin-left: 5px;"><?php echo __( 'View', "easy-form" ); ?></span>
934 </a>
935 </div>
936 <?php endif; ?>
937 </div>
938 <hr>
939 <div class="form-group row">
940 <div class="col-sm-3">
941 <label for='ays-poll-title'>
942 <?= __('Title', "poll-maker"); ?>
943 <a class="ays_help" data-toggle="tooltip"
944 data-placement="top"
945 title="<?= __("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
946 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
947 </a>
948 </label>
949 </div>
950 <div class="col-sm-9 ays_divider_left">
951 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
952 data-required="false" value="<?= $poll_title ?>"/>
953 </div>
954 </div>
955 <hr>
956 <div class="form-group row" style="display: flex;">
957 <div class="col-sm-3">
958 <label for='ays-poll-question'>
959 <?= __('Question', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Write the main content/question, which will be shown inside the poll.", "poll-maker"); ?>">
960 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
961 </a>
962 <a href="javascript:void(0)" class="add-question-image button">
963 <?= $image_text; ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Add an image to the question.", "poll-maker"); ?>">
964 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
965 </a></a>
966 </label>
967 <div class="ays-poll-question-image-container" style="<?= $style; ?>">
968 <span class="ays-remove-question-img"></span>
969 <img src="<?= $poll['image']; ?>" id="ays-poll-img"/>
970 <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?= $poll['image']; ?>"/>
971 </div>
972 </div>
973 <div class="col-sm-9">
974 <?php
975 $content = stripslashes($poll["question"]);
976 $editor_id = 'ays-poll-question';
977 $settings = array(
978 'editor_height' => $poll_wp_editor_height,
979 'textarea_name' => 'ays_poll_question',
980 'editor_class' => 'ays-textarea',
981 'media_buttons' => true,
982 'tinymce' => array(
983 "init_instance_callback" => "function(editor) {
984 editor.on('Change', function(e) {
985 document.querySelector('.box-apm .ays_question').innerHTML = e.level.content;
986 });
987 }",
988 )
989 );
990 wp_editor($content, $editor_id, $settings);
991 ?>
992 </div>
993 </div>
994 <hr>
995
996 <?php if ($poll['type'] == 'choosing') : ?>
997 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
998 <div class="col-sm-3">
999 <label for="ays-poll-answer" >
1000 <?php echo __('Options', "poll-maker")?>
1001 </label>
1002 </div>
1003 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1004 <div>
1005 <div class='add-option-top-container'>
1006 <a class="ays-add-answer ays-click-once" id='add-answer'>
1007 <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1008 <span>Add Option</span>
1009 </a>
1010 </div>
1011 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1012 <thead>
1013 <tr class="ui-state-default">
1014 <th class="th-150"><?php echo __('Ordering', "poll-maker"); ?></th>
1015 <th style="width: 100vw;"><?php echo __('Option', "poll-maker"); ?></th>
1016 <th class="th-350 ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"><?php echo __('Redirect URL', "poll-maker"); ?></th>
1017 <th class="th-150 only_pro"><?php echo __('Image', "poll-maker"); ?></th>
1018 <th class="th-150"><?php echo __('Delete', "poll-maker"); ?></th>
1019 </tr>
1020 </thead>
1021 <tbody class="">
1022 <?php
1023 $answers = $poll['answers'];
1024 $answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count;
1025 $loop_iteration = 0;
1026 $rows_count = count($answers);
1027 $ays_key_enter = "";
1028 $user_add_html = '';
1029 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1030 foreach ($answers as $index => $answer) {
1031 $user_add_html = '';
1032 $class = (($index + 1) % 2 == 0) ? "even" : "";
1033 $answer_val = stripslashes(htmlentities($answer["answer"]));
1034 $answer_id = $answer["id"];
1035 $answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;';
1036 $answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img'];
1037 $answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : '';
1038 $user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false;
1039 $show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false;
1040
1041 if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on")
1042 && (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) {
1043 $disable_show_user_added = '';
1044 }else{
1045 $disable_show_user_added = 'display: none;';
1046 }
1047
1048 $show_user_added_checkbox = '';
1049 if ($show_user_added == 1) {
1050 $show_user_added_checkbox = 'checked';
1051 }
1052 if ( $user_added ) {
1053 $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 .' />';
1054 }
1055
1056 if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){
1057 $check_show_user_added = "1";
1058 }elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) {
1059 $check_show_user_added = "0";
1060 }else{
1061 $check_show_user_added = "1";
1062 }
1063
1064 if($loop_iteration == $rows_count - 1){
1065 $ays_key_enter = "ays_poll_enter_key";
1066 }
1067 $loop_iteration++;
1068 ?>
1069 <tr class="ays-answer-row ui-state-default <?php echo $class; ?>">
1070 <td class="ays-sort">
1071 <div class='ays_poll_move_arrows'></div>
1072 <td>
1073 <div class="ays_poll_display_flex">
1074 <input type="hidden" class="<?php echo ( $user_added ) ? 'ays_show_user_added_hid' : ''; ?>" name="ays_poll_show_user_added[]" value="<?= $check_show_user_added ?>" />
1075 <input type="text" class="ays-text-input ays-answer-value <?php echo $ays_key_enter;?>" name="ays-poll-answers[]" data-id="<?php echo $index;?>" value="<?php echo esc_html($answer_val); ?>">
1076 <?php echo $user_add_html; ?>
1077 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $index;?>" value="<?php echo $answer_id; ?>">
1078 </div>
1079 </td>
1080 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1081 <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo $answer_id; ?>" name="ays_submit_redirect_url[]" value="<?php echo "$answer_redirect"; ?>"/>
1082 </td>
1083 <td>
1084 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1085 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1086 </label>
1087 <div class="ays-poll-answer-image-container" style="<?php echo $answer_img_class; ?>">
1088 <span class="ays-poll-remove-answer-img"></span>
1089 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1090 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1091 </div>
1092 </td>
1093 <td>
1094 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $index;?>" data-lid="<?php echo $index;?>">
1095 </a>
1096 </td>
1097 </tr>
1098 <?php
1099 }
1100 ?>
1101 <?php
1102 else:
1103 for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) :
1104 if($loop_iteration == intval($answer_default_count) - 1){
1105 $ays_key_enter = "ays_poll_enter_key";
1106 }
1107 $loop_iteration++;
1108 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1109 ?>
1110 <tr class="ays-answer-row ui-state-default <?php echo $ays_even_or_not; ?>">
1111 <td class="ays-sort">
1112 <div class='ays_poll_move_arrows'></div>
1113 </td>
1114 <td class="ays-choosing-answer-container">
1115 <div class="ays_poll_display_flex">
1116 <input type="text" class="ays-text-input ays-answer-value <?php echo $ays_key_enter;?>" name="ays-poll-answers[]" data-id="<?php echo $dac_i;?>" value="<?= __("Option", "poll-maker") . " " . ($dac_i+1); ?>">
1117 <?php echo $user_add_html; ?>
1118 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $dac_i;?>" value="0">
1119 </div>
1120 </td>
1121 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1122 <input type="text" class="ays-text-input ays_redirect_active" id="ays_submit_redirect_url_<?php echo $dac_i; ?>" name="ays_submit_redirect_url[]" value=""/>
1123 </td>
1124 <td>
1125 <label class='ays-label' for='ays-answer'>
1126 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
1127 </label>
1128 <div class="ays-poll-answer-image-container" style="display:none;">
1129 <span class="ays-poll-remove-answer-img"></span>
1130 <img src="" class="ays-poll-answer-img"/>
1131 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/>
1132 </div>
1133 </td>
1134
1135 <td>
1136 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $dac_i;?>" data-lid="<?php echo $dac_i;?>">
1137 </a>
1138 </td>
1139 </tr>
1140 <?php
1141 endfor;
1142 endif;
1143 ?>
1144 </tbody>
1145 </table>
1146 <div class='add-option-top-container'>
1147 <a class="ays-add-answer" id='add-answer'>
1148 <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1149 <span>Add Option</span>
1150 </a>
1151 </div>
1152 <input type="hidden" id="ays_poll_answers_count" value="<?php echo $answers_count ?>">
1153 <input type="hidden" id="ays_answer_checker" value="<?php echo $checking_answer_hover_live ?>">
1154 </div>
1155
1156 </div>
1157 </div>
1158 <?php endif; ?>
1159 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1160 <div class="form-group row" style="display: flex;">
1161 <div class="col-sm-3">
1162 <label for="ays-poll-answer" >
1163 <?php echo __('Option Settings', "poll-maker")?>
1164 </label>
1165 </div>
1166 <div class="col-sm-9">
1167 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
1168 <div class="col-sm-12">
1169 <div class="form-group row">
1170 <div class="col-1">
1171 <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' : '' ?>/>
1172 </div>
1173 <div class="col-4 unset-padding-left">
1174 <label for="ays_redirect_after_submit" >
1175 <?php echo __('Answer Redirection', "poll-maker")?>
1176 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable redirection to the custom URL(s) after the user votes the poll. Assign different URLs to each answer separately.', "poll-maker")?>">
1177 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1178 </a>
1179 </label>
1180 </div>
1181 </div>
1182 </div>
1183 </div>
1184 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1185 <div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent">
1186 <div class="col-sm-12">
1187 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1188 <div class="col-1">
1189 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1190 value="on" <?= $poll_allow_answer ?>>
1191 </div>
1192 <div class="col-4 unset-padding-left">
1193 <label for="ays_poll_allow_add_answers">
1194 <?= __('Allow custom answer', "poll-maker"); ?>
1195 <a class="ays_help" data-toggle="tooltip"
1196 data-placement="top"
1197 title="<?= __("Allow users to add their custom answer.", "poll-maker"); ?>">
1198 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1199 </a>
1200 </label>
1201 </div>
1202 <div class="col-7 allow_add_answers_not_show_up_container">
1203 <div class="ays_toggle_target" <?= $poll_allow_answer ? '' : 'style="display:none;"'; ?>>
1204 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1205 <div class="col-2 ays_divider_left">
1206 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1207 value="on" <?= $poll_allow_answer_require ?> />
1208 </div>
1209 <div class="col-10">
1210 <label for="ays_poll_allow_answer_require">
1211 <?= __('Require admin approval', "poll-maker"); ?>
1212 <a class="ays_help" data-toggle="tooltip"
1213 data-placement="top"
1214 title="<?= __("If the option is enabled, the answers added by users will require admin approval to be shown up inside the poll (public).", "poll-maker"); ?>">
1215 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1216 </a>
1217 </label>
1218 </div>
1219 <?php
1220 $poll_answers = $poll['answers'];
1221 $is_user_added_exist = 0;
1222 foreach ($poll_answers as $index => $answer) {
1223 if($answer['user_added'] == 1) {
1224 $is_user_added_exist++;
1225 }
1226 }
1227 if($is_user_added_exist > 0):
1228 ?>
1229 <div class="col-12 row ays_toggle_target" <?= ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1230 <div class="col-2 ays_divider_left" style="align-items: center;">
1231 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1232 </div>
1233 <div class="col-10">
1234 <label for="ays_poll_require_approve_select_all">
1235 <?= __('Select all', "poll-maker"); ?>
1236 <a class="ays_help" data-toggle="tooltip"
1237 data-placement="top"
1238 title="<?= __("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"); ?>">
1239 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1240 </a>
1241 </label>
1242 </div>
1243 </div>
1244 <?php
1245 endif;
1246 ?>
1247 </div>
1248 </div>
1249 </div>
1250 </div>
1251 </div>
1252 </div> <!-- Allow custom answer -->
1253 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1254 <div class="if-voting poll-type-block form-group row">
1255 <div class="col-sm-3">
1256 <label for="ays-poll-vote-type">
1257 <?= __('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select the appearance of the poll.", "poll-maker"); ?>">
1258 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1259 </a></label>
1260 </div>
1261 <div class="col-sm-9 answers-col">
1262 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1263 <option value='hand' <?= $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1264 <?= __('Hand', "poll-maker"); ?>
1265 </option>
1266 <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1267 <?= __('Emoji', "poll-maker"); ?>
1268 </option>
1269 </select>
1270 <?php
1271 switch ($poll['view_type']) {
1272 case 'hand':
1273 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1274 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1275 break;
1276
1277 case 'emoji':
1278 $vote_res = 'ays_poll_fas ays_poll_fa-smile';
1279 $rate_res = 'ays_poll_fas ays_poll_fa-smile';
1280 break;
1281
1282 case 'star':
1283 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1284 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1285 break;
1286
1287 default:
1288 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1289 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1290 break;
1291 }
1292 ?>
1293 <i id="vote-res" class="<?php echo $vote_res; ?>"></i>
1294 </div>
1295 </div>
1296 <div class="if-rating poll-type-block form-group row">
1297 <div class="col-sm-3">
1298 <label for="ays-poll-rate-type">
1299 <?= __('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select the appearance and the scale of assessment of the poll.", "poll-maker"); ?>">
1300 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1301 </a></label>
1302 </div>
1303 <div class="col-sm-9 answers-col">
1304 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1305 <option value='star' <?= $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1306 <?= __('Stars', "poll-maker"); ?>
1307 </option>
1308 <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1309 <?= __('Emoji', "poll-maker"); ?>
1310 </option>
1311 </select>
1312 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1313 <option value="<?= count($poll['answers']); ?>" selected>
1314 <?= count($poll['answers']); ?>
1315 </option>
1316 </select>
1317 <i id="rate-res" class="<?php echo $rate_res; ?>"></i>
1318 </div>
1319 </div>
1320 <hr class="if-voting if-rating">
1321 <div class="form-group row">
1322 <div class="col-sm-12 only_pro" style="padding:15px;">
1323 <div class="pro_features pro_features_popup">
1324 <div class="pro-features-popup-conteiner">
1325 <div class="pro-features-popup-title">
1326 <?php echo __("Add Fake Votes", "poll-maker"); ?>
1327 </div>
1328 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1329 <p>
1330 <?php echo __("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"); ?>
1331 </p>
1332 </div>
1333 <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">
1334 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
1335 </div>
1336 </div>
1337 </div>
1338 <div class="pro_features" style="justify-content:flex-end;">
1339 </div>
1340 <div class="form-group row">
1341 <div class="col-1">
1342 <input type="checkbox" name="ays_add_f_votes"
1343 value="on">
1344 </div>
1345 <div class="col-11 unset-padding-left">
1346 <label for="ays_add_f_votes">
1347 <?= __('Add fake votes', "poll-maker"); ?>
1348 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Allow users to add their fake votes to each option.", "poll-maker"); ?>">
1349 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1350 </a>
1351 </label>
1352 </div>
1353 </div>
1354 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1355 <div class="ays-poll-new-upgrade-button-box">
1356 <div>
1357 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1358 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1359 </div>
1360 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
1361 </div>
1362 </a>
1363 <div class="ays-poll-new-watch-video-button-box">
1364 <div>
1365 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
1366 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
1367 </div>
1368 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
1369 </div>
1370 </div>
1371 </div>
1372 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1373 <div class="if-text poll-type-block form-group row">
1374 <div class="col-sm-3">
1375 <label for="">
1376 <?= __('Choose text type', "poll-maker"); ?>
1377 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1378 <?php echo __( 'Choose the type of the question:' , "poll-maker" ); ?>
1379 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'Short text', "poll-maker" ); ?></strong><?php echo __( ' - a question that requires to be answered by writing short text.' , "poll-maker" ); ?></p>
1380 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'Paragraph', "poll-maker" ); ?></strong><?php echo __( ' - a question that requires to be answered by writing text.', "poll-maker" ); ?></p>">
1381 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1382 </a>
1383 </label>
1384 </div>
1385 <div class="col-sm-9 answers-col row">
1386 <div class="d-flex" style="padding: 0 15px;">
1387 <div class="form-check-inline">
1388 <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" : ""; ?>>
1389 <label for="ays_poll_text_type_short"><?php echo __("Short text", "poll-maker");?>
1390 </label>
1391 </div>
1392 <div class="form-check-inline">
1393 <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" : ""; ?>>
1394 <label for="ays_poll_text_type_paragraph"><?php echo __("Paragraph", "poll-maker");?>
1395 </label>
1396 </div>
1397 </div>
1398 </div>
1399 </div>
1400 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1401 <div class="if-text poll-type-block form-group row">
1402 <div class="col-sm-3">
1403 <label for='ays_poll_text_type_placeholder'>
1404 <?= __("Placeholder", "poll-maker"); ?>
1405 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1406 title="<?= __("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1407 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1408 </a>
1409 </label>
1410 </div>
1411 <div class="col-sm-3 ays_divider_left">
1412 <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo $poll_text_type_placeholder?>">
1413 </div>
1414 </div>
1415 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1416 <div class="if-text poll-type-block form-group row">
1417 <div class="col-sm-3">
1418 <label for='ays_poll_text_type_width'>
1419 <?= __("Width", "poll-maker"); ?>
1420 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1421 title="<?= __("Specify the width of the text field.", "poll-maker"); ?>">
1422 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1423 </a>
1424 </label>
1425 </div>
1426 <div class="col-sm-3 ays_divider_left">
1427 <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo $poll_text_type_width; ?>">
1428 </div>
1429 <div class="col-sm-6">
1430 <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">
1431 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
1432 <option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option>
1433 </select>
1434 </div>
1435 </div>
1436 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1437 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1438 <div class="col-sm-3">
1439 <label for="ays_poll_enable_question_length">
1440 <?= __('Maximum length of a text field', "poll-maker"); ?>
1441 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php echo __( 'Restrict the number of characters/words to be inserted in the text field by the user.' , "poll-maker" ); ?>">
1442 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1443 </a>
1444 </label>
1445 </div>
1446 <div class="col-sm-1 ays_divider_left">
1447 <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' : ''; ?>>
1448 </div>
1449 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1450 <div class="form-group row">
1451 <div class="col-sm-4">
1452 <label for="ays_poll_question_limit_text_type">
1453 <?php echo __('Limit by', "poll-maker"); ?>
1454 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred type of limitation.', "poll-maker"); ?>">
1455 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1456 </a>
1457 </label>
1458 </div>
1459 <div class="col-sm-8">
1460 <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%;">
1461 <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo __( 'Characters' , "poll-maker" ); ?></option>
1462 <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo __( 'Words' , "poll-maker" ); ?></option>
1463 </select>
1464 </div>
1465 </div>
1466 <hr>
1467 <div class="form-group row">
1468 <div class="col-sm-4">
1469 <label for="ays_poll_question_text_max_length">
1470 <?php echo __('Length', "poll-maker"); ?>
1471 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Indicate the length of the characters/words.', "poll-maker"); ?>">
1472 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1473 </a>
1474 </label>
1475 </div>
1476 <div class="col-sm-8">
1477 <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%;">
1478 </div>
1479 </div>
1480 <hr>
1481 <div class="form-group row">
1482 <div class="col-sm-4">
1483 <label for="ays_poll_question_enable_text_message">
1484 <?php echo __('Show word/character counter', "poll-maker"); ?>
1485 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('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"); ?>">
1486 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1487 </a>
1488 </label>
1489 </div>
1490 <div class="col-sm-8">
1491 <div class="form-check form-check-inline">
1492 <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" : ""; ?> />
1493 </div>
1494 </div>
1495 </div>
1496 </div>
1497 </div>
1498 </div>
1499 </div>
1500 </div>
1501 <div id="tab2" class="ays-poll-tab-content <?= $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1502 <p class="ays-subtitle">
1503 <?= __('Styling options', "poll-maker"); ?>
1504 </p>
1505 <hr>
1506 <div class="form-group row ays-poll-all-themes-container">
1507 <div class="col-sm-1">
1508 <label for='ays-poll-theme' class="ays_label_flex">
1509 <?= __('Theme', "poll-maker"); ?>
1510 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1511 title="<?= __("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1512 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1513 </a>
1514 </label>
1515 </div>
1516 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1517 <div class="ays_poll_theme_image_div col">
1518 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1519 <p><?= __('Minimal', "poll-maker") ?></p>
1520 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/minimal.png' ?>"
1521 alt="<?= __('Minimal', "poll-maker") ?>">
1522 </label>
1523 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1524 value="3" <?= ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1525 </div>
1526 <div class="ays_poll_theme_image_div col">
1527 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1528 <p><?= __('Classic Light', "poll-maker") ?></p>
1529 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicLight.png' ?>"
1530 alt="<?= __('Classic Light', "poll-maker") ?>">
1531 </label>
1532 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1533 value="1" <?= ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1534 </div>
1535 <div class="ays_poll_theme_image_div col">
1536 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1537 <p><?= __('Classic Dark', "poll-maker") ?></p>
1538 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicDark.png' ?>"
1539 alt="<?= __('Classic Dark', "poll-maker") ?>">
1540 </label>
1541 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1542 value="2" <?= ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1543 </div>
1544 <div class="col">
1545 <div class="form-group row" style="margin: 0px;">
1546 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
1547 <div class="pro_features" style="justify-content:flex-end;">
1548 </div>
1549 <div class="ays_poll_theme_image_div_pro">
1550 <div class="ays_poll_theme_image_div col apm-pro-feature">
1551 <label class="ays-poll-theme-item">
1552 <p>Light Shape</p>
1553 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/LightShape.png' ?>"
1554 alt="Light Shape"
1555 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1556 </label>
1557 </div>
1558 <div class="ays_poll_theme_image_div col apm-pro-feature">
1559 <label class="ays-poll-theme-item">
1560 <p>Dark Shape</p>
1561 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/DarkShape.png' ?>"
1562 alt="Light Shape"
1563 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1564 </label>
1565 </div>
1566 <div class="ays_poll_theme_image_div col apm-pro-feature">
1567 <label class="ays-poll-theme-item">
1568 <p>Coffee Fluid</p>
1569 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/CoffeeFluid.png' ?>"
1570 alt="Coffee Fluid"
1571 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1572 </label>
1573 </div>
1574 <div class="ays_poll_theme_image_div col apm-pro-feature">
1575 <label class="ays-poll-theme-item">
1576 <p><?= __("Aquamarine", "poll-maker") ?></p>
1577 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/Aquamarine.png' ?>"
1578 alt="Aquamarine"
1579 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1580 </label>
1581 </div>
1582 </div>
1583 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1584 <div class="ays-poll-new-upgrade-button-box">
1585 <div>
1586 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1587 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1588 </div>
1589 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
1590 </div>
1591 </a>
1592 </div>
1593 </div>
1594 </div>
1595 </div>
1596 </div>
1597 <hr>
1598 <div class="col ays-poll-styles-page-main-container">
1599 <div class="row">
1600 <div class="col-lg-6 col-sm-12">
1601 <div class="ays-poll-accordion-options-main-container">
1602 <div class="ays-poll-accordion-header">
1603 <?php echo $poll_acordion_svg_html; ?>
1604 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Poll styles', "poll-maker"); ?></p>
1605 </div>
1606 <hr class="ays-poll-bolder-hr"/>
1607 <div class="ays-poll-accordion-body">
1608 <div class="form-group row">
1609 <div class="col-sm-4">
1610 <label for='ays-poll-main-color'>
1611 <?= __('Main Color', "poll-maker"); ?>
1612 <a class="ays_help"
1613 data-toggle="tooltip"
1614 data-placement="top"
1615 title="<?= __("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"); ?>">
1616 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1617 </a>
1618 </label>
1619 </div>
1620 <div class="col-sm-8 ays_divider_left">
1621 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1622 name='ays_poll_main_color'
1623 value="<?= !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1624 </div>
1625 </div>
1626 <hr>
1627 <div class="form-group row">
1628 <div class="col-sm-4">
1629 <label for='ays-poll-text-color'>
1630 <?= __('Text Color', "poll-maker"); ?>
1631 <a class="ays_help"
1632 data-toggle="tooltip"
1633 data-placement="top"
1634 title="<?= __("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1635 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1636 </a>
1637 </label>
1638 </div>
1639 <div class="col-sm-8 ays_divider_left">
1640 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1641 name='ays_poll_text_color'
1642 value="<?= !empty($options['text_color']) ? $options['text_color'] : $default_colors['text_color']; ?>"/>
1643 </div>
1644 </div>
1645 <hr>
1646 <div class="form-group row">
1647 <div class="col-sm-4">
1648 <label for='ays-poll-icon-color'>
1649 <?= __('Icons Color', "poll-maker"); ?>
1650 <a class="ays_help"
1651 data-toggle="tooltip"
1652 data-placement="top"
1653 title="<?= __("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1654 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1655 </a>
1656 </label>
1657 </div>
1658 <div class="col-sm-8 ays_divider_left">
1659 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1660 name='ays_poll_icon_color'
1661 value="<?= !empty($options['icon_color']) ? $options['icon_color'] : $default_colors['icon_color']; ?>"/>
1662 </div>
1663 </div>
1664 <hr>
1665 <div class="form-group row">
1666 <div class="col-sm-4">
1667 <label for='ays-poll-bg-color'>
1668 <?= __('Background Color', "poll-maker"); ?>
1669 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Specify the background color of the poll.", "poll-maker"); ?>">
1670 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1671 </a>
1672 </label>
1673 </div>
1674 <div class="col-sm-8 ays_divider_left">
1675 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1676 name='ays_poll_bg_color'
1677 value="<?= !empty($options['bg_color']) ? $options['bg_color'] : $default_colors['bg_color']; ?>"/>
1678 </div>
1679 </div>
1680 <hr>
1681 <div class="form-group row">
1682 <div class="col-sm-4">
1683 <label for='ays-poll-bg-image'>
1684 <?= __('Background Image', "poll-maker"); ?>
1685 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1686 title="<?= __("Add a background image to the poll. If you add a background image, the background color will not be applied.", "poll-maker"); ?>">
1687 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1688 </a>
1689 </label>
1690 </div>
1691 <div class="col-sm-8 ays_divider_left">
1692 <a href="javascript:void(0)" class="add-bg-image button">
1693 <?= $image_text_bg; ?>
1694 </a>
1695 <div class="form-group row" style="<?= $style_bg; ?>">
1696 <div class="ays-poll-bg-image-container">
1697 <span class="ays-remove-bg-img"></span>
1698 <img src="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"
1699 id="ays-poll-bg-img"/>
1700 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1701 value="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"/>
1702 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1703 value="<?= isset($options['poll_bg_image_position']) ? $options['poll_bg_image_position'] : ""; ?>"/>
1704 </div>
1705 </div>
1706 <div style="<?= $style_bg_options; ?>" id="ays-poll-background-image-options">
1707 <hr>
1708 <div class="form-group row">
1709 <div class="col-sm-12">
1710 <label for="ays_poll_bg_image_position">
1711 <?php echo __( "Background image position", "poll-maker" ); ?>
1712 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('The position of background image of the polls',"poll-maker")?>">
1713 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1714 </a>
1715 </label>
1716 <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;">
1717 <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo __( "Left Top", "poll-maker" ); ?></option>
1718 <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo __( "Left Center", "poll-maker" ); ?></option>
1719 <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo __( "Left Bottom", "poll-maker" ); ?></option>
1720 <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo __( "Center Top", "poll-maker" ); ?></option>
1721 <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo __( "Center Center", "poll-maker" ); ?></option>
1722 <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo __( "Center Bottom", "poll-maker" ); ?></option>
1723 <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo __( "Right Top", "poll-maker" ); ?></option>
1724 <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo __( "Right Center", "poll-maker" ); ?></option>
1725 <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo __( "Right Bottom", "poll-maker" ); ?></option>
1726 </select>
1727 </div>
1728 </div>
1729 <hr>
1730 <div class="form-group row">
1731 <div class="col-sm-8">
1732 <label for="ays_poll_bg_img_in_finish_page">
1733 <?php echo __( "Hide background image on result page", "poll-maker" ); ?>
1734 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('If this option is enabled background image of poll will disappear on the result page.',"poll-maker")?>">
1735 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1736 </a>
1737 </label>
1738 </div>
1739 <div class="col-sm-4">
1740 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1741 id="ays_poll_bg_img_in_finish_page"
1742 name="ays_poll_bg_img_in_finish_page"
1743 <?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/>
1744 <label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label>
1745 </div>
1746 </div>
1747 </div>
1748 </div>
1749 </div>
1750 <hr>
1751 <div class="form-group row">
1752 <div class="col-sm-4">
1753 <label for='ays_poll_enable_box_shadow'><?= __('Box shadow', "poll-maker"); ?>
1754 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1755 title="<?= __("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1756 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1757 </a>
1758 </label>
1759 </div>
1760 <div class="col-sm-8 ays_divider_left">
1761 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1762 id="ays_poll_enable_box_shadow"
1763 name="ays_poll_enable_box_shadow" <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1764 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1765 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1766 style="margin-top: 10px; padding-top: 10px; <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1767 <label for="ays-poll-box-shadow-color">
1768 <?= __('Box shadow color', "poll-maker") ?>
1769 <a class="ays_help" data-toggle="tooltip"
1770 title="--><?= __('The shadow color of Poll container', "poll-maker") ?>">
1771 <i class="ays_fa ays_fa_info_circle"></i>
1772 </a>
1773 </label>
1774 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1775 name='ays_poll_box_shadow_color'
1776 value="<?= (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] : '#000000'; ?>"/>
1777 </div>
1778 <!---->
1779 <hr class="ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1780 <div class="form-group row ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1781 <div class="col-sm-12">
1782 <div class="col-sm-3" style="display: inline-block;">
1783 <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 $poll_box_shadow_x_offset; ?>" />
1784 <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
1785 </div>
1786 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1787 <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 $poll_box_shadow_y_offset; ?>" />
1788 <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
1789 </div>
1790 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1791 <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 $poll_box_shadow_z_offset; ?>" />
1792 <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
1793 </div>
1794 </div>
1795 </div>
1796 <!---->
1797 </div>
1798 </div>
1799 <hr>
1800 <!-- ---------Aro start gradient -->
1801 <div class="form-group row">
1802 <div class="col-sm-4">
1803 <label for="ays-enable-background-gradient">
1804 <?php echo __('Background Gradient', "poll-maker")?>
1805 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Add a color gradient background in the poll. Moreover, you can choose Color 1, Color 2 and the direction of the gradient.', "poll-maker")?>">
1806 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1807 </a>
1808 </label>
1809 </div>
1810 <div class="col-sm-8 ays_divider_left">
1811 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1812 id="ays-enable-background-gradient"
1813 name="ays_enable_background_gradient"
1814 <?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/>
1815 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1816 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1817 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1818 <label for='ays-background-gradient-color-1'>
1819 <?php echo __('Color 1', "poll-maker"); ?>
1820 </label>
1821 <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 $background_gradient_color_1; ?>"/>
1822 </div>
1823 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1824 <label for='ays-background-gradient-color-2'>
1825 <?php echo __('Color 2', "poll-maker"); ?>
1826 </label>
1827 <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 $background_gradient_color_2; ?>"/>
1828 </div>
1829 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1830 <label for="ays_poll_gradient_direction">
1831 <?php echo __('Gradient direction',"poll-maker")?>
1832 </label>
1833 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1834 <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo __( 'Vertical', "poll-maker"); ?></option>
1835 <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo __( 'Horizontal', "poll-maker"); ?></option>
1836 <option <?php echo ($poll_gradient_direction == 'diagonal_left_to_right') ? 'selected' : ''; ?> value="diagonal_left_to_right"><?php echo __( 'Diagonal left to right', "poll-maker"); ?></option>
1837 <option <?php echo ($poll_gradient_direction == 'diagonal_right_to_left') ? 'selected' : ''; ?> value="diagonal_right_to_left"><?php echo __( 'Diagonal right to left', "poll-maker"); ?></option>
1838 </select>
1839 </div>
1840 </div>
1841 </div>
1842 </div>
1843 <hr>
1844 <div class="form-group row ays_toggle_parent">
1845 <div class="col-sm-4">
1846 <label for="ays_poll_image_text_logo">
1847 <?= __('Poll Logo', "poll-maker"); ?>
1848 <a class="ays_help" data-toggle="tooltip"
1849 data-placement="top"
1850 title="<?= __("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1851 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1852 </a>
1853 </label>
1854 </div>
1855 <div class="col-sm-8 ays_logo_container ays_divider_left">
1856 <div class="form-group row">
1857 <div class="col-sm-4">
1858 <a href="javascript:void(0)" class="add-logo-image button"><?= $image_text_logo; ?></a>
1859 </div>
1860 <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?= $style_logo; ?>">
1861 <div class="ays-poll-logo-image-container">
1862 <div class="col-sm-3" style="padding:0;">
1863 <img src="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"
1864 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1865 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1866 value="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1867 </div>
1868 <div class="col-sm-9">
1869 <a href="javascript:void(0)" class="add-logo-remove-image button"><?= __("Remove", "poll-maker"); ?></a>
1870 </div>
1871 </div>
1872 </div>
1873 </div>
1874 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1875 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1876 <div class="col-sm-4 ">
1877 <label for="ays_disable_answer_hover">
1878 <?= __('Logo URL', "poll-maker"); ?>
1879 <a class="ays_help" data-toggle="tooltip"
1880 data-placement="top"
1881 title="<?= __("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1882 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1883 </a>
1884 </label>
1885 </div>
1886 <div class="col-sm-8 ays_divider_left">
1887 <input type="checkbox"
1888 name="ays_poll_logo_enable_image_url"
1889 id="ays_poll_logo_enable_image_url"
1890 value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>>
1891 <label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label>
1892 <hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>">
1893 <div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" >
1894 <input type="text"
1895 name="ays_poll_logo_image_url"
1896 id="ays_poll_logo_image_url"
1897 value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL">
1898 </div>
1899 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
1900 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
1901 <div class="col-sm-6">
1902 <label for="ays_poll_logo_enable_image_url_new_tab">
1903 <?= __('Open in a new tab', "poll-maker"); ?>
1904 <a class="ays_help" data-toggle="tooltip"
1905 data-placement="top"
1906 title="<?= __("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
1907 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1908 </a>
1909 </label>
1910 </div>
1911 <div class="col-sm-6">
1912 <input type="checkbox"
1913 name="ays_poll_logo_enable_image_url_new_tab"
1914 id="ays_poll_logo_enable_image_url_new_tab"
1915 value="on" class="ays_toggle ays_toggle_slide " <?php echo $poll_logo_image_url_check_new_tab; ?>>
1916 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
1917 </div>
1918 </div>
1919 </div>
1920 </div>
1921 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1922 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1923 <div class="col-sm-4">
1924 <label for="ays_poll_logo_title">
1925 <?= __('Logo title', "poll-maker"); ?>
1926 <a class="ays_help" data-toggle="tooltip"
1927 data-placement="top"
1928 title="<?php echo __("Specify the title of the Logo image.", "poll-maker"); ?>">
1929 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1930 </a>
1931 </label>
1932 </div>
1933 <div class="col-sm-8 ays_divider_left">
1934 <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); ?>">
1935 </div>
1936 </div>
1937 </div>
1938 </div>
1939 <!-- Poll logo start -->
1940 <hr>
1941 <div class="form-group row">
1942 <div class="col-sm-4">
1943 <label for='ays-poll-title-bg-color'>
1944 <?= __('Title Background Color', "poll-maker"); ?>
1945 <a class="ays_help"
1946 data-toggle="tooltip"
1947 data-placement="top"
1948 title="<?= __("Specify the background color of the title.", "poll-maker"); ?>">
1949 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1950 </a>
1951 </label>
1952 </div>
1953 <div class="col-sm-8 ays_divider_left">
1954 <input type="text" class="ays-text-input" data-alpha="true"
1955 id='ays-poll-title-bg-color'
1956 name='ays_poll_title_bg_color'
1957 value="<?= !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
1958 </div>
1959 </div>
1960 <hr>
1961 <div class="form-group row">
1962 <div class="col-sm-4">
1963 <label for='ays_poll_title_font_size'>
1964 <?= __('Title font size', "poll-maker"); ?>
1965 <a class="ays_help"
1966 data-toggle="tooltip"
1967 data-placement="top"
1968 title="<?= __("Specify the font size of the title.", "poll-maker"); ?>">
1969 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1970 </a>
1971 </label>
1972 </div>
1973 <div class="col-sm-8 ays_divider_left">
1974 <div>
1975 <div>
1976 <label for='ays_poll_title_font_size'>
1977 <?php echo __('On desktop', "poll-maker"); ?>
1978 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC devices.', "poll-maker")?>">
1979 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1980 </a>
1981 </label>
1982 </div>
1983 <div>
1984 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_title_font_size' name='ays_poll_title_font_size' value="<?= $poll_title_font_size ?>"/>
1985 </div>
1986 </div>
1987 <hr>
1988 <div>
1989 <div>
1990 <label for='ays_poll_title_font_size_mobile'>
1991 <?php echo __('On mobile', "poll-maker"); ?>
1992 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>">
1993 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1994 </a>
1995 </label>
1996 </div>
1997 <div>
1998 <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 $poll_title_font_size_mobile;?>">
1999 </div>
2000 </div>
2001 </div>
2002 </div>
2003 <hr>
2004 <div class="form-group row">
2005 <div class="col-sm-4">
2006 <label for='ays_poll_title_alignment'>
2007 <?= __('Title alignment', "poll-maker"); ?>
2008 <a class="ays_help"
2009 data-toggle="tooltip"
2010 data-placement="top"
2011 title="<?= __("Specify the alignment of the title.", "poll-maker"); ?>">
2012 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2013 </a>
2014 </label>
2015 </div>
2016 <div class="col-sm-8 ays_divider_left">
2017 <div>
2018 <div>
2019 <label for='ays_poll_title_alignment'>
2020 <?php echo __('On desktop', "poll-maker"); ?>
2021 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2022 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2023 </a>
2024 </label>
2025 </div>
2026 <div>
2027 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2028 <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2029 <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2030 <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option>
2031 </select>
2032 </div>
2033 </div>
2034 <hr>
2035 <div>
2036 <div>
2037 <label for='ays_poll_title_alignment_mobile'>
2038 <?php echo __('On mobile', "poll-maker"); ?>
2039 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2040 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2041 </a>
2042 </label>
2043 </div>
2044 <div>
2045 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2046 <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2047 <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2048 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option>
2049 </select>
2050 </div>
2051 </div>
2052 </div>
2053 </div>
2054 <hr>
2055 <!-- title text shadow start -->
2056 <div class="form-group row">
2057 <div class="col-sm-4">
2058 <label for="ays_poll_enable_title_text_shadow">
2059 <?php echo __('Title text shadow', "poll-maker")?>
2060 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Add text shadow for the poll title.', "poll-maker")?>">
2061 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2062 </a>
2063 </label>
2064 </div>
2065 <div class="col-sm-8 ays_divider_left">
2066 <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' : ''; ?>/>
2067 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2068 <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;' ?>">
2069 <label for='ays_poll_title_text_shadow_color'>
2070 <?php echo __('Color', "poll-maker"); ?>
2071 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify text shadow color.', "poll-maker")?>">
2072 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2073 </a>
2074 </label>
2075 <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 $poll_title_text_shadow; ?>"/>
2076 </div>
2077 <!---->
2078 <hr class="ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2079 <div class="form-group row ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2080 <div class="col-sm-12">
2081 <div class="col-sm-3" style="display: inline-block;">
2082 <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; ?>" />
2083 <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
2084 </div>
2085 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2086 <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; ?>" />
2087 <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
2088 </div>
2089 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2090 <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; ?>" />
2091 <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
2092 </div>
2093 </div>
2094 </div>
2095 <!---->
2096 </div>
2097 </div>
2098 <!-- title text shadow end -->
2099 <div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>">
2100 <hr>
2101 <div class="form-group row">
2102 <div class="col-sm-4">
2103 <label for='ays-poll-icon-size'>
2104 <?= __('Icon size (px)', "poll-maker"); ?>
2105 <a class="ays_help"
2106 data-toggle="tooltip"
2107 data-placement="top"
2108 title="<?= __("Specify the size of the icons in rating and voting types of the poll in pixels. It should be 10 and more.", "poll-maker"); ?>">
2109 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2110 </a>
2111 </label>
2112 </div>
2113 <div class="col-sm-8 ays_divider_left">
2114 <input type="number" class="ays-text-input ays-text-input-short"
2115 id='ays-poll-icon-size' name='ays_poll_icon_size'
2116 value="<?= (isset($options['icon_size'])) ? $options['icon_size'] : '24'; ?>"/>
2117 </div>
2118 </div>
2119 </div>
2120 <hr>
2121 <div class="form-group row">
2122 <div class="col-sm-4">
2123 <label for='ays-poll-width'>
2124 <?= __('Width (px)', "poll-maker"); ?>
2125 <a class="ays_help"
2126 data-toggle="tooltip"
2127 data-placement="top"
2128 title="<?= __("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2129 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2130 </a>
2131 </label>
2132 </div>
2133 <div class="col-sm-8 ays_divider_left">
2134 <div>
2135 <div>
2136 <label for='ays-poll-width'>
2137 <?php echo __('On desktop', "poll-maker"); ?>
2138 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for PC devices.', "poll-maker")?>">
2139 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2140 </a>
2141 </label>
2142 </div>
2143 <div>
2144 <input type="number" step="1" min="0" class="ays-text-input ays-text-input-short" id='ays-poll-width' name='ays_poll_width' value="<?= $options['width'] ?>"/>
2145 </div>
2146 </div>
2147 <hr>
2148 <div>
2149 <div>
2150 <label for='ays_poll_width_for_mobile'>
2151 <?php echo __('On mobile', "poll-maker"); ?>
2152 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for mobile devices.', "poll-maker")?>">
2153 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2154 </a>
2155 </label>
2156 </div>
2157 <div>
2158 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_width_for_mobile' name='ays_poll_width_for_mobile' value="<?= $width_for_mobile ?>"/>
2159 <p class="ays_poll_small_hint_text_for_message_variables">
2160 <span><?php echo __( "For 100% leave blank" , "poll-maker" ); ?></span>
2161 </p>
2162 </div>
2163 </div>
2164 </div>
2165 </div>
2166 <hr/>
2167 <div class="form-group row">
2168 <div class="col-sm-4">
2169 <label for='ays_poll_min_height'>
2170 <?php echo __('Min-height', "poll-maker"); ?>
2171 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Set the poll minimum height by entering a numeric value.', "poll-maker")?>">
2172 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2173 </a>
2174 </label>
2175 </div>
2176 <div class="col-sm-8 ays_divider_left">
2177 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_min_height' name='ays_poll_min_height' value="<?php echo $poll_min_height; ?>"/>
2178 </div>
2179 </div>
2180 <hr>
2181 <div class="form-group row">
2182 <div class="col-sm-4">
2183 <label for='ays_poll_mobile_max_width'>
2184 <?php echo __('Poll max-width for mobile', "poll-maker"); ?>
2185 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo __('Poll container max-width for mobile in percentage. This option will work for the screens with less than 640 pixels width.', "poll-maker")?>">
2186 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2187 </a>
2188 </label>
2189 </div>
2190 <div class="col-sm-8 ays_divider_left">
2191 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2192 name='ays_poll_mobile_max_width' style="display: inline-block;"
2193 value="<?php echo $poll_mobile_max_width; ?>"/> %
2194 <span class="ays_poll_small_hint_text"><?php echo __("For 100% leave blank", "poll-maker");?></span>
2195 </div>
2196 </div> <!-- Poll max-width for mobile -->
2197 <hr>
2198 </div>
2199 </div>
2200 <div class="ays-poll-accordion-options-main-container">
2201 <div class="ays-poll-accordion-header">
2202 <?php echo $poll_acordion_svg_html; ?>
2203 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Question styles', "poll-maker"); ?></p>
2204 </div>
2205 <hr class="ays-poll-bolder-hr"/>
2206 <div class="ays-poll-accordion-body">
2207 <div class="form-group row">
2208 <div class="col-sm-4">
2209 <label for='ays_questions_font_size'>
2210 <?php echo __('Question font size', "poll-maker"); ?> (px)
2211 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the font size of the questions( only for <p> tag ). It accepts only numerical values.', "poll-maker")?>">
2212 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2213 </a>
2214 </label>
2215 </div>
2216 <div class="col-sm-8 ays_divider_left">
2217 <div>
2218 <div>
2219 <label for='ays_questions_font_size'>
2220 <?php echo __('On desktop', "poll-maker"); ?>
2221 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC devices.', "poll-maker")?>">
2222 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2223 </a>
2224 </label>
2225 </div>
2226 <div>
2227 <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;?>">
2228 </div>
2229 </div>
2230 <hr>
2231 <div>
2232 <div>
2233 <label for='ays_poll_answers_font_size_mobile'>
2234 <?php echo __('On mobile', "poll-maker"); ?>
2235 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>">
2236 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2237 </a>
2238 </label>
2239 </div>
2240 <div>
2241 <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;?>">
2242 </div>
2243 </div>
2244 </div>
2245 </div><!-- Question font size -->
2246 <hr>
2247 <div class="form-group row">
2248 <div class="col-sm-4">
2249 <label for='ays_poll_question_image_height'><?= __('Question image height', "poll-maker"); ?>
2250 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2251 title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2252 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2253 </a>
2254 </label>
2255 </div>
2256 <div class="col-sm-8 ays_divider_left">
2257 <input type="number"
2258 class="ays-text-input ays-text-input-short"
2259 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2260 value="<?php echo $poll_question_image_height; ?>"/>
2261 </div>
2262 </div><!-- Question image height -->
2263 <hr>
2264 <div class="form-group row">
2265 <div class="col-sm-4">
2266 <label for='ays_poll_question_image_object_fit'><?= __('Question object fit', "poll-maker"); ?>
2267 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2268 title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2269 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2270 </a>
2271 </label>
2272 </div>
2273 <div class="col-sm-8 ays_divider_left">
2274 <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">
2275 <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo __("Cover", "poll-maker"); ?></option>
2276 <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo __("Fill", "poll-maker"); ?></option>
2277 <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo __("Contain", "poll-maker"); ?></option>
2278 <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo __("Scale-down", "poll-maker"); ?></option>
2279 <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo __("None", "poll-maker"); ?></option>
2280 </select>
2281 </div>
2282 </div><!-- Question image object fit -->
2283 <hr>
2284 </div>
2285 </div>
2286 <div class="ays-poll-accordion-options-main-container">
2287 <div class="ays-poll-accordion-header">
2288 <?php echo $poll_acordion_svg_html; ?>
2289 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Answer Styles', "poll-maker"); ?></p>
2290 </div>
2291 <hr class="ays-poll-bolder-hr"/>
2292 <div class="ays-poll-accordion-body">
2293 <div class="form-group row">
2294 <div class="col-sm-4">
2295 <label for='ays-poll-box-shadow-color'><?= __('Enable answer styles', "poll-maker"); ?>
2296 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2297 title="<?= __("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2298 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2299 </a>
2300 </label>
2301 </div>
2302 <div class="col-sm-8 ays_divider_left">
2303 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2304 id="ays_poll_enable_answer_style"
2305 name="ays_poll_enable_answer_style" <?= ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2306 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2307 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2308 style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2309 <label for="ays-poll-box-shadow-color">
2310 <?= __('Answers Background Color', "poll-maker") ?>
2311 <a class="ays_help" data-toggle="tooltip"
2312 title="<?= __("Specify the background color of the answers' boxes.", "poll-maker") ?>">
2313 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2314 </a>
2315 </label>
2316 <input type="text" class="ays-text-input" data-alpha="true"
2317 id='ays-poll-answer-bg-color'
2318 name='ays_poll_answer_bg_color'
2319 value="<?= isset($options['answer_bg_color']) && !empty($options['answer_bg_color']) ? $options['answer_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
2320 </div>
2321 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2322 <div>
2323 <label for='ays-poll-border-side'>
2324 <?= __('Border side', "poll-maker"); ?>
2325 <a class="ays_help"
2326 data-toggle="tooltip"
2327 data-placement="top"
2328 title="<?= __("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2329 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2330 </a>
2331 </label>
2332 </div>
2333 <div id="ays-poll-border-side-box">
2334 <select name="ays_poll_border_side" id="ays-poll-border-side"
2335 class="ays-select ays-select-short ays_poll_aysDropdown">
2336 <option value="all_sides" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2337 <?= __("All sides", "poll-maker"); ?>
2338 </option>
2339 <option value="none" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2340 <?= __("None", "poll-maker"); ?>
2341 </option>
2342 <option value="top" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2343 <?= __("Top", "poll-maker"); ?>
2344 </option>
2345 <option value="bottom" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2346 <?= __("Bottom", "poll-maker"); ?>
2347 </option>
2348 <option value="left" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2349 <?= __("Left", "poll-maker"); ?>
2350 </option>
2351 <option value="right" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2352 <?= __("Right", "poll-maker"); ?>
2353 </option>
2354 </select>
2355 </div>
2356 </div>
2357 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2358 <div>
2359 <label for='ays_answer_font_size'>
2360 <?= __('Answer font size', "poll-maker"); ?>
2361 <a class="ays_help"
2362 data-toggle="tooltip"
2363 data-placement="top"
2364 title="<?= __("Choose your preferred size for the font of the answers. Size should be not less than 5 and not higher than 90", "poll-maker"); ?>">
2365 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2366 </a>
2367 </label>
2368 </div>
2369 <div class="ays_answer_font_size_box">
2370 <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;?>">
2371 </div>
2372 </div>
2373 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2374 <div>
2375 <label for='ays_poll_answer_font_size_mobile'>
2376 <?= __('Answer font size for mobile', "poll-maker"); ?>
2377 <a class="ays_help"
2378 data-toggle="tooltip"
2379 data-placement="top"
2380 title="<?= __("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"); ?>">
2381 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2382 </a>
2383 </label>
2384 </div>
2385 <div class="ays_answer_font_size_box">
2386 <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;?>">
2387 </div>
2388 </div>
2389 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2390 <div>
2391 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2392 <?php echo __('Answer image height (px)', "poll-maker")?>
2393 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2394 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2395 </a>
2396 </label>
2397 </div>
2398 <div>
2399 <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; ?>" />
2400 </div>
2401 </div> <!-- Answers image height -->
2402 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2403 <div>
2404 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2405 <?php echo __('Answer image height for mobile (px)', "poll-maker")?>
2406 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images on the mobile devices.', "poll-maker")?>">
2407 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2408 </a>
2409 </label>
2410 </div>
2411 <div>
2412 <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; ?>" />
2413 </div>
2414 </div> <!-- Answers image height for mobile-->
2415 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2416 <div>
2417 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2418 <?php echo __('Answer image border radius (px)', "poll-maker")?>
2419 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Border radius of answers images.', "poll-maker")?>">
2420 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2421 </a>
2422 </label>
2423 </div>
2424 <div>
2425 <input type="number" class="ays-text-input ays-text-input-short ays_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; ?>" />
2426 </div>
2427 </div> <!-- Answers image border radius -->
2428 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2429 <div >
2430 <label for="ays_poll_background_size">
2431 <?php echo __('Answer image object fit', "poll-maker"); ?>
2432 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify how an answers’ images should be resized to fit its container.', "poll-maker"); ?>">
2433 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2434 </a>
2435 </label>
2436 </div>
2437 <div id="ays_poll_image_background_size_box">
2438 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2439 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2440 <?php echo __('Cover', "poll-maker")?>
2441 </option>
2442 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2443 <?php echo __('Fill', "poll-maker")?>
2444 </option>
2445 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2446 <?php echo __('Contain', "poll-maker")?>
2447 </option>
2448 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2449 <?php echo __('Scale-down', "poll-maker")?>
2450 </option>
2451 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2452 <?php echo __('None', "poll-maker")?>
2453 </option>
2454 </select>
2455 </div>
2456 </div> <!-- Answer image object fit -->
2457 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2458 <div>
2459 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2460 <?php echo __('Answer padding (px)', "poll-maker")?>
2461 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Padding of answers.', "poll-maker")?>">
2462 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2463 </a>
2464 </label>
2465 </div>
2466 <div>
2467 <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 $poll_answer_padding; ?>"/>
2468 </div>
2469 </div> <!-- Answers padding -->
2470 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2471 <div >
2472 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2473 <?php echo __('Answer gap (px)', "poll-maker")?>
2474 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Gap between answers.', "poll-maker")?>">
2475 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2476 </a>
2477 </label>
2478 </div>
2479 <div>
2480 <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; ?>" />
2481 </div>
2482 </div> <!-- Answers gap -->
2483 <div class="ays_toggle_target ays_divider_top ays_answer_style" style="margin-top: 10px; padding-top: 10px; <?= ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2484 <div>
2485 <label for="ays_poll_answer_border_radius">
2486 <?php echo __('Answer border radius', "poll-maker")?>
2487 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the radius of the answers container.', "poll-maker")?>">
2488 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2489 </a>
2490 </label>
2491 </div>
2492 <div>
2493 <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 $poll_answer_border_radius; ?>"/>
2494 </div>
2495 </div> <!-- Answers border radius -->
2496 </div>
2497 </div>
2498 <hr>
2499 <div class="form-group row">
2500 <div class="col-sm-4">
2501 <label for="ays_poll_show_answers_icon">
2502 <?php echo __('Answer icon', "poll-maker"); ?>
2503 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2504 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2505 </a>
2506 </label>
2507 </div>
2508 <div class="col-sm-8 ays_divider_left">
2509 <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' : ''; ?> />
2510 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2511 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2512 <div class="form-check form-check-inline">
2513 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2514 <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_radio" name="ays_poll_answer_icon" value="radio" <?= ($poll_answer_icon == 'radio') ? 'checked' : ''; ?> />
2515 </label>
2516 </div>
2517 <div class="form-check form-check-inline">
2518 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2519 <input type="radio" class="ays_poll_answ_icon" id="poll_answer_icon_checkbox" name="ays_poll_answer_icon" value="checkbox" <?= ($poll_answer_icon == 'checkbox') ? 'checked' : ''; ?> />
2520 </label>
2521 </div>
2522 </div>
2523 </div>
2524 </div> <!-- Answer icon -->
2525 <hr>
2526 <div class="form-group row">
2527 <div class="col-sm-4">
2528 <label for="ays_answers_view" class="ays_enable_answer_style">
2529 <?php echo __('Answer view', "poll-maker")?>
2530 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Select the view of the answers: List or Grid. Select the column number if you have chosen Grid view.', "poll-maker")?>">
2531 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2532 </a>
2533 </label>
2534 </div>
2535 <div class="col-sm-8">
2536 <div class="form-group row">
2537 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2538 <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">
2539 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2540 <?php echo __('List', "poll-maker")?>
2541 </option>
2542 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2543 <?php echo __('Grid', "poll-maker")?>
2544 </option>
2545 </select>
2546 </div>
2547 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
2548 <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;">
2549 <option value='2' selected>
2550 2
2551 </option>
2552 <option value='3' class="ays-poll-grid-type-columns">
2553 3
2554 </option>
2555 <option value='4' class="ays-poll-grid-type-columns">
2556 4
2557 </option>
2558 </select>
2559 </div>
2560 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2561 <div class="col-sm-8" style="display:flex;align-items:center;">
2562 <label for="ays_answers_grid_column_mobile">
2563 <?php echo __('Mobile Single Column View',"poll-maker")?>
2564 </label>
2565 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable this toggle to display poll answers in a single column on mobile devices for the Grid View.',"poll-maker")?>">
2566 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2567 </a>
2568 </div>
2569 <div class="col-sm-1 ays_divider_left">
2570 <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'/>
2571 <label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label>
2572 </div>
2573 </div>
2574 </div>
2575 </div>
2576 </div> <!-- Answers view -->
2577 <hr>
2578 <div class="form-group row">
2579 <div class="col-sm-4">
2580 <label for="ays_poll_answers_box_shadow_enable">
2581 <?php echo __('Answer box shadow', "poll-maker")?>
2582 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Allow answer container box shadow', "poll-maker")?>">
2583 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2584 </a>
2585 </label>
2586 </div>
2587 <div class="col-sm-8 ays_divider_left">
2588 <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" : ""; ?>>
2589 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2590 <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;"; ?>">
2591 <label for="ays_poll_answers_box_shadow_color">
2592 <?php echo __('Answer shadow color', "poll-maker")?>
2593 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('The shadow color of answers container', "poll-maker")?>">
2594 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2595 </a>
2596 </label>
2597 <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">
2598 </div>
2599 <!---->
2600 <hr class="ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none'; ?>">
2601 <div class="form-group row ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none' ?>">
2602 <div class="col-sm-12">
2603 <div class="col-sm-3" style="display: inline-block;">
2604 <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; ?>" />
2605 <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
2606 </div>
2607 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2608 <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; ?>" />
2609 <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
2610 </div>
2611 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2612 <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; ?>" />
2613 <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
2614 </div>
2615 </div>
2616 </div>
2617 <!---->
2618 </div>
2619 </div> <!-- Answers box shadow -->
2620 <hr>
2621 <div class="form-group row">
2622 <div class="col-sm-4">
2623 <label for="ays_disable_answer_hover">
2624 <?= __('Disable answers hover', "poll-maker"); ?>
2625 <a class="ays_help" data-toggle="tooltip"
2626 data-placement="top"
2627 title="<?= __("Disable the hover effect for answers.", "poll-maker"); ?>">
2628 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2629 </a>
2630 </label>
2631 </div>
2632 <div class="col-sm-8 ays_divider_left">
2633 <input type="checkbox"
2634 name="ays_disable_answer_hover"
2635 id="ays_disable_answer_hover"
2636 value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?>
2637 >
2638 </div>
2639 </div>
2640 <hr>
2641 <!--PRO ANSWER STYLEs-->
2642 <div class="form-group row">
2643 <div class="col-sm-12 only_pro">
2644 <div class="pro_features" style="justify-content:flex-end;">
2645 </div>
2646 <div class="form-group row" style="padding: 15px 15px 0">
2647 <div class="" style="width: 100%;">
2648 <div class="form-group row">
2649 <div class="col-sm-5">
2650 <label for="ays_answers_border">
2651 <?php echo __('Answer border', "poll-maker")?>
2652 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Allow answer border', "poll-maker")?>">
2653 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2654 </a>
2655 </label>
2656 </div>
2657 <div class="col-sm-7 ays_divider_left">
2658 <input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on"
2659 checked/>
2660 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2661 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2662 <label for="ays_answers_border_width">
2663 <?php echo __('Border width', "poll-maker")?> (px)
2664 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The width of answers border', "poll-maker")?>">
2665 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2666 </a>
2667 </label>
2668 <input type="number" class="ays-text-input" id='ays_answers_border_width' name='ays_answers_border_width'
2669 value="" min="0"/>
2670 </div>
2671 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2672 <label for="ays_answers_border_style">
2673 <?php echo __('Border style', "poll-maker")?>
2674 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The style of answers border', "poll-maker")?>">
2675 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2676 </a>
2677 </label>
2678 <select id="ays_answers_border_style" name="ays_answers_border_style" class="ays-text-input ays-select-short">
2679 <option>Solid</option>
2680 </select>
2681 </div>
2682 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2683 <label for="ays_answers_border_color">
2684 <?php echo __('Border color', "poll-maker")?>
2685 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The color of the answers border', "poll-maker")?>">
2686 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2687 </a>
2688 </label>
2689 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
2690 </div>
2691 </div>
2692 </div> <!-- Answers border -->
2693 <hr/>
2694 <div class="form-group row ays_grid_show">
2695 <div class="col-sm-5">
2696 <label for="ays_poll_show_answers_caption">
2697 <?php echo __('Show answers caption', "poll-maker")?>
2698 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Show answers caption near the answer image. This option will be work only when answer has image.', "poll-maker"); ?>">
2699 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2700 </a>
2701 </label>
2702 </div>
2703 <div class="col-sm-7 ays_divider_left">
2704 <input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/>
2705 <label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label>
2706 </div>
2707 </div> <!-- Show answers caption -->
2708 <hr/>
2709 <div class="form-group row">
2710 <div class="col-sm-5">
2711 <label for="ays_ans_img_caption_style">
2712 <?php echo __('Answers image caption style', "poll-maker")?>
2713 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2714 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2715 </a>
2716 </label>
2717 </div>
2718 <div class="col-sm-7 ays_divider_left">
2719 <select class="ays-text-input ays-text-input-short">
2720 <option><?php echo __('Outside', "poll-maker"); ?></option>
2721 </select>
2722 </div>
2723 </div> <!-- Answers image caption style -->
2724 <hr/>
2725 <div class="form-group row">
2726 <div class="col-sm-5">
2727 <label for="ays_ans_img_caption_position">
2728 <?php echo __('Answers image caption position', "poll-maker")?>
2729 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2730 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2731 </a>
2732 </label>
2733 </div>
2734 <div class="col-sm-7 ays_divider_left">
2735 <select class="ays-text-input ays-text-input-short">
2736 <option value="top"><?php echo __('Top', "poll-maker"); ?></option>
2737 </select>
2738 </div>
2739 </div> <!-- Answers image caption position -->
2740 <hr>
2741 </div>
2742 </div>
2743 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2744 <div class="ays-poll-new-upgrade-button-box">
2745 <div>
2746 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2747 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2748 </div>
2749 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
2750 </div>
2751 </a>
2752 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2753 <div class="ays-poll-center-big-main-button-box">
2754 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2755 <div class="ays-poll-center-new-big-upgrade-button">
2756 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
2757 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2758 <?php echo __("Upgrade", "poll-maker"); ?>
2759 </div>
2760 </a>
2761 </div>
2762 </div>
2763 </div>
2764 </div>
2765 <hr/>
2766 </div>
2767 </div>
2768 <div class="ays-poll-accordion-options-main-container">
2769 <div class="ays-poll-accordion-header">
2770 <?php echo $poll_acordion_svg_html; ?>
2771 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Border styles', "poll-maker"); ?></p>
2772 </div>
2773 <hr class="ays-poll-bolder-hr"/>
2774 <div class="ays-poll-accordion-body">
2775 <div class="form-group row">
2776 <div class="col-sm-4">
2777 <label for='ays-poll-border-style'>
2778 <?= __('Border style', "poll-maker"); ?>
2779 <a class="ays_help"
2780 data-toggle="tooltip"
2781 data-placement="top"
2782 title="<?= __("Choose your preferred style of the border.", "poll-maker"); ?>">
2783 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2784 </a>
2785 </label>
2786 </div>
2787 <div class="col-sm-8 ays_divider_left">
2788 <select name="ays_poll_border_style" id="ays-poll-border-style"
2789 class="ays-select ays-select-short ays_poll_aysDropdown">
2790 <option value="solid" <?= $options['border_style'] == "solid" ? 'selected' : ''; ?>>
2791 <?= __("Solid", "poll-maker"); ?>
2792 </option>
2793 <option value="dashed" <?= $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
2794 <?= __("Dashed", "poll-maker"); ?>
2795 </option>
2796 <option value="dotted" <?= $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
2797 <?= __("Dotted", "poll-maker"); ?>
2798 </option>
2799 <option value="double" <?= $options['border_style'] == "double" ? 'selected' : ''; ?>>
2800 <?= __("Double", "poll-maker"); ?>
2801 </option>
2802 <option value="groove" <?= $options['border_style'] == "groove" ? 'selected' : ''; ?>>
2803 <?= __("Groove", "poll-maker"); ?>
2804 </option>
2805 <option value="ridge" <?= $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
2806 <?= __("Ridge", "poll-maker"); ?>
2807 </option>
2808 <option value="inset" <?= $options['border_style'] == "inset" ? 'selected' : ''; ?>>
2809 <?= __("Inset", "poll-maker"); ?>
2810 </option>
2811 <option value="outset" <?= $options['border_style'] == "outset" ? 'selected' : ''; ?>>
2812 <?= __("Outset", "poll-maker"); ?>
2813 </option>
2814 <option value="none" <?= $options['border_style'] == "none" ? 'selected' : ''; ?>>
2815 <?= __("None", "poll-maker"); ?>
2816 </option>
2817 </select>
2818 </div>
2819 </div>
2820 <hr>
2821 <div class="form-group row">
2822 <div class="col-sm-4">
2823 <label for='ays-poll-border-radius'><?= __('Border radius', "poll-maker"); ?>
2824 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2825 title="<?= __("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
2826 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2827 </a>
2828 </label>
2829 </div>
2830 <div class="col-sm-8 ays_divider_left">
2831 <input type="number" min="0"
2832 class="ays-text-input ays-text-input-short"
2833 id='ays-poll-border-radius' name='ays_poll_border_radius'
2834 value="<?= (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
2835 </div>
2836 </div>
2837 <hr>
2838 <div class="form-group row">
2839 <div class="col-sm-4">
2840 <label for='ays-poll-border-width'><?= __('Border width', "poll-maker"); ?>
2841 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2842 title="<?= __("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
2843 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2844 </a>
2845 </label>
2846 </div>
2847 <div class="col-sm-8 ays_divider_left">
2848 <input type="number" min="0"
2849 class="ays-text-input ays-text-input-short"
2850 id='ays-poll-border-width' name='ays_poll_border_width'
2851 value="<?= isset($options['border_width']) && $options['border_width'] != '' ? $options['border_width'] : 2; ?>"/>
2852 </div>
2853 </div>
2854 <hr>
2855 <div class="form-group row">
2856 <div class="col-sm-4">
2857 <label for='ays-poll-border-color'><?= __('Border color', "poll-maker"); ?>
2858 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2859 title="<?= __("Specify the color of the border.", "poll-maker"); ?>">
2860 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2861 </a>
2862 </label>
2863 </div>
2864 <div class="col-sm-8 ays_divider_left">
2865 <input type="text"
2866 class="ays-text-input"
2867 data-alpha="true"
2868 id='ays-poll-border-color'
2869 name='ays_poll_border_color'
2870 value="<?= $default_border ?>"/>
2871 </div>
2872 </div>
2873 <hr>
2874 <!-- Buttons Styles Start -->
2875 </div>
2876 </div>
2877 <div class="ays-poll-accordion-options-main-container">
2878 <div class="ays-poll-accordion-header">
2879 <?php echo $poll_acordion_svg_html; ?>
2880 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Button Styles', "poll-maker"); ?></p>
2881 </div>
2882 <hr class="ays-poll-bolder-hr"/>
2883 <div class="ays-poll-accordion-body">
2884 <div class="form-group row">
2885 <div class="col-sm-4">
2886 <label for="ays_poll_buttons_size">
2887 <?php echo __('Buttons Size', "poll-maker"); ?>
2888 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
2889 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2890 </a>
2891 </label>
2892 </div>
2893 <div class="col-sm-8 ays_divider_left">
2894 <select 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">
2895 <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo __('Small', "poll-maker"); ?></option>
2896 <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo __('Medium', "poll-maker"); ?></option>
2897 <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo __('Large', "poll-maker"); ?></option>
2898 </select>
2899 </div>
2900 </div> <!-- Buttons Size -->
2901 <hr>
2902 <div class="form-group row">
2903 <div class="col-sm-4">
2904 <label for='ays-poll-button-text-color'>
2905 <?= __('Buttons Text Color', "poll-maker"); ?>
2906 <a class="ays_help"
2907 data-toggle="tooltip"
2908 data-placement="top"
2909 title="<?= __("Specify the color of the text written inside the poll button.", "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-8 ays_divider_left">
2915 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
2916 name='ays_poll_button_text_color'
2917 value="<?php echo $poll_button_text_color; ?>"/>
2918 </div>
2919 </div><!-- Buttons text color -->
2920 <hr>
2921 <div class="form-group row">
2922 <div class="col-sm-4">
2923 <label for='ays-poll-button-bg-color'>
2924 <?= __('Buttons Background Color', "poll-maker"); ?>
2925 <a class="ays_help"
2926 data-toggle="tooltip"
2927 data-placement="top"
2928 title="<?= __("Specify the background color of the poll button.", "poll-maker"); ?>">
2929 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2930 </a>
2931 </label>
2932 </div>
2933 <div class="col-sm-8 ays_divider_left">
2934 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
2935 name='ays_poll_button_bg_color'
2936 value="<?php echo $poll_button_bg_color; ?>"/>
2937 </div>
2938 </div><!-- Buttons background color -->
2939 <hr>
2940 <div class="form-group row">
2941 <div class="col-sm-4">
2942 <label for='ays_poll_buttons_font_size'>
2943 <?php echo __('Buttons font size', "poll-maker"); ?> (px)
2944 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the size of the button(s) inside the poll in pixels.', "poll-maker"); ?>">
2945 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2946 </a>
2947 </label>
2948 </div>
2949 <div class="col-sm-8 ays_divider_left">
2950 <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; ?>"/>
2951 </div>
2952 </div> <!-- Buttons font size -->
2953 <hr>
2954 <div class="form-group row">
2955 <div class="col-sm-4">
2956 <label for='ays_poll_buttons_mobile_font_size'>
2957 <?php echo __('Buttons mobile font size', "poll-maker"); ?> (px)
2958 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the size of the button(s) inside the poll in pixels for mobile devices.', "poll-maker"); ?>">
2959 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2960 </a>
2961 </label>
2962 </div>
2963 <div class="col-sm-8 ays_divider_left">
2964 <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; ?>"/>
2965 </div>
2966 </div> <!-- Buttons font size -->
2967 <hr>
2968 <div class="form-group row">
2969 <div class="col-sm-4">
2970 <label for="ays_poll_buttons_left_right_padding">
2971 <?php echo __('Buttons padding (px)', "poll-maker"); ?>
2972 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the distance between the text and the border of the button in pixels․', "poll-maker"); ?>">
2973 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2974 </a>
2975 </label>
2976 </div>
2977 <div class="col-sm-8 ays_divider_left">
2978 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
2979 <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;" />
2980 <span class="ays_poll_small_hint_text"><?php echo __('Left / Right', "poll-maker"); ?></span>
2981 </div>
2982 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
2983 <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;" />
2984 <span class="ays_poll_small_hint_text"><?php echo __('Top / Bottom', "poll-maker"); ?></span>
2985 </div>
2986 </div>
2987 </div> <!-- Buttons padding -->
2988 <hr>
2989 <div class="form-group row">
2990 <div class="col-sm-4">
2991 <label for="ays_poll_buttons_border_radius">
2992 <?php echo __('Buttons border radius', "poll-maker"); ?> (px)
2993 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the radius of the corners of the button. Allows adding rounded corners to the button.', "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 <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; ?>"/>
3000 </div>
3001 </div>
3002 <hr>
3003 <div class="form-group row">
3004 <div class="col-sm-4">
3005 <label for='ays_poll_buttons_width'>
3006 <?php echo __('Buttons width', "poll-maker"); ?> (px)
3007 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Set the button width in pixels. For an initial width, leave the field blank.', "poll-maker"); ?>">
3008 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3009 </a>
3010 </label>
3011 </div>
3012 <div class="col-sm-8 ays_divider_left">
3013 <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; ?>"/>
3014 <span style="display:block;" class="ays_poll_small_hint_text"><?php echo __('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3015 </div><!-- Buttons width -->
3016 </div> <!-- Buttons Styles End -->
3017 <hr/>
3018 <div class="form-group row">
3019 <div class="col-sm-4">
3020 <label for="ays_poll_custom_class">
3021 <?php echo __('Custom class for poll container', "poll-maker")?>
3022 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Use your custom HTML class for adding your custom styles to the poll container.', "poll-maker")?>">
3023 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3024 </a>
3025 </label>
3026 </div>
3027 <div class="col-sm-8 ays_divider_left">
3028 <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; ?>">
3029 </div>
3030 </div>
3031 </div>
3032 </div>
3033 </div>
3034 <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3035 <!-- <style id='apm-custom-css'>
3036 <?=$poll['custom_css']?>
3037 </style> -->
3038 <?php
3039
3040 $content = "
3041 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
3042 <div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''>
3043 <div class='apm-title-box'>
3044 <h5>{$poll['title']}</h5>
3045 </div>";
3046
3047 $content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div>
3048 <div class='apm-img-box'>";
3049 $content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : "";
3050 $checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
3051 $content .= "</div>
3052 <div class='apm-answers ays_poll_list_view_container'>";
3053 $minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ;
3054 $minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ;
3055 if ($poll_answer_icon_check && $poll['theme_id'] != 3) {
3056 switch ($poll_answer_icon) {
3057 case 'radio':
3058 $answer_icon_class = 'ays_poll_answer_icon_radio';
3059 break;
3060 case 'checkbox':
3061 $answer_icon_class = 'ays_poll_answer_icon_checkbox';
3062 break;
3063 default:
3064 $answer_icon_class = '';
3065 break;
3066 }
3067 }else{
3068 $answer_icon_class = '';
3069 }
3070 switch ( $poll['type'] ) {
3071 case 'choosing':
3072 if(empty($poll['answers'])){
3073 for ($i = 0 ; $i < $answer_default_count ; $i++){
3074 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i.">
3075 <input type='radio' name='answer' id='radio-".$i."-' value='".$i."'>
3076 <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>
3077
3078 </div>";
3079 }
3080 }
3081 else{
3082 foreach ( $poll['answers'] as $index => $answer ) {
3083 $answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : "";
3084 $poll_class_for_answer_label = "";
3085 $poll_class_for_answer_label_text = "";
3086 if($answer_image != ""){
3087 $poll_class_for_answer_label = "ays_poll_label_without_padding";
3088 $poll_class_for_answer_label_text = "ays_poll_label_text_with_padding";
3089 }
3090 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index.">
3091 <input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'>
3092 <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>
3093 </div>";
3094 }
3095 }
3096 break;
3097 case 'voting':
3098 $poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand";
3099 switch ( $poll_view_type_voting ) {
3100 case 'hand':
3101 foreach ( $poll['answers'] as $index => $answer ) {
3102 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3103 <label for='radio-$index-'>";
3104 $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>";
3105 }
3106 break;
3107 case 'emoji':
3108 foreach ( $poll['answers'] as $index => $answer ) {
3109 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3110 <label for='radio-$index-'>";
3111 $content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>";
3112 }
3113 break;
3114 default:
3115 break;
3116 }
3117 break;
3118 case 'rating':
3119 $poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star";
3120 switch ( $poll_view_type_rating ) {
3121 case 'star':
3122 foreach ( $poll['answers'] as $index => $answer ) {
3123 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3124 <label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>";
3125 }
3126 break;
3127 case 'emoji':
3128 foreach ( $poll['answers'] as $index => $answer ) {
3129 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3130 <label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>";
3131 }
3132 break;
3133 default:
3134 break;
3135 }
3136 break;
3137 case 'text':
3138 $poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text";
3139 switch ( $poll_view_type_text ) {
3140 case 'short_text':
3141 $content .= "<div class='ays-poll-maker-text-live-preview'>
3142 <input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'>
3143 <label for='ays_poll_text_type_short_live'></label>
3144 </div>";
3145 break;
3146 case 'paragraph':
3147 $content .= "<div class='ays-poll-maker-text-live-preview'>
3148 <textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea>
3149 <label for='ays_poll_text_type_paragraph_live'></label>
3150 </div>";
3151 break;
3152 default:
3153 break;
3154 }
3155 break;
3156 default:
3157 break;
3158 }
3159 $content .= "</div>
3160 <div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . ">
3161 <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') . '">
3162 </div>';
3163 $content .= "<div class='".$poll_logo_img." ays_live_logo_container'>";
3164 if($poll_check_logo){
3165 $content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>";
3166 }
3167 $content .= "</div>";
3168
3169 $content .='</div>
3170 </div>';
3171 print $content;
3172 ?>
3173 </div>
3174 </div>
3175 <hr/>
3176 <div class="form-group row">
3177 <div class="col-sm-2">
3178 <label for="ays_custom_css">
3179 <?= __("Custom CSS", "poll-maker"); ?>
3180 </label>
3181 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("In this field, you can write your own CSS code. For example: p{color:red !important}", "poll-maker"); ?>">
3182 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3183 </a>
3184 <br>
3185 </div>
3186 <div class="col-sm-10 ays_divider_left">
3187 <textarea class="ays-textarea" id="ays_custom_css" name="ays_custom_css" cols="30" rows="10"><?= (isset($poll['custom_css'])) ? $poll['custom_css'] : ''; ?></textarea>
3188 </div>
3189 </div>
3190 <hr/>
3191 <div class="form-group row">
3192 <div class="col-sm-2">
3193 <label for="ays_poll_reset_to_default">
3194 <?php echo __('Reset styles', "poll-maker") ?>
3195 <a class="ays_help" data-toggle="tooltip"
3196 title="<?php echo __('Reset styles to default values', "poll-maker") ?>">
3197 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3198 </a>
3199 </label>
3200 </div>
3201 <div class="col-sm-10 ays_divider_left">
3202 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3203 id="ays_poll_reset_to_default"><?= __("Reset", "poll-maker") ?>
3204 </button>
3205 </div>
3206 </div>
3207 </div>
3208 <hr>
3209 </div>
3210 <div id="tab3" class="ays-poll-tab-content <?= $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3211 <div class="ays-poll-accordion-options-main-container">
3212 <div class="ays-poll-accordion-header">
3213 <?php echo $poll_acordion_svg_html; ?>
3214 <p class="ays-subtitle"><?= __('Feature options', "poll-maker"); ?> </p>
3215 </div>
3216 <hr class="ays-poll-bolder-hr"/>
3217 <div class="ays-poll-accordion-body">
3218 <div class="form-group row">
3219 <div class="col-sm-3">
3220 <label>
3221 <?= __('Status', "poll-maker"); ?>
3222 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3223 title="<?= __('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") ?>">
3224 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3225 </a>
3226 </label>
3227 </div>
3228 <div class="col-sm-9">
3229 <div class="d-flex">
3230 <div class="form-check form-check-inline">
3231 <input type="radio" id="ays-publish" name="ays_publish"
3232 value="1" <?= ($published == 1) ? 'checked' : ''; ?> />
3233 <label class="form-check-label"
3234 for="ays-publish"> <?= __('Published', "poll-maker"); ?> </label>
3235 </div>
3236 <div class="form-check form-check-inline">
3237 <input type="radio" id="ays-unpublish" name="ays_publish"
3238 value="0" <?= ($published == 0) ? 'checked' : ''; ?> />
3239 <label class="form-check-label"
3240 for="ays-unpublish"> <?= __('Unpublished', "poll-maker"); ?> </label>
3241 </div>
3242 </div>
3243 </div>
3244 </div>
3245 <hr>
3246 <div class='form-group row'>
3247 <div class="col-sm-3">
3248 <label for='ays-poll-category'>
3249 <?= __('Categories', "poll-maker"); ?>
3250 <a class="ays_help" data-toggle="tooltip"
3251 data-placement="top"
3252 title="<?= __("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"); ?>">
3253 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3254 </a>
3255 </label>
3256 </div>
3257 <div class="col-sm-9">
3258 <?php if (!empty($categories)): ?>
3259 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3260 data-placeholder='<?= __("Select category", "poll-maker") ?>'>
3261 <?php
3262 foreach ( $categories as $cat ) {
3263 ?>
3264 <option value="<?= $cat['id']; ?>" <?= in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3265 <?= $cat['title']; ?>
3266 </option>
3267 <?php }
3268 ?>
3269 </select>
3270 <?php else: ?>
3271 <a href="?page=poll-maker-ays-cats&action=add"><?= __("Create category", "poll-maker") ?></a>
3272 <?php endif; ?>
3273 </div>
3274 </div>
3275 <hr>
3276 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3277 <div class="form-group row ays_toggle_parent">
3278 <div class="col-sm-3">
3279 <label for="ays_add_post_for_poll">
3280 <?php echo __('Create post for poll', "poll-maker")?>
3281 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('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")?>">
3282 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3283 </a>
3284 </label>
3285 </div>
3286 <div class="col-sm-1">
3287 <input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/>
3288 </div>
3289 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3290 <div class="form-group row">
3291 <div class="col-sm-4">
3292 <label for="ays_add_postcat_for_poll">
3293 <?php echo __('Choose Post Categories', "poll-maker")?>
3294 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose the category of the new post. For creating a category, go to the Categories page of the Posts.', "poll-maker")?>">
3295 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3296 </a>
3297 </label>
3298 </div>
3299 <div class="col-sm-8">
3300 <div class="input-group">
3301 <select name="ays_add_postcat_for_poll[]"
3302 id="ays_add_postcat_for_poll"
3303 class="apm-cat-select2"
3304 multiple>
3305 <?php
3306
3307 foreach ($cat_list as $cat) {
3308 echo "<option value='" . $cat->cat_ID . "' >" . htmlentities($cat->name) . "</option>";
3309 }
3310 ?>
3311 </select>
3312 </div>
3313 </div>
3314 </div>
3315 </div>
3316 </div> <!-- Create post for poll -->
3317 <hr/>
3318 <?php else: ?>
3319 <div class="form-group row">
3320 <div class="col-sm-3">
3321 <label for="ays_add_post_for_poll">
3322 <?php echo __('WP Post', "poll-maker")?>
3323 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Via these two links you can see the connected post in front end and make changes in the dashboard.', "poll-maker")?>">
3324 <i class="ays_fa ays_fa_info_circle"></i>
3325 </a>
3326 </label>
3327 </div>
3328 <div class="col-sm-8" style="margin-left: 15px;">
3329 <div class="row">
3330 <div style="margin-right: 10px;">
3331 <a class="button" href="<?php echo $ays_poll_view_post_url; ?>" target="_blank"><?php echo __( "View Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3332 </div>
3333 <div>
3334 <a class="button" href="<?php echo $ays_poll_edit_post_url; ?>" target="_blank"><?php echo __( "Edit Post", "poll-maker" ); ?> <i class="ays_fa ays_fa_external_link"></i></a>
3335 </div>
3336 </div>
3337 </div>
3338 <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo $post_id; ?>">
3339 </div>
3340 <hr>
3341 <?php endif; ?>
3342 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3343 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3344 <div class="pro_features" style="justify-content:flex-end;">
3345 </div>
3346 <div class="form-group row">
3347 <div class="col-sm-3">
3348 <label for="ays_poll_enable_copy_protection">
3349 <?php echo __('Enable copy protection',"poll-maker"); ?>
3350 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Disable copy functionality in poll page(CTRL+C) and Right-click',"poll-maker"); ?>">
3351 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3352 </a>
3353 </label>
3354 </div>
3355 <div class="col-sm-9">
3356 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_copy_protection" />
3357 </div>
3358 </div>
3359 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3360 <div class="ays-poll-new-upgrade-button-box">
3361 <div>
3362 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3363 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3364 </div>
3365 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3366 </div>
3367 </a>
3368 </div>
3369 </div>
3370 <hr/>
3371 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3372 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3373 <div class="pro_features" style="justify-content:flex-end;">
3374 </div>
3375 <div class="form-group row">
3376 <div class="col-sm-3">
3377 <label for="ays_poll_question_text_to_speech">
3378 <?php echo __('Enable text to speech',"poll-maker")?>
3379 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable this option to convert question text into spoken words, providing an audio representation of the question for improved accessibility and convenience.',"poll-maker")?>">
3380 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3381 </a>
3382 </label>
3383 </div>
3384 <div class="col-sm-9">
3385 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_question_text_to_speech"
3386 name="ays_poll_question_text_to_speech"
3387 value="on"/>
3388 </div>
3389 </div>
3390 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3391 <div class="ays-poll-new-upgrade-button-box">
3392 <div>
3393 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3394 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3395 </div>
3396 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3397 </div>
3398 </a>
3399 </div>
3400 </div> <!-- Questions text to speech -->
3401 <hr>
3402 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3403 <div class="col-sm-3">
3404 <label for='ays_poll_allow_multivote'>
3405 <?= __('Allow multivote', "poll-maker"); ?>
3406 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Allow users to choose more than one answer. It will work with choosing type.", "poll-maker"); ?>">
3407 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3408 </a>
3409 </label>
3410 </div>
3411 <div class="col-sm-1">
3412 <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; ?>>
3413 </div>
3414 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_enable_multivote_answer ? '' : 'display: none'; ?>">
3415 <div class="row">
3416 <div class="col-sm-3">
3417 <label for='ays_poll_multivote_min_count'>
3418 <?= __('Min', "poll-maker"); ?>
3419 <a class="ays_help"
3420 data-toggle="tooltip"
3421 data-placement="top"
3422 title="<?= __("Indicate the minimum count of answers.", "poll-maker"); ?>">
3423 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3424 </a>
3425 </label>
3426 </div>
3427 <div class="col-sm-9">
3428 <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; ?>">
3429 </div>
3430 </div>
3431 <hr>
3432 <div class="row">
3433 <div class="col-sm-3">
3434 <label for='ays_poll_multivote_count'>
3435 <?= __('Max', "poll-maker"); ?>
3436 <a class="ays_help"
3437 data-toggle="tooltip"
3438 data-placement="top"
3439 title="<?= __("Indicate the maximum count of answers.", "poll-maker"); ?>">
3440 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3441 </a>
3442 </label>
3443 </div>
3444 <div class="col-sm-9">
3445 <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; ?>">
3446 </div>
3447 </div>
3448 </div>
3449 </div>
3450 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3451 <div class="form-group row">
3452 <div class="col-sm-3">
3453 <label for='show-title'>
3454 <?= __('Show Title', "poll-maker"); ?>
3455 <a class="ays_help" data-toggle="tooltip"
3456 data-placement="top"
3457 title="<?= __("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3458 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3459 </a>
3460 </label>
3461 </div>
3462 <div class="col-sm-9">
3463 <input type="checkbox" name="show_title" id="show-title"
3464 value="show" <?= $poll['show_title'] ? 'checked' : ''; ?>>
3465 </div>
3466 </div>
3467 <hr>
3468 <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' ?>" >
3469 <div class="col-sm-3">
3470 <label>
3471 <?= __('Alignment', "poll-maker"); ?>
3472 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3473 title="<?= __('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3474 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3475 </a>
3476 </label>
3477 </div>
3478 <div class="col-sm-9">
3479 <div class="d-flex">
3480 <div class="form-check form-check-inline">
3481 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3482 value="ltr" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3483 <label class="form-check-label"
3484 for="apm-dir-ltr"> <?= __('Left', "poll-maker"); ?> </label>
3485 </div>
3486 <div class="form-check form-check-inline">
3487 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3488 value="center" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3489 <label class="form-check-label"
3490 for="apm-dir-center"> <?= __('Center', "poll-maker"); ?> </label>
3491 </div>
3492 <div class="form-check form-check-inline">
3493 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3494 value="rtl" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3495 <label class="form-check-label"
3496 for="apm-dir-rtl"> <?= __('Right', "poll-maker"); ?> </label>
3497 </div>
3498 </div>
3499 </div>
3500 </div>
3501 <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' ?>" >
3502 <div class="form-group row">
3503 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3504 <div class="pro_features pro_features_popup">
3505 <div class="pro-features-popup-conteiner">
3506 <div class="pro-features-popup-title">
3507 <?php echo __("Allow Anonymity", "poll-maker"); ?>
3508 </div>
3509 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3510 <p>
3511 <?php echo __("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"); ?>
3512 </p>
3513 </div>
3514 <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">
3515 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
3516 </div>
3517 </div>
3518 </div>
3519 <div class="pro_features" style="justify-content:flex-end;">
3520 </div>
3521 <div class="form-group row">
3522 <div class="col-sm-3">
3523 <label for='ays-poll-allow-anonymity'>
3524 <?= __('Allow anonymity', "poll-maker"); ?>
3525 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?= __("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"); ?>">
3526 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3527 </a>
3528 </label>
3529 </div>
3530 <div class="col-sm-9">
3531 <input type="checkbox" name="ays_allow_anonymity"
3532 value="1" >
3533 </div>
3534 </div>
3535 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3536 <div class="ays-poll-new-upgrade-button-box">
3537 <div>
3538 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3539 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3540 </div>
3541 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3542 </div>
3543 </a>
3544 <div class="ays-poll-new-watch-video-button-box">
3545 <div>
3546 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
3547 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
3548 </div>
3549 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
3550 </div>
3551 </div>
3552 </div>
3553 <hr>
3554 <div class="form-group row">
3555 <div class="col-sm-3">
3556 <label for='ays_poll_change_creation_date'>
3557 <?= __('Change current poll creation date', "poll-maker"); ?>
3558 <a class="ays_help" data-toggle="tooltip"
3559 data-placement="top"
3560 title="<?= __("Choose your preferred creation date.", "poll-maker"); ?>">
3561 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3562 </a>
3563 </label>
3564 </div>
3565 <div class="col-sm-9" style="display: inherit;">
3566 <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"
3567 value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3568 <div class="input-group-append" style="display: block">
3569 <label for="ays_poll_change_creation_date" class="input-group-text">
3570 <span><i class="ays_fa ays_fa_calendar"></i></span>
3571 </label>
3572 </div>
3573 </div>
3574 </div>
3575 <hr>
3576 <div class="form-group row">
3577 <div class="col-sm-3">
3578 <label for="ays_poll_create_author">
3579 <?php echo __('Change the author of the current poll', "poll-maker"); ?>
3580 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('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"); ?>">
3581 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3582 </a>
3583 </label>
3584 </div>
3585 <div class="col-sm-9">
3586 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3587 <option value=""><?php echo __('Select User', "poll-maker")?></option>
3588 <?php
3589 $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;
3590 $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) ) : '';
3591 $selected = '';
3592 ?>
3593 <option value="<?php echo $poll_user_id;?>" selected>
3594 <?php echo $poll_user_display_name; ?>
3595 </option>
3596 </select>
3597 </div>
3598 </div> <!-- Change the author of the current poll -->
3599 <hr/>
3600 <!-- Poll Main URL Start -->
3601 <div class="form-group row">
3602 <div class="col-sm-3">
3603 <label for="ays_poll_main_url">
3604 <?php echo __('Poll main URL',$this->plugin_name)?>
3605 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('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");
3606 ?>">
3607 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3608 </a>
3609 </label>
3610 </div>
3611 <div class="col-sm-9">
3612 <input type="url" id="ays_poll_main_url" name="ays_poll_main_url" class="ays-text-input" value="<?php echo $poll_main_url; ?>">
3613 </div>
3614 </div>
3615 <!-- Poll Main URL End -->
3616 <hr>
3617 <div class="form-group row">
3618 <div class="col-sm-3">
3619 <label for='show-poll-create-dates'>
3620 <?= __('Show creation date', "poll-maker"); ?>
3621 <a class="ays_help" data-toggle="tooltip"
3622 data-placement="top"
3623 title="<?= __("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3624 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3625 </a>
3626 </label>
3627 </div>
3628 <div class="col-sm-9">
3629 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3630 value="1" <?= $show_create_date ? 'checked' : '' ?> >
3631 </div>
3632 </div>
3633 <hr>
3634 <div class="form-group row">
3635 <div class="col-sm-3">
3636 <label for='show-poll-author'>
3637 <?= __('Show author', "poll-maker"); ?>
3638 <a class="ays_help" data-toggle="tooltip"
3639 data-placement="top"
3640 title="<?= __("Enable to show the author inside the poll.", "poll-maker"); ?>">
3641 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3642 </a>
3643 </label>
3644 </div>
3645 <div class="col-sm-9">
3646 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3647 value="1" <?= $show_author ? 'checked' : '' ?> >
3648 </div>
3649 </div>
3650 <hr>
3651 <div class="form-group row">
3652 <div class="col-sm-3">
3653 <label for="schedule_the_poll">
3654 <?= __('Schedule', "poll-maker"); ?>
3655 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3656 title="<?= __('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") ?>">
3657 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3658 </a>
3659 </label>
3660 </div>
3661 <div class="col-sm-1">
3662 <input type="checkbox"
3663 id="schedule_the_poll"
3664 class="active_date_check"
3665 name="active_date_check" <?= (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3666 </div>
3667 <div class="col-sm-8">
3668 <div class="row">
3669 <div class="col-sm-12 active_date ays_divider_left"
3670 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3671 <!-- -1- -->
3672 <div class="form-group row">
3673 <div class="col-sm-3">
3674 <label class="form-check-label" for="ays-active"> <?php echo __('Start date:', "poll-maker"); ?> </label>
3675 </div>
3676 <div class="col-sm-9">
3677 <div class="input-group mb-3">
3678 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
3679 value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3680 <div class="input-group-append">
3681 <label for="ays-active" class="input-group-text">
3682 <span><i class="ays_fa ays_fa_calendar"></i></span>
3683 </label>
3684 </div>
3685 </div>
3686 </div>
3687 </div>
3688 <!-- -2- -->
3689 <div class="form-group row">
3690 <div class="col-sm-3">
3691 <label class="form-check-label" for="ays-deactive"> <?php echo __('End date:', "poll-maker"); ?> </label>
3692 </div>
3693 <div class="col-sm-9">
3694 <div class="input-group mb-3">
3695 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
3696 value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3697 <div class="input-group-append">
3698 <label for="ays-deactive" class="input-group-text">
3699 <span><i class="ays_fa ays_fa_calendar"></i></span>
3700 </label>
3701 </div>
3702 </div>
3703 </div>
3704 </div>
3705 <!-- ////////// -->
3706 <hr>
3707 <div class="form-group row">
3708 <div class="col-sm-3">
3709 <label for='ays_poll_show_timer'>
3710 <?= __('Show timer', "poll-maker"); ?>
3711 <a class="ays_help" data-toggle="tooltip"
3712 data-placement="top"
3713 title="<?= __("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
3714 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3715 </a>
3716 </label>
3717 </div>
3718 <div class="col-sm-1">
3719 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
3720 value="1" <?= $schedule_show_timer ? 'checked' : '' ?> >
3721 </div>
3722 <div class="col-sm-8">
3723 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3724 <div class="d-flex">
3725 <div class="form-check form-check-inline">
3726 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
3727 value="countdown" <?= $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
3728 <label class="form-check-label"
3729 for="show_time_countdown"> <?= __('Show countdown', "poll-maker"); ?> </label>
3730 </div>
3731 <div class="form-check form-check-inline">
3732 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
3733 value="enddate" <?= $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
3734 <label class="form-check-label"
3735 for="show_time_enddate"> <?= __('Show end date', "poll-maker"); ?> </label>
3736 </div>
3737 </div>
3738 <hr>
3739 <div class='form-group row'>
3740 <div class='col-sm-5'>
3741 <label class="form-check-label" for="show_bottom_timer">
3742 <?= __(' Show timer at the bottom', "poll-maker"); ?>
3743 <a class="ays_help" data-toggle="tooltip"
3744 data-placement="top"
3745 title="<?= __("If you enable this option, the timer will be displayed at the bottom of the poll instead of the top.", "poll-maker"); ?>">
3746 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3747 </a>
3748 </label>
3749 </div>
3750 <div class='col-sm-7'>
3751 <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?= $show_bottom_timer == true ? 'checked' : ''; ?> >
3752 </div>
3753 </div>
3754 </div>
3755 </div>
3756 </div>
3757 <hr>
3758 <div class="form-group row">
3759 <div class="col-sm-3">
3760 <label class="form-check-label"
3761 for="active_date_message"><?= __("Pre start message:", "poll-maker") ?></label>
3762 </div>
3763 <div class="col-sm-9">
3764 <div class="editor">
3765 <?php
3766 $content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']);
3767 $editor_id = 'active_date_message_soon';
3768 $settings = array(
3769 'editor_height' => $poll_wp_editor_height,
3770 'textarea_name' => 'active_date_message_soon',
3771 'editor_class' => 'ays-textarea',
3772 'media_elements' => false
3773 );
3774 wp_editor($content, $editor_id, $settings);
3775 ?>
3776 </div>
3777 </div>
3778 </div>
3779 <hr>
3780 <!-- -3- -->
3781 <div class="form-group row">
3782 <div class="col-sm-3">
3783 <label class="form-check-label"
3784 for="active_date_message"><?= __("Expiration message:", "poll-maker") ?></label>
3785 </div>
3786 <div class="col-sm-9">
3787 <div class="editor">
3788 <?php
3789 $content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']);
3790 $editor_id = 'active_date_message';
3791 $settings = array(
3792 'editor_height' => $poll_wp_editor_height,
3793 'textarea_name' => 'active_date_message',
3794 'editor_class' => 'ays-textarea',
3795 'media_elements' => false
3796 );
3797 wp_editor($content, $editor_id, $settings);
3798 ?>
3799 </div>
3800 </div>
3801 </div>
3802 <hr>
3803 <div class="form-group row">
3804 <div class="col-sm-3">
3805 <label for='show_result_btn_schedule'>
3806 <?= __('Show result button', "poll-maker"); ?>
3807 <a class="ays_help" data-toggle="tooltip"
3808 data-placement="top"
3809 title="<?= __("Enable to show the result button after the schedule.", "poll-maker"); ?>">
3810 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3811 </a>
3812 </label>
3813 </div>
3814 <div class="col-sm-1">
3815 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
3816 value="1" <?= $showresbtnschedule ? 'checked' : '' ?> >
3817 </div>
3818 <div class="col-sm-8">
3819 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
3820 <div class="form-check form-check-inline">
3821 <label class="form-check-label">
3822 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
3823 <span>
3824 <?= __('With See Results button', "poll-maker"); ?>
3825 </span>
3826 </label>
3827 </div>
3828 <div class="form-check form-check-inline">
3829 <label class="form-check-label">
3830 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
3831 <span>
3832 <?= __('Without See Results button', "poll-maker"); ?>
3833 </span>
3834 </label>
3835 </div>
3836 </div>
3837 </div>
3838 </div>
3839 <hr>
3840 <div class="form-group row">
3841 <div class="col-sm-3">
3842 <label for='ays_show_poll_container'>
3843 <?= __("Don't show poll", "poll-maker"); ?>
3844 <a class="ays_help" data-toggle="tooltip"
3845 data-placement="top"
3846 title="<?= __("Do not show the poll container on the front-end at all when it is expired or has not started yet.", "poll-maker"); ?>">
3847 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3848 </a>
3849 </label>
3850 </div>
3851 <div class="col-sm-9">
3852 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
3853 value="on" <?php echo $poll_check_exp_cont; ?> >
3854 </div>
3855 </div>
3856 </div>
3857 </div>
3858 </div>
3859 </div>
3860 <hr>
3861 <div class="form-group row ays_toggle_parent">
3862 <div class="col-sm-3">
3863 <label for='ays-poll-allow-not-vote'>
3864 <?= __('Allow not to vote', "poll-maker"); ?>
3865 <a class="ays_help"
3866 data-toggle="tooltip"
3867 data-placement="top"
3868 title="<?= __("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"); ?>">
3869 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3870 </a></label>
3871 </div>
3872 <div class="col-sm-1">
3873 <input type="checkbox" name="ays-poll-allow-not-vote" id="ays-poll-allow-not-vote" class="ays_toggle_checkbox" value="allow" <?= isset($options['allow_not_vote']) && $options['allow_not_vote'] ? 'checked' : ''; ?>>
3874 </div>
3875 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
3876 <div class="row">
3877 <div class="col-sm-3 ays_divider_left">
3878 <label for="ays-poll-btn-text">
3879 <?= __("Results button text", "poll-maker"); ?>
3880 <a class="ays_help"
3881 data-toggle="tooltip"
3882 data-placement="top"
3883 title="<?= __("Write the text of the button, which shows results.", "poll-maker"); ?>">
3884 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3885 </a>
3886 </label>
3887 </div>
3888 <div class="col-sm-9">
3889 <input type="text" class="ays-text-input ays-text-input-short" id="ays-poll-btn-text" name="ays_poll_res_btn_text" value="<?= (isset($options['see_res_btn_text']) && '' != $options['see_res_btn_text']) ? stripslashes(esc_attr($options['see_res_btn_text'])) : __("See Results", "poll-maker"); ?>"/>
3890 </div>
3891 </div>
3892 </div>
3893 </div>
3894 <hr>
3895 <div class="form-group row">
3896 <div class="col-sm-3" style="padding-right: 0px;">
3897 <label for="ays_enable_pass_count">
3898 <?= __('Show passed users count', "poll-maker") ?>
3899 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3900 title="<?= __('Show how many users have passed the poll. It will be shown at the bottom right corner inside the poll.', "poll-maker") ?>">
3901 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3902 </a>
3903 </label>
3904 </div>
3905 <div class="col-sm-9">
3906 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
3907 value="on" <?= ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
3908 </div>
3909 </div>
3910 <hr>
3911 <div class="form-group row ays_toggle_parent">
3912 <div class="col-sm-3">
3913 <label for="ays_redirect_after_vote">
3914 <?= __('Redirect after voting', "poll-maker"); ?>
3915 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3916 title="<?= __('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
3917 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3918 </a>
3919 </label>
3920 </div>
3921 <div class="col-sm-1">
3922 <input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> />
3923 </div>
3924 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>">
3925 <div class="row">
3926 <div class="col-sm-12 ays_divider_left">
3927 <div class="form-group row">
3928 <div class="col-sm-3">
3929 <label for="redirection_url">
3930 <?= __('URL', "poll-maker"); ?>
3931 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __('Choose the Redirection URL for redirecting after the user takes the poll.', "poll-maker"); ?>">
3932 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3933 </a>
3934 </label>
3935 </div>
3936 <div class="col-sm-9">
3937 <input type="text" class="ays-text-input" name="redirection_url" placeholder="https://www.google.com" id="redirection_url" value="<?= isset($options['redirect_after_vote_url']) && !empty($options['redirect_after_vote_url']) ? $options['redirect_after_vote_url'] : ""; ?>" size="25">
3938 </div>
3939 </div>
3940 <hr>
3941 <div class="form-group row">
3942 <div class="col-sm-3">
3943 <label for="redirectio_delay">
3944 <?= __('Delay', "poll-maker"); ?>
3945 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3946 title="<?= __('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
3947 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3948 </a>
3949 </label>
3950 </div>
3951 <div class="col-sm-9">
3952 <input type="text" class="ays-text-input" name="redirection_delay" id="redirectio_delay" value="<?= isset($options['redirect_after_vote_delay']) && !empty($options['redirect_after_vote_delay']) ? $options['redirect_after_vote_delay'] : ""; ?>" size="15">
3953 </div>
3954 </div>
3955 </div>
3956 </div>
3957
3958 </div>
3959 </div>
3960 <hr/>
3961 <div class="form-group row">
3962 <div class="col-sm-3">
3963 <label for="randomize-answers">
3964 <?= __('Randomize Answers', "poll-maker"); ?>
3965 <a class="ays_help" data-toggle="tooltip"
3966 data-placement="top"
3967 title="<?= __("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
3968 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3969 </a>
3970 </label>
3971 </div>
3972 <div class="col-sm-9">
3973 <input type="checkbox"
3974 name="randomize_answers"
3975 id="randomize-answers"
3976 value="on"
3977 <?php echo $randomize_answers ? 'checked' : ''; ?>
3978 />
3979 </div>
3980 </div>
3981 <hr/>
3982 <div class="form-group row ays_toggle_parent">
3983 <div class="col-sm-3" style="padding-right: 0px;">
3984 <label for="ays_enable_asnwers_sound">
3985 <?php echo __('Enable answers sound', "poll-maker")?>
3986 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('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")?>">
3987 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3988 </a>
3989 </label>
3990 </div>
3991 <div class="col-sm-1">
3992 <input type="checkbox" id="ays_enable_asnwers_sound"
3993 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
3994 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
3995 </div>
3996 <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo $enable_asnwers_sound ? '' : 'display:none;' ?>">
3997 <?php if($answers_sound_status): ?>
3998 <blockquote class=""><?php echo __('Sound are selected. For change sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo __('General options', "poll-maker"); ?></a> <?php echo __('page', "poll-maker"); ?></blockquote>
3999 <?php else: ?>
4000 <blockquote class=""><?php echo __('Sound are not selected. For selecting sounds go to', "poll-maker"); ?> <a href="?page=poll-maker-ays-settings" target="_blank"><?php echo __('General options', "poll-maker"); ?></a> <?php echo __('page', "poll-maker"); ?></blockquote>
4001 <?php endif; ?>
4002 </div>
4003 </div>
4004 <hr/>
4005 <div class="form-group row">
4006 <div class="col-3">
4007 <label for="ays-poll-reason">
4008 <?= __('Vote Reason', "poll-maker"); ?>
4009 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4010 title="<?= __("Allow users to add their vote reason", "poll-maker"); ?>">
4011 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4012 </a>
4013 </label>
4014 </div>
4015 <div class="col-9">
4016 <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo $poll_vote_reason; ?>>
4017 </div>
4018 </div>
4019 <hr/>
4020 <div class="form-group row ays_toggle_parent">
4021 <div class="col-sm-3">
4022 <label for="ays_enable_vote_button">
4023 <?= __('Enable Vote button', "poll-maker") ?>
4024 <a class="ays_help" data-toggle="tooltip"
4025 title="<?= __('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") ?>">
4026 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4027 </a>
4028 </label>
4029 </div>
4030 <div class="col-sm-1">
4031 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4032 value="1" <?= (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4033 </div>
4034 <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;' : '' ?>">
4035 <div class="row">
4036 <div class="col-sm-3 ays_divider_left">
4037 <label for="ays-poll-btn-text_vote">
4038 <?= __("Vote button text", "poll-maker"); ?>
4039 <a class="ays_help"
4040 data-toggle="tooltip"
4041 data-placement="top"
4042 title="<?= __("Write the text of the vote button.", "poll-maker"); ?>">
4043 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4044 </a>
4045 </label>
4046 </div>
4047 <div class="col-sm-9">
4048 <input type="text" class="ays-text-input ays-text-input-short"
4049 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4050 value="<?= stripslashes($options['btn_text']) ?>"/>
4051 </div>
4052 </div>
4053 </div>
4054 </div>
4055 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4056 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4057 <div class="col-sm-3">
4058 <label for="ays_enable_view_more_button">
4059 <?= __('Enable View more button', "poll-maker") ?>
4060 <a class="ays_help" data-toggle="tooltip"
4061 title="<?php echo __('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"); ?>">
4062 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4063 </a>
4064 </label>
4065 </div>
4066 <div class="col-sm-1">
4067 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_view_more_button" name="ays_enable_view_more_button"
4068 value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> />
4069 </div>
4070 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4071 <div class="form-group row">
4072 <div class="col-sm-3">
4073 <label for="ays_poll_view_more_button_count">
4074 <?php echo __("Count", "poll-maker"); ?>
4075 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?php echo __("Indicate the number of answers which will be shown in the first place.", "poll-maker"); ?>">
4076 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4077 </a>
4078 </label>
4079 </div>
4080 <div class="col-sm-9">
4081 <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; ?>"/>
4082 </div>
4083 </div>
4084 </div>
4085 </div>
4086 <hr>
4087 <div class="form-group row">
4088 <div class="col-sm-3">
4089 <label for="ays_answers_sort_select">
4090 <?php echo __('Answers sorting', "poll-maker") ?>
4091 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4092 title="<?php
4093 echo __("Select the way of arrangement of the answers on the voting page of the poll. This works only with the Choosing type.", "poll-maker") .
4094 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4095 "<li>". __('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4096 "<li>". __('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4097 "<li>". __('Most voted – by most votes', "poll-maker") ."</li>".
4098 "<li>". __('Less voted - by less votes', "poll-maker") ."</li>".
4099 "<li>". __('Default - upon your preferences', "poll-maker") ."</li>".
4100 "</ul>";
4101 ?>">
4102 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4103 </a>
4104 </label>
4105 </div>
4106 <div class="col-sm-9">
4107 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4108 <option value="default" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo __('Default', "poll-maker") ?></option>
4109 <option value="ascending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo __('Ascending', "poll-maker") ?></option>
4110 <option value="descending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo __('Descending', "poll-maker") ?></option>
4111 <option value="votes_asc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_asc" ? 'selected' : ''; ?>><?php echo __('Most Voted', "poll-maker") ?></option>
4112 <option value="votes_desc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_desc" ? 'selected' : ''; ?>><?php echo __('Less Voted', "poll-maker") ?></option>
4113 </select>
4114 </div>
4115 </div>
4116 <hr>
4117 <div class="form-group row">
4118 <div class="col-sm-3">
4119 <label>
4120 <?php echo __('Answers numbering', "poll-maker"); ?>
4121 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Assign numbering to each answer in ascending sequential order. Choose your preferred type from the list.', "poll-maker"); ?>">
4122 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4123 </a>
4124 </label>
4125 </div>
4126 <div class="col-sm-9">
4127 <select class="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4128 <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo __( "None", "poll-maker"); ?></option>
4129 <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo __( "1.", "poll-maker"); ?></option>
4130 <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo __( "1)", "poll-maker"); ?></option>
4131 <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo __( "A.", "poll-maker"); ?></option>
4132 <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo __( "A)", "poll-maker"); ?></option>
4133 <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo __( "a.", "poll-maker"); ?></option>
4134 <option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo __( "a)", "poll-maker"); ?></option>
4135 </select>
4136 </div>
4137 </div> <!-- Show answers numbering -->
4138 <hr>
4139 <div class="form-group row">
4140 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4141 <div class="pro_features" style="justify-content:flex-end;">
4142 </div>
4143 <div class="form-group row ays_toggle_parent">
4144 <div class="col-sm-3">
4145 <label for="ays_show_votes_before_voting">
4146 <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4147 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4148 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") ?>">
4149 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4150 </a>
4151 </label>
4152 </div>
4153 <div class="col-sm-1">
4154 <input type="checkbox"/>
4155 </div>
4156 <div class="col-sm-8 ays_divider_left ays_toggle_target" >
4157 <div class="d-flex">
4158 <div class="form-check-inline ays_poll_loader">
4159 <label class="form-check-label">
4160 <input type="radio" value="by_count" />
4161 <span><?= __('By count', "poll-maker"); ?></span>
4162 </label>
4163 </div>
4164 <div class="form-check-inline ays_poll_loader">
4165 <label class="form-check-label">
4166 <input type="radio" value="by_percentage"/>
4167 <span><?= __('By percentage', "poll-maker"); ?></span>
4168 </label>
4169 </div>
4170 </div>
4171 </div>
4172 </div> <!-- Status -->
4173 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4174 <div class="ays-poll-new-upgrade-button-box" style="top: -20px;">
4175 <div>
4176 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4177 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4178 </div>
4179 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4180 </div>
4181 </a>
4182 </div>
4183 </div>
4184 </div>
4185 </div>
4186 </div>
4187 <div id="tab4" class="ays-poll-tab-content <?= $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4188 <div class="ays-poll-accordion-options-main-container">
4189 <div class="ays-poll-accordion-header">
4190 <?php echo $poll_acordion_svg_html; ?>
4191 <p class="ays-subtitle"><?= __('Limitation of Users', "poll-maker"); ?></p>
4192 </div>
4193 <hr class="ays-poll-bolder-hr"/>
4194 <div class="ays-poll-accordion-body">
4195 <div class="form-group row ays_toggle_parent">
4196 <div class="col-sm-3">
4197 <label for="apm_limit_users">
4198 <?= __('Maximum number of attempts per user', "poll-maker"); ?>
4199 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4200 title="<?= __('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4201 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4202 </a>
4203 </label>
4204 </div>
4205 <div class="col-sm-1">
4206 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4207 value="on" <?= $options['limit_users'] ? 'checked' : ''; ?> />
4208 </div>
4209 <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?= $options['limit_users'] ? '' : 'display: none;'; ?>">
4210 <div class="ays-limitation-options">
4211 <!-- Limitation method -->
4212 <div class="form-group row">
4213 <div class="col-sm-3">
4214 <label for="ays_redirect_method">
4215 <?= __('Detects users by', "poll-maker"); ?>
4216 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'><?php echo __( 'Choose the method of detection of the user:' , "poll-maker" ); ?>
4217 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By IP', "poll-maker" ); ?></strong> <?php echo __( ' - 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>
4218 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By User ID', "poll-maker" ); ?></strong><?php echo __( ' - 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>
4219 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By Cookie ', "poll-maker" ); ?></strong><?php echo __( ' - Detect the users by their browser cookies and limit them. It will work both for guests and registered users.', "poll-maker" ); ?></p>
4220 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'By Cookie and IP ', "poll-maker" ); ?></strong><?php echo __( ' - 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>"
4221 >
4222 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4223 </a>
4224 </label>
4225 </div>
4226 <div class="col-sm-9">
4227 <div class="ays-poll-sel-fields d-flex p-0">
4228 <div class="ays-poll-check-box mr-2">
4229 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4230 value="ip" <?= (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4231 <label class="form-check-label"
4232 for="ays_limit_method_ip"><?= __('IP', "poll-maker"); ?> </label>
4233 </div>
4234 <div class="ays-poll-check-box mr-2">
4235 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4236 value="user" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4237 <label class="form-check-label"
4238 for="ays_limit_method_user"><?= __('User ID', "poll-maker"); ?> </label>
4239 </div>
4240 <div class="ays-poll-check-box mr-2">
4241 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4242 value="cookie" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4243 <label class="form-check-label"
4244 for="ays_limit_method_cookie"><?= __('Cookie', "poll-maker"); ?> </label>
4245 </div>
4246 <div class="ays-poll-check-box mr-2">
4247 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4248 value="cookie_ip" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4249 <label class="form-check-label"
4250 for="ays_limit_method_cookie_ip"><?= __('Cookie and IP', "poll-maker"); ?> </label>
4251 </div>
4252 </div>
4253 </div>
4254 </div>
4255 <hr>
4256 <!-- Limitation message -->
4257 <div class="form-group row">
4258 <div class="col-sm-3">
4259 <label for="ays_limitation_message">
4260 <?= __('Message', "poll-maker"); ?>
4261 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4262 title="<?= __('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4263 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4264 </a>
4265 </label>
4266 </div>
4267 <div class="col-sm-9">
4268 <?php
4269 $content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']);
4270 $editor_id = 'ays_limitation_message';
4271 $settings = array(
4272 'editor_height' => $poll_wp_editor_height,
4273 'textarea_name' => 'ays_limitation_message',
4274 'editor_class' => 'ays-textarea',
4275 'media_elements' => false
4276 );
4277 wp_editor($content, $editor_id, $settings);
4278 ?>
4279 </div>
4280 </div>
4281 <hr>
4282 <!-- Limitation redirect url -->
4283 <div class="form-group row">
4284 <div class="col-sm-3">
4285 <label for="ays_redirect_url">
4286 <?= __('Redirect URL', "poll-maker"); ?>
4287 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4288 title="<?= __('Enable redirection to the custom URL for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4289 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4290 </a>
4291 </label>
4292 </div>
4293 <div class="col-sm-9">
4294 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4295 class="ays-text-input"
4296 value="<?= $options['redirect_url'] ?>"/>
4297 </div>
4298 </div>
4299 <hr>
4300 <!-- Limitation redirect delay -->
4301 <div class="form-group row">
4302 <div class="col-sm-3">
4303 <label for="ays_redirection_delay">
4304 <?= __('Redirect delay (sec)', "poll-maker"); ?>
4305 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4306 title="<?= __('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4307 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4308 </a>
4309 </label>
4310 </div>
4311 <div class="col-sm-9">
4312 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4313 class="ays-text-input"
4314 value="<?= $options['redirection_delay'] ?>"/>
4315 </div>
4316 </div>
4317 <hr>
4318 <div class="form-group row">
4319 <div class="col-sm-3">
4320 <label for="ays_see_result_show">
4321 <?= __('See results', "poll-maker"); ?>
4322 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4323 title="<p style='margin-bottom:3px;'><?php echo __( '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" ); ?>
4324 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'After clicking on the button:', "poll-maker" ); ?></strong> <?php echo __( '- It will show the results after clicking on the See Results button.' , "poll-maker" ); ?></p>
4325 <p style='padding-left:10px;margin-bottom:3px;'><strong><?php echo __( 'Directly:', "poll-maker" ); ?></strong><?php echo __( ' - It will show the results immediately.', "poll-maker" ); ?></p>">
4326 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4327 </a>
4328 </label>
4329 </div>
4330 <div class="col-sm-9">
4331 <div style="margin-bottom: 10px;">
4332 <input type="checkbox" id="ays_see_result_show" name="ays_see_result_show" class="ays_poll_show_hide_button" value="on" <?php echo $poll_see_result_button; ?>>
4333 </div>
4334 <div class="col-sm-9 ays-poll-sel-fields p-0 <?php echo $poll_see_result_button_cont; ?>" id="ays_poll_show_hide_button" >
4335 <div class="ays-poll-check-box mr-2">
4336 <input type="radio" id="ays_see_result_button_show" name="ays_poll_see_result_show" class="ays_poll_show_hide_button" value="ays_see_result_button" <?php echo $poll_see_result_botton_show?>>
4337 <label for="ays_see_result_button_show" class="form-check-label"><?= __('After clicking on the button', "poll-maker"); ?></label>
4338 </div>
4339 <div class="ays-poll-check-box mr-2">
4340 <input type="radio" id="ays_see_result_button_hide" name="ays_poll_see_result_show" class="ays_poll_show_hide_button" value="ays_see_result_immediately" <?php echo $poll_see_result_immediately?>>
4341 <label for="ays_see_result_button_hide" class="form-check-label"><?= __('Directly', "poll-maker"); ?></label>
4342 </div>
4343 </div>
4344 </div>
4345 </div>
4346 <hr>
4347 <div class="form-group row">
4348 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4349 <div class="pro_features" style="justify-content:flex-end;">
4350 </div>
4351 <div class="form-group row d-flex">
4352 <div class="col-sm-3">
4353 <label for="ays_attempts_count">
4354 <?php echo __('Attempts count', "poll-maker")?>
4355 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the count of the attempts per user for passing the poll.', "poll-maker")?>">
4356 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4357 </a>
4358 </label>
4359 </div>
4360 <div class="col-sm-9">
4361 <input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input">
4362 </div>
4363 </div>
4364 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4365 <div class="ays-poll-new-upgrade-button-box">
4366 <div>
4367 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4368 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4369 </div>
4370 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4371 </div>
4372 </a>
4373 </div>
4374 </div>
4375 </div>
4376 </div>
4377 </div><!-- Maximum number of attempts per user -->
4378 <hr/>
4379 <div class="form-group row ays_toggle_parent">
4380 <div class="col-sm-3">
4381 <label for="ays_enable_logged_users">
4382 <?= __('Only for logged in users', "poll-maker"); ?>
4383 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4384 title="<?= __('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4385 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4386 </a>
4387 </label>
4388 </div>
4389 <div class="col-sm-1">
4390 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4391 value="on" <?= $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4392 </div>
4393 <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?= $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4394 <div class="form-group row">
4395 <div class="col-sm-3">
4396 <label for="ays_logged_in_message">
4397 <?= __('Message', "poll-maker"); ?>
4398 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4399 title="<?= __('Write the message for unauthorized users.', "poll-maker"); ?>">
4400 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4401 </a>
4402 </label>
4403 </div>
4404 <div class="col-sm-9">
4405 <?php
4406 $content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message'];
4407 $editor_id = 'ays_logged_in_message';
4408 $settings = array(
4409 'editor_height' => $poll_wp_editor_height,
4410 'textarea_name' => 'ays_enable_logged_users_message',
4411 'editor_class' => 'ays-textarea',
4412 'media_elements' => false
4413 );
4414 wp_editor($content, $editor_id, $settings);
4415 ?>
4416 </div>
4417 </div>
4418 <hr/>
4419 <div class="form-group row">
4420 <div class="col-sm-3">
4421 <label for="ays_show_login_form">
4422 <?php echo __('Show Login form', "poll-maker")?>
4423 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable to show the login form.', "poll-maker")?>">
4424 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4425 </a>
4426 </label>
4427 </div>
4428 <div class="col-sm-9">
4429 <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' : ''; ?>/>
4430 </div>
4431 </div>
4432 </div>
4433 </div> <!-- Only for logged in users -->
4434 <hr/>
4435 <div class="form-group row ays_toggle_parent">
4436 <div class="col-sm-3">
4437 <label for="ays_enable_restriction_pass">
4438 <?= __('Only for selected user role', "poll-maker"); ?>
4439 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4440 title="<?= __('After enabling this option, only the user roles mentioned in the list will be able to pass the poll.', "poll-maker"); ?>">
4441 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4442 </a>
4443 </label>
4444 </div>
4445 <div class="col-sm-1">
4446 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4447 value="on" <?= (isset($options['enable_restriction_pass']) &&
4448 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4449 </div>
4450 <div class="if-users-roles col-sm-8 ays_divider_left ays_toggle_target" style="<?= (isset($options['enable_restriction_pass']) && $options['enable_restriction_pass'] == 1) ? '' : 'display: none;'; ?>">
4451 <div class="form-group row">
4452 <div class="col-sm-3">
4453 <label for="ays_users_roles">
4454 <?= __('User role', "poll-maker"); ?></label>
4455 </div>
4456 <div class="col-sm-9">
4457 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4458 <?php
4459 foreach ($ays_users_roles as $key => $user_role) {
4460 $selected_role = "";
4461 if(is_array($users_role)){
4462 if(in_array($user_role['name'], $users_role)){
4463 $selected_role = 'selected';
4464 }else{
4465 $selected_role = '';
4466 }
4467 }else{
4468 if($users_role == $user_role['name']){
4469 $selected_role = 'selected';
4470 }else{
4471 $selected_role = '';
4472 }
4473 }
4474 echo "<option value='" . $user_role['name'] . "' " . $selected_role . ">" . $user_role['name'] . "</option>";
4475 }
4476 ?>
4477 </select>
4478 </div>
4479 </div>
4480 <hr>
4481 <div class="form-group row">
4482 <div class="col-sm-3">
4483 <label for="restriction_pass_message">
4484 <?= __('Message', "poll-maker"); ?>
4485 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4486 title="<?= __('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4487 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4488 </a>
4489 </label>
4490 </div>
4491 <div class="col-sm-9">
4492 <?php
4493 $content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']);
4494 $editor_id = 'restriction_pass_message';
4495 $settings = array(
4496 'editor_height' => $poll_wp_editor_height,
4497 'textarea_name' => 'restriction_pass_message',
4498 'editor_class' => 'ays-textarea',
4499 'media_elements' => false
4500 );
4501 wp_editor($content, $editor_id, $settings);
4502 ?>
4503 </div>
4504 </div>
4505 </div>
4506 </div> <!-- Only for selected user role -->
4507 <hr>
4508 <div class="form-group row ays_toggle_parent">
4509 <div class="col-sm-3">
4510 <label for="ays_poll_enable_password">
4511 <?php echo __('Password for passing Poll', "poll-maker")?>
4512 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose a password for users to pass the poll.' , "poll-maker")?>">
4513 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4514 </a>
4515 </label>
4516 </div>
4517 <div class="col-sm-1">
4518 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password"
4519 name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>>
4520 </div>
4521 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4522 <div class="form-group row">
4523 <div class="col-sm-3">
4524 <label for="ays_poll_password">
4525 <?php echo __('Password' , "poll-maker")?>
4526 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.' , "poll-maker")?>">
4527 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4528 </a>
4529 </label>
4530 </div>
4531 <div class="col-sm-9">
4532 <input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>">
4533 </div>
4534 </div>
4535 <hr>
4536 <div class="form-group row">
4537 <div class="col-sm-3">
4538 <label for="ays_poll_enable_password_visibility">
4539 <?php echo __('Enable toggle password visibility', "poll-maker"); ?>
4540 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Tick the option, and it will let you enable and disable password visibility in a password input field.', "poll-maker"); ?>">
4541 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4542 </a>
4543 </label>
4544 </div>
4545 <div class="col-sm-9">
4546 <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' : ''; ?>/>
4547 </div>
4548 </div>
4549 <hr>
4550 <div class="form-group row">
4551 <div class="col-sm-3">
4552 <label for="ays_poll_password">
4553 <?php echo __('Message', "poll-maker")?>
4554 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.', "poll-maker")?>">
4555 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4556 </a>
4557 </label>
4558 </div>
4559
4560 <div class="col-sm-9">
4561 <?php
4562 $content = $poll_password_message;
4563 $editor_id = 'ays-poll-password-message';
4564 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
4565 wp_editor($content, $editor_id, $settings);
4566 ?>
4567 </div>
4568 </div>
4569 </div>
4570 </div><!-- Password for passing Poll PRO Feautre-->
4571 <hr>
4572 <div class="form-group row">
4573 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4574 <div class="pro_features" style="justify-content:flex-end;">
4575 </div>
4576 <div class="form-group row ays_toggle_parent">
4577 <div class="col-sm-3">
4578 <label for="ays_enable_tackers_count">
4579 <?php echo __('Limitation count of takers', "poll-maker")?>
4580 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('You can choose how many users can pass the poll.', "poll-maker")?>">
4581 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4582 </a>
4583 </label>
4584 </div>
4585 <div class="col-sm-1">
4586 <input type="checkbox" class="ays-enable-timer1"
4587 name="ays_enable_tackers_count" value="on">
4588 </div>
4589 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4590 <div class="form-group row">
4591 <div class="col-sm-3">
4592 <label for="ays_tackers_count">
4593 <?php echo __('Count', "poll-maker")?>
4594 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The number of users who can pass the poll.', "poll-maker")?>">
4595 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4596 </a>
4597 </label>
4598 </div>
4599 <div class="col-sm-9">
4600 <input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input"
4601 >
4602 </div>
4603 </div>
4604 </div>
4605 </div>
4606 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4607 <div class="ays-poll-new-upgrade-button-box">
4608 <div>
4609 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4610 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4611 </div>
4612 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4613 </div>
4614 </a>
4615 </div>
4616 </div><!-- Limitation count of takers Poll PRO Feautre-->
4617 <hr>
4618 <div class="form-group row">
4619 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4620 <div class="pro_features" style="justify-content:flex-end;">
4621 </div>
4622 <div class="form-group row ays_toggle_parent">
4623 <div class="col-sm-3">
4624 <label for="ays_enable_vote_limitation">
4625 <?php echo __('Allow to vote once per session', "poll-maker")?>
4626 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('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")?>">
4627 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4628 </a>
4629 </label>
4630 </div>
4631 <div class="col-sm-1">
4632 <input type="checkbox" class="ays-enable-timer1"
4633 name="ays_enable_vote_limitation" value="on" >
4634 </div>
4635 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4636 <div class="form-group row">
4637 <div class="col-sm-3">
4638 <label for="ays_vote_limitation">
4639 <?php echo __('Session Period', "poll-maker")?>
4640 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Specify the time for one session.', "poll-maker")?>">
4641 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4642 </a>
4643 </label>
4644 </div>
4645 <div class="col-sm-7">
4646 <input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input">
4647
4648 </div>
4649 <div class="col-sm-2 ays_vote_limitation_time_period_box">
4650 <select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period">
4651 <option>Minute(s)
4652 </option>
4653 </select>
4654 </div>
4655 </div>
4656 <div class="form-group row d-flex w-100">
4657 <div class="col-sm-3">
4658 <label for="">
4659 <?= __('Message', "poll-maker"); ?>
4660 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4661 title="<?= __('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"); ?>">
4662 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4663 </a>
4664 </label>
4665 </div>
4666 <div class="col-sm-9">
4667 <?php
4668 $editor_id = 'vote_limit_message';
4669 $settings = array(
4670 'editor_height' => 100,
4671 'textarea_name' => 'vote_limit_message',
4672 'editor_class' => 'ays-textarea',
4673 'media_elements' => false
4674 );
4675 wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings);
4676 ?>
4677 </div>
4678 </div>
4679 </div>
4680 </div>
4681 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4682 <div class="ays-poll-new-upgrade-button-box">
4683 <div>
4684 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4685 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4686 </div>
4687 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4688 </div>
4689 </a>
4690 </div>
4691 </div> <!-- Allow to vote once per session PRO Feautre-->
4692 <hr>
4693 <div class="form-group row">
4694 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4695 <div class="pro_features" style="justify-content:flex-end;">
4696 </div>
4697 <div class="form-group row ays_toggle_parent">
4698 <div class="col-sm-3">
4699 <label for="enable_limit_by_country">
4700 <?php echo __('Limit by country', "poll-maker")?>
4701 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __(' After enabling this option, the given poll will not be available in the selected country.', "poll-maker")?>">
4702 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4703 </a>
4704 </label>
4705 </div>
4706 <div class="col-sm-1">
4707 <input type="checkbox" class="ays-enable-timer1"/>
4708 </div>
4709 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4710 <select class="ays-text-input ays-text-input-short" style="width: 15vw;">
4711 <option>Andorra</option>
4712 </select>
4713 </div>
4714 </div>
4715 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4716 <div class="ays-poll-new-upgrade-button-box">
4717 <div>
4718 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4719 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4720 </div>
4721 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4722 </div>
4723 </a>
4724 </div>
4725 </div> <!-- Limit by country PRO Feautre -->
4726 <hr>
4727 </div>
4728 </div>
4729 </div>
4730 <div id="tab5" class="ays-poll-tab-content <?= $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
4731 <div class="ays-poll-accordion-options-main-container">
4732 <div class="ays-poll-accordion-header">
4733 <?php echo $poll_acordion_svg_html; ?>
4734 <p class="ays-subtitle"><?= __('User Data Settings', "poll-maker"); ?></p>
4735 </div>
4736 <hr class="ays-poll-bolder-hr"/>
4737 <div class="ays-poll-accordion-body">
4738 <div class="form-group row">
4739 <div class="col-sm-3">
4740 <label>
4741 <?= __('Information form title', "poll-maker"); ?>
4742 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4743 title="<?= __("Write the title of the Information Form which will be shown at the top of the Form Fields.", "poll-maker"); ?>">
4744 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4745 </a>
4746 </label>
4747 </div>
4748 <div class="col-sm-9 ays_divider_left">
4749 <?php
4750 $content = stripslashes($options['info_form_title']);
4751 $editor_id = 'ays-poll-info-form-text';
4752 $settings = array(
4753 'editor_height' => $poll_wp_editor_height,
4754 'textarea_name' => 'ays-poll-info-form-text',
4755 'editor_class' => 'ays-textarea',
4756 'media_elements' => false
4757 );
4758 wp_editor($content, $editor_id, $settings);
4759 ?>
4760 </div>
4761 </div>
4762 <hr>
4763 <div class="form-group row ays_toggle_parent">
4764 <div class="col-sm-2">
4765 <label for='ays_poll_info_form'>
4766 <?= __('Enable Information Form', "poll-maker"); ?>
4767 <a class="ays_help" data-toggle="tooltip"
4768 data-placement="top"
4769 title="<?= __("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"); ?>">
4770 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4771 </a>
4772 </label>
4773 </div>
4774 <div class="col-sm-1">
4775 <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' : ''; ?>>
4776 </div>
4777 <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' : ''; ?>">
4778 <div class="col-sm-7">
4779 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
4780 <?php echo __('Allow collecting information of logged in users', "poll-maker"); ?>
4781 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('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")?>">
4782 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4783 </a>
4784 </label>
4785 <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; ?>>
4786 </div> <!-- Allow collecting information of logged in users -->
4787 </div>
4788 <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;"; ?>">
4789 <div>
4790 <label>
4791 <?php echo __('Form Fields', "poll-maker"); ?>
4792 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select which fields the user should fill out.", "poll-maker"); ?>">
4793 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4794 </a>
4795 </label>
4796 <hr>
4797 </div>
4798 <div>
4799 <div class="ays-poll-sel-fields d-flex">
4800 <?php foreach ( $all_fields as $field ): ?>
4801 <div class="ays-poll-check-box mr-2">
4802 <input type="checkbox" name="ays-poll-form-fields[]" value="<?= $field['slug']; ?>" id="ays-poll-form-field-<?= $field['slug']; ?>"
4803 <?= (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
4804 <label for="ays-poll-form-field-<?= $field['slug']; ?>">
4805 <?= ucfirst($field['name']); ?></label>
4806 </div>
4807 <?php endforeach; ?>
4808 </div>
4809 <hr>
4810 </div>
4811 <div>
4812 <label>
4813 <?= __('Required Fields', "poll-maker"); ?>
4814 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4815 title="<?= __("Select which fields are required.", "poll-maker"); ?>">
4816 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4817 </a>
4818 </label>
4819 <hr>
4820 </div>
4821 <div>
4822 <div class="ays-poll-req-fields d-flex">
4823 <?php foreach ( $all_fields as $field ): ?>
4824 <div class="ays-poll-check-box mr-2"
4825 id="ays-poll-box-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'],
4826 $fields) === false) ? "style='display:none'" : ""; ?>>
4827 <input type="checkbox" name="ays-poll-form-required-fields[]"
4828 value="<?= $field['slug']; ?>"
4829 id="ays-poll-form-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'],
4830 $required_fields) !== false) ? "checked" : ""; ?>>
4831 <label for="ays-poll-form-rfield-<?= $field['slug']; ?>">
4832 <?= ucfirst($field['name']); ?></label>
4833 </div>
4834 <?php endforeach; ?>
4835 </div>
4836 </div>
4837 </div>
4838 <hr>
4839 </div>
4840 <hr>
4841 <div class="form-group row">
4842 <div class="col-sm-3">
4843 <label for="ays_poll_autofill_user_data">
4844 <?php echo __('Autofill logged-in user data', "poll-maker"); ?>
4845 <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"); ?>">
4846 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4847 </a>
4848 </label>
4849 </div>
4850 <div class="col-sm-9">
4851 <div class="information_form_settings">
4852 <input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>>
4853 </div>
4854 </div>
4855 </div>
4856 <hr>
4857 <div class="form-group row">
4858 <div class="col-sm-3">
4859 <label for="ays_poll_display_fields_labels">
4860 <?php echo __('Display form fields with labels', "poll-maker"); ?>
4861 <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"); ?>">
4862 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4863 </a>
4864 </label>
4865 </div>
4866 <div class="col-sm-9">
4867 <div class="information_form_settings">
4868 <input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>>
4869 </div>
4870 </div>
4871 </div>
4872 <hr>
4873 <div class="form-group row">
4874 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4875 <div class="pro_features" style="justify-content:flex-end;">
4876 </div>
4877 <div class="form-group row">
4878 <div class="col-sm-3">
4879 <label>
4880 <?= __('Add custom fields', "poll-maker"); ?>
4881 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?= __("You can create custom fields with the following types: text, textarea, number, telephone, date, e-mail, URL, color, checkbox.", "poll-maker"); ?>">
4882 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4883 </a>
4884 </label>
4885 </div>
4886 <div class="col-sm-9">
4887 <blockquote>
4888 <?= __("For creating custom fields click ", "poll-maker"); ?>
4889 <a href="?page=<?= $this->plugin_name; ?>-poll-attributes"><?= __("here", "poll-maker"); ?></a>
4890 </blockquote>
4891 </div>
4892 </div>
4893 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4894 <div class="ays-poll-new-upgrade-button-box">
4895 <div>
4896 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4897 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4898 </div>
4899 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4900 </div>
4901 </a>
4902 </div>
4903 </div>
4904 <hr>
4905 </div>
4906 </div>
4907 </div>
4908 <div id="tab6" class="ays-poll-tab-content <?= $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
4909 <div class="ays-poll-accordion-options-main-container">
4910 <div class="ays-poll-accordion-header">
4911 <?php echo $poll_acordion_svg_html; ?>
4912 <p class="ays-subtitle"><?= __('Email settings', "poll-maker"); ?></p>
4913 </div>
4914 <hr class="ays-poll-bolder-hr"/>
4915 <div class="ays-poll-accordion-body">
4916 <div class="form-group row ays_toggle_parent">
4917 <div class="col-sm-3">
4918 <label for="ays_notify_by_email_on">
4919 <?= __('Results notification by email', "poll-maker"); ?>
4920 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4921 title="<?= __('If the option is enabled, the admin(or your provided email) will receive an email notification about votes at each time.', "poll-maker"); ?>">
4922 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4923 </a>
4924 </label>
4925 </div>
4926 <div class="col-sm-1">
4927 <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' : ''; ?> />
4928 </div>
4929 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
4930 <div class="row ays_divider_left">
4931 <div class="col-sm-3">
4932 <label for="ays_notify_email">
4933 <?php echo __('Email address', "poll-maker"); ?>
4934 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4935 title="<?= __('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
4936 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4937 </a>
4938 </label>
4939 </div>
4940 <div class="col-sm-9">
4941 <input type="email" class="ays-text-input" name="ays_notify_email" id="ays_notify_email" value="<?= isset($options['notify_email']) && !empty($options['notify_email']) ? $options['notify_email'] : get_option('admin_email'); ?>" size="30">
4942 </div>
4943 </div>
4944 </div>
4945 </div>
4946 <hr>
4947 <div class="form-group row">
4948 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4949 <div class="pro_features pro_features_popup">
4950 <div class="pro-features-popup-conteiner">
4951 <div class="pro-features-popup-title">
4952 <?php echo __("Send Mail to User", "poll-maker"); ?>
4953 </div>
4954 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
4955 <p>
4956 <?php echo __("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"); ?>
4957 </p>
4958 <p>
4959 <?php echo __("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"); ?>
4960 </p>
4961 </div>
4962 <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">
4963 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
4964 </div>
4965 </div>
4966 </div>
4967 <div class="pro_features" style="justify-content:flex-end;">
4968 </div>
4969 <div class="form-group row" >
4970 <div class="col-sm-3">
4971 <label for="ays_enable_mail_user">
4972 <?= __('Send Mail to User', "poll-maker"); ?>
4973 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4974 title="<?= __('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
4975 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4976 </a>
4977 </label>
4978 </div>
4979 <div class="col-sm-1">
4980 <input type="checkbox" name="ays_enable_mail_user" value="on" />
4981 </div>
4982 <div class="col-sm-8 if-enable-email_note">
4983
4984 </div>
4985 </div>
4986 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4987 <div class="ays-poll-new-upgrade-button-box">
4988 <div>
4989 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4990 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4991 </div>
4992 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4993 </div>
4994 </a>
4995 <div class="ays-poll-new-watch-video-button-box">
4996 <div>
4997 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
4998 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
4999 </div>
5000 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
5001 </div>
5002 </div>
5003 </div>
5004 <hr>
5005 <div class="form-group row">
5006 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5007 <div class="pro_features" style="justify-content:flex-end;">
5008 </div>
5009 <div class="form-group row">
5010 <div class="col-sm-4">
5011 <label>
5012 <?php echo __('Email configuration', "poll-maker")?>
5013 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Set up the attributes of the sending email.', "poll-maker"); ?>">
5014 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5015 </a>
5016 </label>
5017 </div>
5018 <div class="col-sm-8 ays_divider_left">
5019 <div class="form-group row">
5020 <div class="col-sm-3">
5021 <label for="ays_poll_email_configuration_from_email">
5022 <?php echo __('From email', "poll-maker")?>
5023 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5024 /* translators: 1: opening em tag, 2: closing em tag */
5025 echo htmlspecialchars( sprintf( __("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"),
5026 '<em>',
5027 '</em>'
5028 ) );
5029 ?>">
5030 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5031 </a>
5032 </label>
5033 </div>
5034 <div class="col-sm-9">
5035 <input type="text" class="ays-text-input" />
5036 </div>
5037 </div> <!-- From email -->
5038 <hr/>
5039 <div class="form-group row">
5040 <div class="col-sm-3">
5041 <label for="ays_poll_email_configuration_from_name">
5042 <?php echo __('From name', "poll-maker")?>
5043 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5044 /* translators: 1: opening em tag, 2: closing em tag */
5045 echo htmlspecialchars( sprintf( __("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"),
5046 '<em>',
5047 '</em>'
5048 ) );
5049 ?>">
5050 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5051 </a>
5052 </label>
5053 </div>
5054 <div class="col-sm-9">
5055 <input type="text" class="ays-text-input" >
5056 </div>
5057 </div><!-- From name -->
5058 <hr/>
5059 <div class="form-group row">
5060 <div class="col-sm-3">
5061 <label for="ays_poll_email_configuration_from_subject">
5062 <?php echo __('Subject', "poll-maker")?>
5063 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __("Fill in the subject field of the message. If you don't, it will take the poll title.", "poll-maker"); ?>">
5064 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5065 </a>
5066 </label>
5067 </div>
5068 <div class="col-sm-9">
5069 <input type="text" class="ays-text-input">
5070 </div>
5071 </div> <!-- Subject -->
5072 <hr/>
5073 <div class="form-group row">
5074 <div class="col-sm-3">
5075 <label for="ays_poll_email_configuration_replyto_email">
5076 <?php echo __('Reply to email', "poll-maker")?>
5077 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __("Specify to which email the poll taker can reply. If you leave the field blank, the email address won't be specified.", "poll-maker"); ?>">
5078 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5079 </a>
5080 </label>
5081 </div>
5082 <div class="col-sm-9">
5083 <input type="text" class="ays-text-input">
5084 </div>
5085 </div> <!-- Reply to email -->
5086 <hr/>
5087 <div class="form-group row">
5088 <div class="col-sm-3">
5089 <label for="ays_poll_email_configuration_replyto_name">
5090 <?php echo __('Reply to name', "poll-maker")?>
5091 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __("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"); ?>">
5092 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5093 </a>
5094 </label>
5095 </div>
5096 <div class="col-sm-9">
5097 <input type="text" class="ays-text-input">
5098 </div>
5099 </div> <!-- Reply to name -->
5100 </div>
5101 </div> <!-- Email Configuration -->
5102 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5103 <div class="ays-poll-new-upgrade-button-box">
5104 <div>
5105 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5106 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5107 </div>
5108 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5109 </div>
5110 </a>
5111 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5112 <div class="ays-poll-center-big-main-button-box">
5113 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5114 <div class="ays-poll-center-new-big-upgrade-button">
5115 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
5116 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5117 <?php echo __("Upgrade", "poll-maker"); ?>
5118 </div>
5119 </a>
5120 </div>
5121 </div>
5122 </div>
5123 </div>
5124 <hr>
5125 </div>
5126 </div>
5127 </div>
5128 <div id="tab7" class="ays-poll-tab-content <?= $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5129 <div class="ays-poll-accordion-options-main-container">
5130 <div class="ays-poll-accordion-header">
5131 <?php echo $poll_acordion_svg_html; ?>
5132 <p class="ays-subtitle"><?= __('Integrations settings', "poll-maker"); ?></p>
5133 </div>
5134 <hr class="ays-poll-bolder-hr"/>
5135 <div class="ays-poll-accordion-body">
5136 <fieldset class="ays_poll_settings_integration_container">
5137 <legend>
5138 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mailchimp_logo.png" alt="">
5139 <h5><?php echo __('MailChimp Settings', "poll-maker")?></h5>
5140 </legend>
5141 <?php
5142 if(count($mailchimp) > 0):
5143 ?>
5144 <?php
5145 if($mailchimp_username == "" || $mailchimp_api_key == ""):
5146 ?>
5147 <blockquote class="error_message">
5148 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5149 <?php echo (
5150 /* translators: anchor tag */
5151 sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5152 "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>"
5153 )
5154 );
5155 ?>
5156 </blockquote>
5157 <?php
5158 else:
5159 ?>
5160 <div class="form-group row">
5161 <div class="col-sm-4">
5162 <label for="ays_enable_mailchimp">
5163 <?php echo __('Enable MailChimp', "poll-maker")?>
5164 </label>
5165 </div>
5166 <div class="col-sm-1">
5167 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
5168 name="ays_enable_mailchimp"
5169 value="on"
5170 <?php
5171 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5172 echo "disabled";
5173 }else{
5174 echo ($enable_mailchimp == 'on') ? 'checked' : '';
5175 }
5176 ?>/>
5177 </div>
5178 </div>
5179 <hr>
5180 <div class="form-group row">
5181 <div class="col-sm-4">
5182 <label for="ays_mailchimp_list">
5183 <?php echo __('MailChimp list', "poll-maker")?>
5184 </label>
5185 </div>
5186 <div class="col-sm-8">
5187 <?php if(is_array($mailchimp_select)): ?>
5188 <select name="ays_mailchimp_list" id="ays_mailchimp_list"
5189 <?php
5190 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5191 echo 'disabled';
5192 }
5193 ?>>
5194 <option value="" disabled selected>Select list</option>
5195 <?php foreach($mailchimp_select as $mlist): ?>
5196 <option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?>
5197 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5198 <?php endforeach; ?>
5199 </select>
5200 <?php else: ?>
5201 <span><?php echo $mailchimp_select; ?></span>
5202 <?php endif; ?>
5203 </div>
5204 </div>
5205 <?php
5206 endif;
5207 ?>
5208 <?php
5209 else:
5210 ?>
5211 <blockquote class="error_message">
5212 <?php echo (
5213 /* translators: anchor tag */
5214 sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5215 "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>"
5216 )
5217 );
5218 ?>
5219 </blockquote>
5220 <?php
5221 endif;
5222 ?>
5223 </fieldset><!-- MailChimp Settings -->
5224 <hr/>
5225 <fieldset class="ays_poll_settings_integration_container">
5226 <legend>
5227 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/campaignmonitor_logo.png" alt="">
5228 <h5><?php echo __('Campaign Monitor Settings', "poll-maker") ?></h5>
5229 </legend>
5230 <div class="form-group row" style="margin: 0px;">
5231 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5232 <div class="pro_features" style="justify-content:flex-end;">
5233 </div>
5234 <div class="form-group row">
5235 <div class="col-sm-4">
5236 <label for="ays_enable_monitor">
5237 <?php echo __('Enable Campaign Monitor', "poll-maker") ?>
5238 </label>
5239 </div>
5240 <div class="col-sm-8">
5241 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
5242 </div>
5243 </div>
5244 <hr>
5245 <div class="form-group row">
5246 <div class="col-sm-4">
5247 <label for="ays_monitor_list">
5248 <?php echo __('Campaign Monitor list', "poll-maker") ?>
5249 </label>
5250 </div>
5251 <div class="col-sm-8">
5252 <select name="ays_monitor_list" id="ays_monitor_list">
5253 <option value="" disabled selected><?= __("Select List", "poll-maker") ?></option>
5254 </select>
5255 </div>
5256 </div>
5257 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5258 <div class="ays-poll-new-upgrade-button-box">
5259 <div>
5260 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5261 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5262 </div>
5263 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5264 </div>
5265 </a>
5266 </div>
5267 </div>
5268 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5269 <hr/>
5270 <fieldset class="ays_poll_settings_integration_container">
5271 <legend>
5272 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/zapier_logo.png" alt="">
5273 <h5><?php echo __('Zapier Integration Settings', "poll-maker") ?></h5>
5274 </legend>
5275 <div class="form-group row" style="margin: 0px;">
5276 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5277 <div class="pro_features" style="justify-content:flex-end;">
5278 </div>
5279 <div class="form-group row">
5280 <div class="col-sm-4">
5281 <label for="ays_enable_zapier">
5282 <?php echo __('Enable Zapier Integration', "poll-maker") ?>
5283 </label>
5284 </div>
5285 <div class="col-sm-1">
5286 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
5287 </div>
5288 <div class="col-sm-3">
5289 <button type="button"
5290 id="testZapier"
5291 class="btn btn-outline-secondary">
5292 <?= __("Send test data", "poll-maker") ?>
5293 </button>
5294 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5295 title="<?= __('We will send you a test data, and you can catch it in your ZAP for configure it.', "poll-maker") ?>">
5296 <i class="ays_fa ays_fa_info_circle"></i>
5297 </a>
5298 </div>
5299 </div>
5300 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5301 <div class="ays-poll-new-upgrade-button-box">
5302 <div>
5303 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5304 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5305 </div>
5306 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5307 </div>
5308 </a>
5309 </div>
5310 </div>
5311 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5312 <hr/>
5313 <fieldset class="ays_poll_settings_integration_container">
5314 <legend>
5315 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/activecampaign_logo.png" alt="">
5316 <h5><?php echo __('Active Campaign Settings', "poll-maker") ?></h5>
5317 </legend>
5318 <div class="form-group row" style="margin: 0px;">
5319 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5320 <div class="pro_features" style="justify-content:flex-end;">
5321 </div>
5322 <div class="form-group row">
5323 <div class="col-sm-4">
5324 <label for="ays_enable_active_camp">
5325 <?php echo __('Enable ActiveCampaign', "poll-maker") ?>
5326 </label>
5327 </div>
5328 <div class="col-sm-1">
5329 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
5330 </div>
5331 </div>
5332 <hr>
5333 <div class="form-group row">
5334 <div class="col-sm-4">
5335 <label>
5336 <?php echo __('ActiveCampaign list', "poll-maker") ?>
5337 </label>
5338 </div>
5339 <div class="col-sm-8">
5340 <select name="ays_active_camp_list" id="ays_active_camp_list">
5341 <option value="" disabled
5342 selected><?= __("Select List", "poll-maker") ?></option>
5343 <option value=""><?= __("Just create contact", "poll-maker") ?></option>
5344 </select>
5345 </div>
5346 </div>
5347 <hr>
5348 <div class="form-group row">
5349 <div class="col-sm-4">
5350 <label>
5351 <?php echo __('ActiveCampaign automation', "poll-maker") ?>
5352 </label>
5353 </div>
5354 <div class="col-sm-8">
5355 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5356 <option value="" disabled
5357 selected><?= __("Select List", "poll-maker") ?></option>
5358 <option value=""><?= __("Just create contact", "poll-maker") ?></option>
5359 </select>
5360 </div>
5361 </div>
5362 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5363 <div class="ays-poll-new-upgrade-button-box">
5364 <div>
5365 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5366 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5367 </div>
5368 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5369 </div>
5370 </a>
5371 </div>
5372 </div>
5373 </fieldset><!-- Active Campaign Settings PRO Feature -->
5374 <hr/>
5375 <fieldset class="ays_poll_settings_integration_container">
5376 <legend>
5377 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/slack_logo.png" alt="">
5378 <h5><?php echo __('Slack Settings', "poll-maker") ?></h5>
5379 </legend>
5380 <div class="form-group row" style="margin: 0px;">
5381 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5382 <div class="pro_features" style="justify-content:flex-end;">
5383 </div>
5384 <div class="form-group row">
5385 <div class="col-sm-4">
5386 <label for="ays_enable_slack">
5387 <?php echo __('Enable Slack integration', "poll-maker") ?>
5388 </label>
5389 </div>
5390 <div class="col-sm-1">
5391 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
5392 </div>
5393 </div>
5394 <hr>
5395 <div class="form-group row">
5396 <div class="col-sm-4">
5397 <label>
5398 <?php echo __('Slack conversation', "poll-maker") ?>
5399 </label>
5400 </div>
5401 <div class="col-sm-8">
5402 <select id="ays_slack_conversation">
5403 <option value="" disabled
5404 selected><?= __("Select Channel", "poll-maker") ?></option>
5405 </select>
5406 </div>
5407 </div>
5408 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5409 <div class="ays-poll-new-upgrade-button-box">
5410 <div>
5411 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5412 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5413 </div>
5414 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5415 </div>
5416 </a>
5417 </div>
5418 </div>
5419 </fieldset> <!-- Slack Settings PRO Feature -->
5420 <hr>
5421 <fieldset class="ays_poll_settings_integration_container">
5422 <legend>
5423 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/sheets_logo.png" alt="">
5424 <h5><?php echo __('Google Sheet Settings', "poll-maker") ?></h5>
5425 </legend>
5426 <div class="form-group row" style="margin: 0px;">
5427 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5428 <div class="pro_features" style="justify-content:flex-end;">
5429 </div>
5430 <div class="form-group row">
5431 <div class="col-sm-4">
5432 <label for="ays_poll_enable_google">
5433 <?php echo __('Enable Google integration', "poll-maker") ?>
5434 </label>
5435 </div>
5436 <div class="col-sm-1">
5437 <input type="checkbox" class="ays-enable-timer1"
5438 value="on">
5439 </div>
5440 </div>
5441 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5442 <div class="ays-poll-new-upgrade-button-box">
5443 <div>
5444 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5445 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5446 </div>
5447 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5448 </div>
5449 </a>
5450 </div>
5451 </div>
5452 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5453 <hr>
5454 <fieldset class="ays_poll_settings_integration_container">
5455 <legend>
5456 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5457 <h5><?php echo __('Mad Mimi', "poll-maker") ?></h5>
5458 </legend>
5459 <div class="form-group row" style="margin: 0px;">
5460 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5461 <div class="pro_features" style="justify-content:flex-end;">
5462 </div>
5463 <hr/>
5464 <div class="form-group row">
5465 <div class="col-sm-4">
5466 <label for="ays_poll_enable_mad_mimi">
5467 <?php echo __('Enable Mad Mimi', "poll-maker") ?>
5468 </label>
5469 </div>
5470 <div class="col-sm-1">
5471 <input type="checkbox" class="ays-enable-timer1">
5472 </div>
5473 </div>
5474 <hr>
5475 <div class="form-group row">
5476 <div class="col-sm-4">
5477 <label>
5478 <?php echo __('Select List', "poll-maker") ?>
5479 </label>
5480 </div>
5481 <div class="col-sm-8">
5482 <?php
5483 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5484 $mad_mimi_select .= "<option value=''>Select list</option>";
5485 $mad_mimi_select .= "</select>";
5486 echo $mad_mimi_select;
5487
5488 ?>
5489 </div>
5490 </div>
5491 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5492 <div class="ays-poll-new-upgrade-button-box">
5493 <div>
5494 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5495 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5496 </div>
5497 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5498 </div>
5499 </a>
5500 </div>
5501 </div>
5502 </fieldset> <!-- Mad Mimi -->
5503 <hr>
5504 <fieldset class="ays_poll_settings_integration_container">
5505 <legend>
5506 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/get_response.png" alt="">
5507 <h5><?php echo __('GetResponse Settings', "poll-maker") ?></h5>
5508 </legend>
5509 <div class="form-group row" style="margin: 0px;">
5510 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5511 <div class="pro_features" style="justify-content:flex-end;">
5512 </div>
5513 <div class="form-group row">
5514 <div class="col-sm-4">
5515 <label for="ays_poll_enable_getResponse">
5516 <?php echo __('Enable GetResponse', "poll-maker") ?>
5517 </label>
5518 </div>
5519 <div class="col-sm-8">
5520 <input type="checkbox"
5521 class="ays-enable-timer1">
5522 </div>
5523 </div>
5524 <hr>
5525 <div class="form-group row">
5526 <div class="col-sm-4">
5527 <label>
5528 <?php echo __('GetResponse List', "poll-maker") ?>
5529 </label>
5530 </div>
5531 <div class="col-sm-8">
5532 <?php
5533 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5534 $mad_mimi_select .= "<option value=''>Select list</option>";
5535 $mad_mimi_select .= "</select>";
5536 echo $mad_mimi_select;
5537
5538 ?>
5539 </div>
5540 </div>
5541 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5542 <div class="ays-poll-new-upgrade-button-box">
5543 <div>
5544 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5545 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5546 </div>
5547 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5548 </div>
5549 </a>
5550 </div>
5551 </div>
5552 </fieldset> <!-- GetResponse Settings -->
5553 <hr>
5554 <fieldset class="ays_poll_settings_integration_container">
5555 <legend>
5556 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/convertkit_logo.png" alt="">
5557 <h5><?php echo __('ConvertKit Settings', "poll-maker")?></h5>
5558 </legend>
5559 <div class="form-group row" style="margin: 0px;">
5560 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5561 <div class="pro_features" style="justify-content:flex-end;">
5562 </div>
5563 <div class="form-group row">
5564 <div class="col-sm-4">
5565 <label for="ays_poll_enable_convertkit">
5566 <?php echo __('Enable ConvertKit', "poll-maker")?>
5567 </label>
5568 </div>
5569 <div class="col-sm-1">
5570 <input type="checkbox" class="ays-enable-timer1"/>
5571 </div>
5572 </div>
5573 <hr>
5574 <div class="form-group row">
5575 <div class="col-sm-4">
5576 <label>
5577 <?php echo __('ConvertKit list', "poll-maker")?>
5578 </label>
5579 </div>
5580 <div class="col-sm-8">
5581 <select id="ays_poll_convertKit_list">
5582 <option value="" disabled selected>Select list</option>
5583 </select>
5584 </div>
5585 </div>
5586 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5587 <div class="ays-poll-new-upgrade-button-box">
5588 <div>
5589 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5590 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5591 </div>
5592 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5593 </div>
5594 </a>
5595 </div>
5596 </div>
5597 </fieldset> <!-- ConvertKit Settings -->
5598 <hr/>
5599 <fieldset class="ays_poll_settings_integration_container">
5600 <legend>
5601 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/klaviyo-logo.png" alt="">
5602 <h5><?php echo __('Klaviyo', "poll-maker") ?></h5>
5603 </legend>
5604 <div class="form-group row" style="margin: 0px;">
5605 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5606 <div class="pro_features" style="justify-content:flex-end;">
5607 </div>
5608 <div class="form-group row">
5609 <div class="col-sm-4">
5610 <label for="ays_poll_enable_klaviyo"><?php echo __('Enable Klaviyo', "poll-maker"); ?></label>
5611 </div>
5612 <div class="col-sm-1">
5613 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
5614 </div>
5615 </div>
5616 <hr>
5617 <div class="form-group row">
5618 <div class="col-sm-4">
5619 <label for="ays_poll_klaviyo_list"><?php echo __('Klaviyo list',"poll-maker") ?></label>
5620 </div>
5621 <div class="col-sm-8">
5622 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
5623 <option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option>
5624 </select>
5625 </div>
5626 </div>
5627 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5628 <div class="ays-poll-new-upgrade-button-box">
5629 <div>
5630 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5631 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5632 </div>
5633 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5634 </div>
5635 </a>
5636 </div>
5637 </div>
5638 </fieldset> <!-- Klaviyo -->
5639 <hr>
5640 <fieldset class="ays_poll_settings_integration_container">
5641 <legend>
5642 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/aweber-logo.png" alt="">
5643 <h5><?php echo __('Aweber', "poll-maker") ?></h5>
5644 </legend>
5645 <div class="form-group row" style="margin: 0px;">
5646 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5647 <div class="pro_features" style="justify-content:flex-end;">
5648 </div>
5649 <div class="form-group row">
5650 <div class="col-sm-4">
5651 <label for="ays_poll_enable_aweber"><?php echo __('Enable Aweber', "poll-maker") ?></label>
5652 </div>
5653 <div class="col-sm-1">
5654 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
5655 </div>
5656 </div>
5657 <hr>
5658 <div class="form-group row">
5659 <div class="col-sm-4">
5660 <label for="ays_poll_aweber_list_id"><?php echo __('Aweber Lists', "poll-maker") ?></label>
5661 </div>
5662 <div class="col-sm-8">
5663 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
5664 <option value='' disabled selected><?php echo __( "Select list", "poll-maker" ) ?></option>
5665 </select>
5666 </div>
5667 </div>
5668 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5669 <div class="ays-poll-new-upgrade-button-box">
5670 <div>
5671 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5672 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5673 </div>
5674 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5675 </div>
5676 </a>
5677 </div>
5678 </div>
5679 </fieldset> <!-- Aweber -->
5680 <hr>
5681 <fieldset class="ays_poll_settings_integration_container">
5682 <legend>
5683 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mail_poet.png" alt="">
5684 <h5><?php echo __('MailPoet', "poll-maker") ?></h5>
5685 </legend>
5686 <div class="form-group row" style="margin:0;">
5687 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5688 <div class="pro_features" style="justify-content:flex-end;">
5689 </div>
5690 <div class="form-group row">
5691 <div class="col-sm-4">
5692 <label for="ays_poll_enable_mailpoet"><?php echo __('Enable MailPoet',"poll-maker"); ?></label>
5693 </div>
5694 <div class="col-sm-1">
5695 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
5696 </div>
5697 </div>
5698 <hr>
5699 <div class="form-group row">
5700 <div class="col-sm-4">
5701 <label for="ays_poll_mailpoet_list"><?php echo __('MailPoet list',"poll-maker") ?></label>
5702 </div>
5703 <div class="col-sm-8">
5704 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
5705 <option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option>
5706 </select>
5707 </div>
5708 </div>
5709 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5710 <div class="ays-poll-new-upgrade-button-box">
5711 <div>
5712 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5713 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5714 </div>
5715 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5716 </div>
5717 </a>
5718 </div>
5719 </div>
5720 </fieldset> <!-- Mailpoet -->
5721 <hr>
5722 </div>
5723 </div>
5724 </div>
5725 <div id="tab8" class="ays-poll-tab-content <?= $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
5726 <div class="ays-poll-accordion-options-main-container">
5727 <div class="ays-poll-accordion-header">
5728 <?php echo $poll_acordion_svg_html; ?>
5729 <p class="ays-subtitle"><?= __('Results Settings', "poll-maker"); ?></p>
5730 </div>
5731 <hr class="ays-poll-bolder-hr"/>
5732 <div class="ays-poll-accordion-body">
5733 <div class="form-group row">
5734 <div class="col-sm-3">
5735 <label for='show-res-percent'>
5736 <?= __('Show answer percent', "poll-maker"); ?>
5737 <a class="ays_help" data-toggle="tooltip"
5738 data-placement="top"
5739 title="<?= __("Enable to show the percentage of each question on the progressbar on the result page of the poll.", "poll-maker"); ?>">
5740 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5741 </a>
5742 </label>
5743 </div>
5744 <div class="col-sm-9">
5745 <input type="checkbox" name="show_res_percent" id="show-res-percent"
5746 value="1" <?= $show_res_percent ? 'checked' : '' ?> >
5747 </div>
5748 </div>
5749 <hr>
5750 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
5751 <div class="col-sm-3">
5752 <label for='ays-poll-hide-results'>
5753 <?= __('Hide results', "poll-maker"); ?>
5754 <a class="ays_help"
5755 data-toggle="tooltip"
5756 data-placement="top"
5757 title="<?= __("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
5758 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5759 </a>
5760 </label>
5761 <p class="ays_poll_small_hint_text_for_message_variables">
5762 <span><?php echo __( "To see all Message Variables " , "poll-maker" ); ?></span>
5763 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here" , "poll-maker" ); ?></a>
5764 </p>
5765 </div>
5766 <div class="col-sm-9 ays_toggle_parent">
5767 <div class="form-group row">
5768
5769 <!-- <div class="col-sm-1"> -->
5770 <div class="col-sm-12">
5771 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
5772 value="hide" <?= isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
5773 </div>
5774 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
5775 <div class="form-group row">
5776 <div class="col-sm-12">
5777 <div>
5778 <label for='ays-poll-hide-results-text'>
5779 <?= __('Message instead of results', "poll-maker"); ?>
5780 <a class="ays_help"
5781 data-toggle="tooltip"
5782 data-placement="top"
5783 title="<?= __("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
5784 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5785 </a>
5786 </label>
5787 </div>
5788 <?php
5789 echo $poll_message_vars_html;
5790 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
5791 $editor_id = 'ays-poll-hide-results-text';
5792 $settings = array(
5793 'editor_height' => $poll_wp_editor_height,
5794 'textarea_name' => 'ays-poll-hide-results-text',
5795 'editor_class' => 'ays-textarea',
5796 'media_elements' => false
5797 );
5798 wp_editor($content, $editor_id, $settings);
5799 ?>
5800 </div>
5801 </div>
5802 </div>
5803 </div>
5804 </div>
5805 </div>
5806 <hr>
5807 <div class="form-group row ays-poll-desc-message-vars-parent">
5808 <div class="col-sm-3">
5809 <label for="ays_poll_result_message">
5810 <?php echo __('Result Message', "poll-maker")?>
5811 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write the message, which will be shown on the result page of the poll.', "poll-maker")?>">
5812 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5813 </a>
5814 </label>
5815 <p class="ays_poll_small_hint_text_for_message_variables">
5816 <span><?php echo __( "To see all Message Variables ", "poll-maker" ); ?></span>
5817 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here", "poll-maker" ); ?></a>
5818 </p>
5819 </div>
5820 <div class="col-sm-9 ays_toggle_parent">
5821 <div class="form-group row">
5822 <div class="col-sm-12">
5823 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
5824 value="hide" <?= isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
5825 </div>
5826 <div class="col-sm-12 if_poll_hide_result_message ays_toggle_target" style="margin-top: 15px; <?= isset($options['hide_result_message']) && $options['hide_result_message'] ? '' : 'display:none;'; ?>">
5827 <?php
5828 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'. __("Thank you!", "poll-maker") .'</p>' : '';
5829 echo $poll_message_vars_html;
5830 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
5831 $editor_id = 'ays_result_message';
5832 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
5833 wp_editor($content, $editor_id, $settings);
5834 ?>
5835 </div>
5836 </div>
5837 </div>
5838 </div>
5839 <hr>
5840 <div class="form-group row">
5841 <div class="col-sm-3">
5842 <label for='ays-poll-result-sort-type'>
5843 <?php echo __('Results sorting', "poll-maker"); ?>
5844 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
5845 echo __("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
5846 "<ul style='list-style-type: circle;padding-left: 20px;'>".
5847 "<li>". __('Ascending – the smallest to largest', "poll-maker") ."</li>".
5848 "<li>". __('Descending – the largest to smallest', "poll-maker") ."</li>".
5849 "<li>". __('None', "poll-maker") ."</li>".
5850 "</ul>";
5851 ?>">
5852 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5853 </a></label>
5854 </div>
5855 <div class="col-sm-9">
5856 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
5857 <option value="none" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
5858 <?= __("None", "poll-maker"); ?>
5859 </option>
5860 <option value="ASC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
5861 <?= __("Ascending", "poll-maker"); ?>
5862 </option>
5863 <option value="DESC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
5864 <?= __("Descending", "poll-maker"); ?>
5865 </option>
5866 </select>
5867 </div>
5868 </div>
5869 <hr>
5870 <div class="form-group row">
5871 <div class="col-sm-3">
5872 <label for='show-votes-count'>
5873 <?= __('Show votes count', "poll-maker"); ?>
5874 <a class="ays_help" data-toggle="tooltip"
5875 data-placement="top"
5876 title="<?= __("Enable to show the total number of votes of each answer on the result page of the poll.", "poll-maker"); ?>">
5877 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5878 </a>
5879 </label>
5880 </div>
5881 <div class="col-sm-9">
5882 <input type="checkbox" name="show_votes_count" id="show-votes-count"
5883 value="1" <?= $showvotescount ? 'checked' : '' ?> >
5884 </div>
5885 </div>
5886 <hr>
5887
5888 <!-- Loading effect start -->
5889
5890 <div class="form-group row">
5891 <div class="col-sm-3">
5892 <label for='ays-poll-load-effect'>
5893 <?= __('Loading effect', "poll-maker"); ?>
5894 <a class="ays_help" data-toggle="tooltip"
5895 data-placement="top"
5896 title="<?= __("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
5897 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5898 </a>
5899 </label>
5900 </div>
5901 <div class="col-sm-3">
5902 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
5903 <option value="load_gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
5904 <?= __("Loading GIF", "poll-maker"); ?>
5905 </option>
5906 <option value="opacity" <?= isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
5907 <?= __("Opacity", "poll-maker"); ?>
5908 </option>
5909 <option value="blur" <?= isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
5910 <?= __("Blur", "poll-maker"); ?>
5911 </option>
5912 <option value="message" <?= isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
5913 <?= __("Message", "poll-maker"); ?>
5914 </option>
5915 <option class="apm-pro-feature" disabled
5916 title="<?= __("It is PRO version feature", "poll-maker"); ?>" value="pro">
5917 <?= __("Custom GIF", "poll-maker"); ?>
5918 </option>
5919 </select>
5920 </div>
5921 <div class="if-loading-gif col-sm-6 row">
5922 <div class="apm-loader d-flex justify-content-between align-items-center">
5923 <input type="radio"
5924 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_default' ? 'checked' : ''; ?>
5925 id="plg_default" value="plg_default">
5926 <label for="plg_default" class="apm-loading-gif">
5927 <div class="loader loader--style3">
5928 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
5929 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
5930 height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;"
5931 xml:space="preserve">
5932 <path fill="#000"
5933 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">
5934 <animateTransform attributeType="xml" attributeName="transform"
5935 type="rotate" from="0 25 25" to="360 25 25" dur="0.7s"
5936 repeatCount="indefinite"/>
5937 </path>
5938 </svg>
5939 </div>
5940 </label>
5941 </div>
5942 <div class="apm-loader d-flex justify-content-between align-items-center">
5943 <input type="radio"
5944 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_1' ? 'checked' : ''; ?>
5945 id="plg_1" value="plg_1">
5946 <label for="plg_1" class="apm-loading-gif">
5947 <div class="loader loader--style5">
5948 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
5949 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
5950 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
5951 xml:space="preserve">
5952 <rect x="0" y="0" width="4" height="10" fill="#333">
5953 <animateTransform attributeType="xml" attributeName="transform"
5954 type="translate" values="0 0; 0 20; 0 0" begin="0"
5955 dur="0.8s" repeatCount="indefinite"/>
5956 </rect>
5957 <rect x="10" y="0" width="4" height="10" fill="#333">
5958 <animateTransform attributeType="xml" attributeName="transform"
5959 type="translate" values="0 0; 0 20; 0 0" begin="0.2s"
5960 dur="0.8s" repeatCount="indefinite"/>
5961 </rect>
5962 <rect x="20" y="0" width="4" height="10" fill="#333">
5963 <animateTransform attributeType="xml" attributeName="transform"
5964 type="translate" values="0 0; 0 20; 0 0" begin="0.4s"
5965 dur="0.8s" repeatCount="indefinite"/>
5966 </rect>
5967 </svg>
5968 </div>
5969 </label>
5970 </div>
5971 <div class="apm-loader d-flex justify-content-between align-items-center">
5972 <input type="radio"
5973 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_2' ? 'checked' : ''; ?>
5974 id="plg_2" value="plg_2">
5975 <label for="plg_2" class="apm-loading-gif">
5976 <div class="loader loader--style8">
5977 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
5978 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
5979 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
5980 xml:space="preserve">
5981 <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
5982 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
5983 begin="0s" dur="0.7s" repeatCount="indefinite"/>
5984 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
5985 begin="0s" dur="0.7s" repeatCount="indefinite"/>
5986 <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s"
5987 dur="0.7s" repeatCount="indefinite"/>
5988 </rect>
5989 <rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
5990 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
5991 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
5992 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
5993 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
5994 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
5995 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
5996 </rect>
5997 <rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
5998 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
5999 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6000 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6001 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6002 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6003 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6004 </rect>
6005 </svg>
6006 </div>
6007 </label>
6008 </div>
6009 <div class="apm-loader d-flex justify-content-between align-items-center">
6010 <input type="radio"
6011 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_3' ? 'checked' : ''; ?>
6012 id="plg_3" value="plg_3">
6013 <label for="plg_3" class="apm-loading-gif">
6014 <div class="loader loader--style5">
6015 <svg width="100%" height="100%" viewBox="0 0 105 105"
6016 xmlns="http://www.w3.org/2000/svg" fill="#000">
6017 <circle cx="12.5" cy="12.5" r="12.5">
6018 <animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1"
6019 calcMode="linear" repeatCount="indefinite"/>
6020 </circle>
6021 <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
6022 <animate attributeName="fill-opacity" begin="100ms" dur="0.9s"
6023 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6024 </circle>
6025 <circle cx="52.5" cy="12.5" r="12.5">
6026 <animate attributeName="fill-opacity" begin="300ms" dur="0.9s"
6027 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6028 </circle>
6029 <circle cx="52.5" cy="52.5" r="12.5">
6030 <animate attributeName="fill-opacity" begin="600ms" dur="0.9s"
6031 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6032 </circle>
6033 <circle cx="92.5" cy="12.5" r="12.5">
6034 <animate attributeName="fill-opacity" begin="800ms" dur="0.9s"
6035 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6036 </circle>
6037 <circle cx="92.5" cy="52.5" r="12.5">
6038 <animate attributeName="fill-opacity" begin="400ms" dur="0.9s"
6039 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6040 </circle>
6041 <circle cx="12.5" cy="92.5" r="12.5">
6042 <animate attributeName="fill-opacity" begin="700ms" dur="0.9s"
6043 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6044 </circle>
6045 <circle cx="52.5" cy="92.5" r="12.5">
6046 <animate attributeName="fill-opacity" begin="500ms" dur="0.9s"
6047 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6048 </circle>
6049 <circle cx="92.5" cy="92.5" r="12.5">
6050 <animate attributeName="fill-opacity" begin="200ms" dur="0.9s"
6051 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6052 </circle>
6053 </svg>
6054 </div>
6055 </label>
6056 </div>
6057 <div class="apm-loader d-flex justify-content-between align-items-center">
6058 <input type="radio"
6059 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_4' ? 'checked' : ''; ?>
6060 id="plg_4" value="plg_4">
6061 <label for="plg_4" class="apm-loading-gif">
6062 <div class="loader loader--style4">
6063 <svg width="100%" height="100%" viewBox="0 0 57 57"
6064 xmlns="http://www.w3.org/2000/svg" stroke="#000">
6065 <g fill="none" fill-rule="evenodd">
6066 <g transform="translate(1 1)" stroke-width="2">
6067 <circle cx="5" cy="50" r="5">
6068 <animate attributeName="cy" begin="0s" dur="2.2s"
6069 values="50;5;50;50" calcMode="linear"
6070 repeatCount="indefinite"/>
6071 <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5"
6072 calcMode="linear" repeatCount="indefinite"/>
6073 </circle>
6074 <circle cx="27" cy="5" r="5">
6075 <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5"
6076 values="5;50;50;5" calcMode="linear"
6077 repeatCount="indefinite"/>
6078 <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27"
6079 values="27;49;5;27" calcMode="linear"
6080 repeatCount="indefinite"/>
6081 </circle>
6082 <circle cx="49" cy="50" r="5">
6083 <animate attributeName="cy" begin="0s" dur="2.2s"
6084 values="50;50;5;50" calcMode="linear"
6085 repeatCount="indefinite"/>
6086 <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s"
6087 values="49;5;27;49" calcMode="linear"
6088 repeatCount="indefinite"/>
6089 </circle>
6090 </g>
6091 </g>
6092 </svg>
6093 </div>
6094 </label>
6095 </div>
6096 <div class="apm-loader d-flex justify-content-between align-items-center">
6097 <input type="radio"
6098 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_5' ? 'checked' : ''; ?>
6099 id="plg_5" value="plg_5">
6100 <label for="plg_5" class="apm-loading-gif">
6101 <div class="loader loader--style4">
6102 <svg width="100%" height="100%" viewBox="0 0 135 140"
6103 xmlns="http://www.w3.org/2000/svg" fill="#000">
6104 <rect y="10" width="15" height="120" rx="6">
6105 <animate attributeName="height" begin="0.5s" dur="1s"
6106 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6107 repeatCount="indefinite"/>
6108 <animate attributeName="y" begin="0.5s" dur="1s"
6109 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6110 repeatCount="indefinite"/>
6111 </rect>
6112 <rect x="30" y="10" width="15" height="120" rx="6">
6113 <animate attributeName="height" begin="0.25s" dur="1s"
6114 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6115 repeatCount="indefinite"/>
6116 <animate attributeName="y" begin="0.25s" dur="1s"
6117 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6118 repeatCount="indefinite"/>
6119 </rect>
6120 <rect x="60" width="15" height="140" rx="6">
6121 <animate attributeName="height" begin="0s" dur="1s"
6122 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6123 repeatCount="indefinite"/>
6124 <animate attributeName="y" begin="0s" dur="1s"
6125 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6126 repeatCount="indefinite"/>
6127 </rect>
6128 <rect x="90" y="10" width="15" height="120" rx="6">
6129 <animate attributeName="height" begin="0.25s" dur="1s"
6130 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6131 repeatCount="indefinite"/>
6132 <animate attributeName="y" begin="0.25s" dur="1s"
6133 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6134 repeatCount="indefinite"/>
6135 </rect>
6136 <rect x="120" y="10" width="15" height="120" rx="6">
6137 <animate attributeName="height" begin="0.5s" dur="1s"
6138 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6139 repeatCount="indefinite"/>
6140 <animate attributeName="y" begin="0.5s" dur="1s"
6141 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6142 repeatCount="indefinite"/>
6143 </rect>
6144 </svg>
6145 </div>
6146 </label>
6147 </div>
6148 </div>
6149 <div class="if-loading-message col-sm-6 row">
6150 <input type="text" class="ays-text-input ays-text-input-short" name="ays_poll_load_effect_message" value="<?php echo $poll_effect_message; ?>">
6151 </div>
6152 </div>
6153 <hr class="<?php echo $poll_loader_size_line_enable; ?> ays_line_changeing">
6154 <div class="form-group row <?php echo $poll_loader_size_enable; ?> ays_load_gif_cont">
6155 <div class="col-sm-3">
6156 <label for="ays_loader_font_size">
6157 <?= __('Loading effect size', "poll-maker") ?>
6158 <a class="ays_help" data-toggle="tooltip"
6159 title="<?= __('Define the size of the loading effect. It will get the default value if you leave it blank.', "poll-maker") ?>">
6160 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6161 </a>
6162 </label>
6163 </div>
6164 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6165 <div>
6166 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6167 name="ays_loader_font_size"
6168 value="<?= $poll_loader_font_size; ?>"/>
6169 </div>
6170 <div class="ays_option_default_measurement_unit">
6171 <input type="text" value="px" disabled>
6172 </div>
6173 </div>
6174 </div>
6175 <hr>
6176 <!-- Loading effect end -->
6177 <div class="form-group row">
6178 <div class="col-sm-3">
6179 <label for="ays_enable_restart_button">
6180 <?= __('Enable restart button', "poll-maker") ?>
6181 <a class="ays_help" data-toggle="tooltip"
6182 title="<?= __('Show the restart button on the result page of the poll for restarting the poll and taking it again.', "poll-maker") ?>">
6183 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6184 </a>
6185 </label>
6186 </div>
6187 <div class="col-sm-1">
6188 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6189 name="ays_enable_restart_button"
6190 value="on" <?= (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6191 </div>
6192 </div>
6193 <hr>
6194 <div class="form-group row ays_toggle_parent">
6195 <div class="col-sm-3">
6196 <label for='ays-poll-show-social'>
6197 <?= __('Social share buttons', "poll-maker"); ?>
6198 <a class="ays_help"
6199 data-toggle="tooltip"
6200 data-placement="top"
6201 title='<?= __("Enable to show social media share buttons on the result page of the poll. (Facebook, Twitter, LinkedIn, VKontakte)", "poll-maker"); ?>'>
6202 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6203 </a></label>
6204 </div>
6205 <div class="col-sm-1">
6206 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6207 value="show" <?= $poll_social_buttons ? 'checked' : ''; ?>>
6208 </div>
6209 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6210 <div class="form-group row">
6211 <div class="col-sm-4">
6212 <label>
6213 <?php echo __('Heading for share buttons', "poll-maker")?>
6214 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6215 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6216 </a>
6217 </label>
6218 </div>
6219 <div class="col-sm-8">
6220 <?php
6221 $content = $poll_social_buttons_heading;
6222 $editor_id = 'ays_poll_social_buttons_heading';
6223 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6224 wp_editor($content, $editor_id, $settings);
6225 ?>
6226 </div>
6227 </div>
6228 <hr>
6229 <div class="form-group row">
6230 <div class="col-sm-4">
6231 <label for="ays_poll_enable_linkedin_share_button">
6232 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6233 <?php echo __('LinkedIn button', "poll-maker")?>
6234 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display LinkedIn social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6235 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6236 </a>
6237 </label>
6238 </div>
6239 <div class="col-sm-8">
6240 <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" : ""; ?>/>
6241 </div>
6242 </div>
6243 <hr/>
6244 <div class="form-group row">
6245 <div class="col-sm-4">
6246 <label for="ays_poll_enable_facebook_share_button">
6247 <i class="ays_poll_fas ays_poll_facebook"></i>
6248 <?php echo __('Facebook button', "poll-maker")?>
6249 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display Facebook social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6250 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6251 </a>
6252 </label>
6253 </div>
6254 <div class="col-sm-8">
6255 <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" : ""; ?>/>
6256 </div>
6257 </div>
6258 <hr/>
6259 <div class="form-group row">
6260 <div class="col-sm-4">
6261 <label for="ays_poll_enable_twitter_share_button">
6262 <i class="ays_fa ays_fa_twitter_square"></i>
6263 <?php echo __('Twitter button', "poll-maker")?>
6264 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display Twitter social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6265 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6266 </a>
6267 </label>
6268 </div>
6269 <div class="col-sm-8">
6270 <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" : ""; ?>/>
6271 </div>
6272 </div>
6273 <hr/>
6274 <div class="form-group row">
6275 <div class="col-sm-4">
6276 <label for="ays_poll_enable_vkontakte_share_button">
6277 <i class="ays_fa ays_fa_vk"></i>
6278 <?php echo __('VKontakte button', "poll-maker")?>
6279 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display VKontakte social button so that the users can share the page on which your poll is posted.', "poll-maker"); ?>">
6280 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6281 </a>
6282 </label>
6283 </div>
6284 <div class="col-sm-8">
6285 <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" : ""; ?>/>
6286 </div>
6287 </div>
6288 </div>
6289 </div>
6290 <hr>
6291 <div class="form-group row ays_toggle_parent">
6292 <div class="col-sm-3">
6293 <label for="ays_enable_social_links">
6294 <?php echo __('Enable Social Media links', "poll-maker")?>
6295 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Display social media links at the end of the poll to allow users to visit your pages in the Social media.', "poll-maker")?>">
6296 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6297 </a>
6298 </label>
6299 </div>
6300 <div class="col-sm-1">
6301 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links"
6302 name="ays_poll_enable_social_links"
6303 value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/>
6304 </div>
6305 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6306 <div class="form-group row">
6307 <div class="col-sm-4">
6308 <label>
6309 <?php echo __('Heading for social links', "poll-maker")?>
6310 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over social links.', "poll-maker"); ?>">
6311 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6312 </a>
6313 </label>
6314 </div>
6315 <div class="col-sm-8">
6316 <?php
6317 $content = $poll_social_links_heading;
6318 $editor_id = 'ays_poll_social_links_heading';
6319 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6320 wp_editor($content, $editor_id, $settings);
6321 ?>
6322 </div>
6323 </div>
6324 <hr>
6325 <div class="form-group row">
6326 <div class="col-sm-4">
6327 <label for="ays_linkedin_link">
6328 <i class="ays_fa ays_fa_linkedin_square"></i>
6329 <?php echo __('LinkedIn link', "poll-maker")?>
6330 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6331 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6332 </a>
6333 </label>
6334 </div>
6335 <div class="col-sm-8">
6336 <input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]"
6337 value="<?php echo $linkedin_link; ?>" />
6338 </div>
6339 </div>
6340 <hr/>
6341 <div class="form-group row">
6342 <div class="col-sm-4">
6343 <label for="ays_facebook_link">
6344 <i class="ays_fa ays_fa_facebook_square"></i>
6345 <?php echo __('Facebook link', "poll-maker")?>
6346 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Facebook profile or page link for showing after poll finish.', "poll-maker")?>">
6347 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6348 </a>
6349 </label>
6350 </div>
6351 <div class="col-sm-8">
6352 <input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]"
6353 value="<?php echo $facebook_link; ?>" />
6354 </div>
6355 </div>
6356 <hr/>
6357 <div class="form-group row">
6358 <div class="col-sm-4">
6359 <label for="ays_twitter_link">
6360 <i class="ays_fa ays_fa_twitter_square"></i>
6361 <?php echo __('Twitter link', "poll-maker")?>
6362 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Twitter profile or page link for showing after poll finish.', "poll-maker")?>">
6363 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6364 </a>
6365 </label>
6366 </div>
6367 <div class="col-sm-8">
6368 <input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]"
6369 value="<?php echo $twitter_link; ?>" />
6370 </div>
6371 </div>
6372 <hr/>
6373 <div class="form-group row">
6374 <div class="col-sm-4">
6375 <label for="ays_vkontakte_link">
6376 <i class="ays_fa ays_fa_vk"></i>
6377 <?php echo __('VKontakte link', "poll-maker")?>
6378 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6379 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6380 </a>
6381 </label>
6382 </div>
6383 <div class="col-sm-8">
6384 <input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]"
6385 value="<?php echo $vkontakte_link; ?>" />
6386 </div>
6387 </div>
6388 <hr>
6389 <div class="form-group row">
6390 <div class="col-sm-4">
6391 <label for="ays_youtube_link">
6392 <i class="ays_fa ays_fa_vk"></i>
6393 <?php echo __('YouTube link', "poll-maker")?>
6394 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6395 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6396 </a>
6397 </label>
6398 </div>
6399 <div class="col-sm-8">
6400 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6401 value="<?php echo $youtube_link; ?>" />
6402 </div>
6403 </div>
6404 </div>
6405 </div>
6406 <hr>
6407 <div class="form-group row">
6408 <div class="col-sm-3">
6409 <label for='ays-poll-res-rgba'>
6410 <?= __('Results bar in RGBA', "poll-maker"); ?>
6411 <a class="ays_help" data-toggle="tooltip"
6412 data-placement="top"
6413 title="<?= __("If the option is enabled, the opacity of the result bar color will depend on the number of votes.", "poll-maker"); ?>">
6414 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6415 </a>
6416 </label>
6417 </div>
6418 <div class="col-sm-9">
6419 <input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba"
6420 value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>>
6421 </div>
6422 </div>
6423 <hr>
6424 <div class="form-group row ays_toggle_parent">
6425 <div class="col-sm-3">
6426 <label for='ays_poll_show_users'>
6427 <?= __('Show passed users avatars', "poll-maker"); ?>
6428 <a class="ays_help" data-toggle="tooltip"
6429 data-placement="top"
6430 title="<?= __("If this option is enabled, you will see users' avatars(profile pictures) who have already voted on the result page.", "poll-maker"); ?>">
6431 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6432 </a>
6433 </label>
6434 </div>
6435 <div class="col-sm-1">
6436 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6437 value="on" <?php echo $poll_show_passed_users_checked; ?>>
6438 </div>
6439 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6440 <div class="row">
6441 <div class="col-sm-3 ays_divider_left">
6442 <label for='ays_poll_show_users_count'>
6443 <?= __('Users count', "poll-maker"); ?>
6444 <a class="ays_help" data-toggle="tooltip"
6445 data-placement="top"
6446 title="<?= __("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6447 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6448 </a>
6449 </label>
6450 </div>
6451 <div class="col-sm-9">
6452 <input type="number"
6453 name="ays_poll_show_users_count"
6454 id="ays_poll_show_users_count"
6455 class="ays-text-input ays-poll-answer-results-short-input"
6456 value="<?php echo $poll_show_passed_users_count; ?>">
6457 </div>
6458 </div>
6459 </div>
6460 </div>
6461 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6462 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6463 <div class="col-sm-3">
6464 <label for="ays_poll_enable_answer_redirect_delay">
6465 <?= __('Option Redirect Delay', "poll-maker") ?>
6466 <a class="ays_help" data-toggle="tooltip"
6467 title="<?= __('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") ?>">
6468 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6469 </a>
6470 </label>
6471 </div>
6472 <div class="col-sm-1">
6473 <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" : ""; ?>>
6474 </div>
6475 <div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>">
6476 <input type="number"
6477 class="ays-text-input ays-poll-answer-results-short-input"
6478 id="ays_poll_answer_redirect_delay"
6479 name="ays_poll_answer_redirect_delay"
6480 value="<?= $poll_every_answer_redirect_delay; ?>"/>
6481 <span class="ays_poll_small_hint_text">Seconds</span>
6482 </div>
6483 </div>
6484 <hr>
6485 <div class="form-group row">
6486 <div class="col-sm-3">
6487 <label for="ays_poll_enable_answer_image_after_voting">
6488 <?= __('Show answers image', "poll-maker") ?>
6489 <a class="ays_help" data-toggle="tooltip"
6490 title="<?= __('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") ?>">
6491 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6492 </a>
6493 </label>
6494 </div>
6495 <div class="col-sm-1">
6496 <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" : ""; ?>>
6497 </div>
6498 </div>
6499 <hr>
6500 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
6501 <div class="form-group row">
6502 <div class="col-sm-3">
6503 <label for="apm_allow_add_answers">
6504 <?= __('Show results by', "poll-maker"); ?>
6505 <a class="ays_help" data-toggle="tooltip" data-placement="top"
6506 title="<?= __("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
6507 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6508 </a>
6509 </label>
6510 </div>
6511 <div class="col-sm-9">
6512 <div class="form-group row" style="align-items:center">
6513 <div class="col-sm-4">
6514 <div style="display: flex;">
6515 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6516 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
6517 <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' : '' ?>/>
6518 <span><?= __('Bar chart(Google)', "poll-maker"); ?></span>
6519 </label>
6520 </div>
6521 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6522 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
6523 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
6524 <span><?= __('Bar chart', "poll-maker"); ?></span>
6525 </label>
6526 </div>
6527 </div>
6528 </div>
6529 <div class="col-sm-8" style="padding-left: 0">
6530 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
6531 <div class="pro_features pro_features_popup">
6532 <div class="pro-features-popup-conteiner">
6533 <div class="pro-features-popup-title">
6534 <?php echo __("Show Results by", "poll-maker"); ?>
6535 </div>
6536 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
6537 <p>
6538 <?php echo __("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"); ?>
6539 </p>
6540 </div>
6541 <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">
6542 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6543 </div>
6544 </div>
6545 </div>
6546 <div class="pro_features" style="justify-content:flex-end;">
6547 </div>
6548 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6549 <input type="radio"/>
6550 <label class="form-check-label ays_poll_check_label">
6551 <?= __('Pie Chart', "poll-maker"); ?>
6552 </label>
6553 </div>
6554 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6555 <input type="radio"/>
6556 <label class="form-check-label ays_poll_check_label">
6557 <?= __('Column Chart', "poll-maker"); ?>
6558 </label>
6559 </div>
6560 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
6561 <input type="radio"/>
6562 <label class="form-check-label ays_poll_check_label">
6563 <?= __('Versus Chart', "poll-maker"); ?>
6564 </label>
6565 </div>
6566 <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'?>">
6567 <input type="radio"/>
6568 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
6569 <?= __('Rating Chart', "poll-maker"); ?>
6570 </label>
6571 </div>
6572 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6573 <div class="ays-poll-new-upgrade-button-box">
6574 <div>
6575 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6576 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6577 </div>
6578 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6579 </div>
6580 </a>
6581 <div class="ays-poll-new-watch-video-button-box">
6582 <div>
6583 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6584 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
6585 </div>
6586 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
6587 </div>
6588 </div>
6589 </div>
6590 </div>
6591 <hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
6592 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
6593 <div class="form-group row" style="align-items: center; margin-left: 0;">
6594 <div class="col-sm-2">
6595 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
6596 <?= __('Chart height', "poll-maker") ?>
6597 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Set the Results Chart height. Note: The option works only for the Google Bar Chart.", "poll-maker"); ?>">
6598 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6599 </a>
6600 </label>
6601 </div>
6602 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6603 <div>
6604 <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="<?= $show_chart_type_google_height; ?>"/>
6605 </div>
6606 <div class="ays_option_default_measurement_unit">
6607 <input type="text" value="px" disabled>
6608 </div>
6609 </div>
6610 </div>
6611 </div>
6612 </div>
6613 </div>
6614 </div>
6615 <hr/>
6616 <div class="form-group row">
6617 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
6618 <div class="pro_features pro_features_popup">
6619 <div class="pro-features-popup-conteiner">
6620 <div class="pro-features-popup-title">
6621 <?php echo __("Results Message Based on the Answer", "poll-maker"); ?>
6622 </div>
6623 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
6624 <p>
6625 <?php echo __("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"); ?>
6626 </p>
6627 </div>
6628 <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">
6629 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6630 </div>
6631 </div>
6632 </div>
6633 <div class="pro_features" style="justify-content:flex-end;">
6634 </div>
6635 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __("Result message based on the answer", "poll-maker"); ?></p>
6636 <hr>
6637 <div class="form-group row">
6638 <div class="col-sm-3">
6639 <label for="ays_show_answer_message">
6640 <?php echo __('Show Answer message', "poll-maker")?>
6641 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
6642 data-placement="top"
6643 title="<?= __("Show different messages based on the answer.", "poll-maker"); ?>">
6644 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6645 </a>
6646 </label>
6647 </div>
6648 <div class="col-sm-9">
6649 <input type="checkbox" class="ays-enable-timer1"
6650 name=""
6651 value="on">
6652 </div>
6653 </div>
6654 <hr/>
6655 <!--Result message -->
6656 <div class='form-group row'>
6657 <div class="ays_reset_answers_div">
6658 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
6659 </div>
6660 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" title="<?= __("Refresh the below answers table after adding or removing answer(s) in the General tab.", "poll-maker"); ?>">
6661 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6662 </a>
6663 </div>
6664 <hr>
6665 <?php
6666 $content = '<div class="ays-field-dashboard ays-table-wrap">
6667 <table class="ays-answers-table ">
6668 <thead>
6669 <tr class="ui-state-default">
6670 <th>'.__('Answers', "poll-maker").'</th>
6671 <th>'.__('Text', "poll-maker").'</th>
6672 <th>'.__('Image', "poll-maker").'</th>
6673 </tr>
6674 </thead>
6675 <tbody>';
6676 $content .= '<tr class="ays-interval-row">
6677 <td>
6678 <span>'.__("Answer 1", "poll-maker").'</span>
6679 <input type="hidden" name="ays_answer_id[]">
6680 </td>
6681 <td>
6682 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
6683 </td>
6684 <td class="ays-answer-image-td">
6685 <label class="ays-label" for="ays-answer">
6686 <a href="javascript:void(0)" class="add-answer-image" >
6687 '.__("Add", "poll-maker").'
6688 </a>
6689 </label>
6690 <div class="ays-answer-image-container ays-interval-image-container">
6691 <span class="ays-remove-answer-img"></span>
6692 <img src="" class="ays-answer-img">
6693 <input type="hidden" name="interval_image[]" class="ays-answer-image"
6694 >
6695 </div>
6696 </td>
6697 </tr>
6698 <tr class="ays-interval-row">
6699 <td>
6700 <span>'.__("Answer 2", "poll-maker").'</span>
6701 <input type="hidden" name="ays_answer_id[]">
6702 </td>
6703 <td>
6704 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
6705 </td>
6706 <td class="ays-answer-image-td">
6707 <label class="ays-label" for="ays-answer">
6708 <a href="javascript:void(0)" class="add-answer-image" >
6709 '.__("Add", "poll-maker").'
6710 </a>
6711 </label>
6712 <div class="ays-answer-image-container ays-interval-image-container">
6713 <span class="ays-remove-answer-img"></span>
6714 <img src="" class="ays-answer-img">
6715 <input type="hidden" name="interval_image[]" class="ays-answer-image"
6716 >
6717 </div>
6718 </td>
6719 </tr>';
6720 $content .= '</tbody></table></div>';
6721 echo $content;
6722 ?>
6723 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6724 <div class="ays-poll-new-upgrade-button-box">
6725 <div>
6726 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6727 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6728 </div>
6729 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6730 </div>
6731 </a>
6732 <div class="ays-poll-new-watch-video-button-box">
6733 <div>
6734 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6735 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
6736 </div>
6737 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
6738 </div>
6739 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
6740 <div class="ays-poll-center-big-watch-video-button-box">
6741 <div class="ays-poll-center-new-watch-video-demo-button">
6742 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6743 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24_hover.svg'?>" class="ays-poll-new-watch-video-button-hover">
6744 <?php echo __("Watch Video", "poll-maker"); ?>
6745 </div>
6746 </div>
6747 <div class="ays-poll-center-big-upgrade-button-box">
6748 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6749 <div class="ays-poll-center-new-big-upgrade-button">
6750 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6751 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6752 <?php echo __("Upgrade", "poll-maker"); ?>
6753 </div>
6754 </a>
6755 </div>
6756 </div>
6757 </div>
6758 <hr/>
6759 </div>
6760 </div>
6761 </div>
6762 </div>
6763 <div class="bottom-buttons-container">
6764 <div class="ays_save_default_button_box">
6765 <?php
6766 if ( $prev_poll_id != "" && !is_null( $prev_poll_id ) ) {
6767
6768 $other_attributes = array(
6769 'id' => 'ays-polls-prev-button',
6770 'data-message' => __( 'Are you sure you want to go to the previous poll page?', "poll-maker"),
6771 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $prev_poll_id ) )
6772 );
6773 submit_button(__('Prev Poll', "poll-maker"), 'button button-primary ays-button ays-poll-prev-poll-button ays-poll-next-prev-button-class', 'ays_poll_prev_button', false, $other_attributes);
6774 }
6775
6776 if ( $next_poll_id != "" && !is_null( $next_poll_id ) ) {
6777
6778 $other_attributes = array(
6779 'id' => 'ays-polls-next-button',
6780 'data-message' => __( 'Are you sure you want to go to the next poll page?', "poll-maker"),
6781 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $next_poll_id ) )
6782 );
6783 submit_button(__('Next Poll', "poll-maker"), 'button button-primary ays-button ays_poll_next_poll_button ays-poll-next-prev-button-class', 'ays_poll_next_button', false, $other_attributes);
6784 }
6785 ?>
6786 <div class="only_pro" style="position: relative; display: inline-block">
6787 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
6788 <div class="pro-features-popup-conteiner">
6789 <div class="pro-features-popup-title">
6790 <?php echo __("Save as Default feature of Poll", "poll-maker"); ?>
6791 </div>
6792 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
6793 <p>
6794 <?php echo __("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"); ?>
6795 </p>
6796 <p>
6797 <?php echo __("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"); ?>
6798 </p>
6799 </div>
6800 <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">
6801 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6802 </div>
6803 </div>
6804 </div>
6805 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
6806 <span class="ays_save_as_default_content_for_mobile">
6807 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
6808 <input type="button" class="button ays_default_btn ays-loader-banner" value="Save as default">
6809 </a>
6810 <a class="ays_help" data-toggle="tooltip" title="<?php echo __( "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" ); ?>">
6811 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6812 </a>
6813 </span>
6814 </div>
6815 </div>
6816 </div>
6817 <div class='bottom-save-buttons-container'>
6818 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
6819 <?php
6820 echo $loader_iamge;
6821 wp_nonce_field('poll_action', 'poll_action');
6822 $save_bottom_attributes = array(
6823 'id' => 'ays-button-apply',
6824 'title' => 'Ctrl + s',
6825 'data-toggle' => 'tooltip',
6826 'data-delay'=> '{"show":"1000"}'
6827 );
6828 submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
6829 $save_close_bottom_attributes = array('id' => 'ays-button');
6830 submit_button(__('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);
6831 submit_button(__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
6832 ?>
6833 </div>
6834 </div>
6835 </div>
6836 </div>
6837 <div>
6838 <hr>
6839 <!-- <div class="form-group row ays-poll-general-bundle-container">
6840 <div class="col-sm-12 ays-poll-general-bundle-box">
6841 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
6842 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank"><img src="<?php //echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/black_friday_banner_logo.png"></a>
6843 </div>
6844 <div class="ays-poll-general-bundle-row">
6845 <div class="ays-poll-general-bundle-text">
6846 <?php //echo __( "Do not miss", $this->plugin_name ); ?>
6847 <span><?php //echo __( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
6848 <?php //echo __( "on Poll Maker plugin!", $this->plugin_name ); ?>
6849 <span class="ays-poll-general-bundle-color">
6850 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo __( "Poll Maker", $this->plugin_name ); ?></a>
6851 </span> <?php //echo __( "plugin!", $this->plugin_name ); ?>
6852 </div>
6853 <p><?php //echo __( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
6854 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
6855 <div><a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-link-color" target="_blank"><?php //echo __( "Discount 20% OFF", $this->plugin_name ); ?></a></div>
6856 </div>
6857 </div>
6858 <div class="ays-poll-general-bundle-row">
6859 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
6860 </div>
6861 </div>
6862 </div> -->
6863 <?php if($id === null): ?>
6864 <div class="ays_poll_layer_container">
6865 <div class="ays_poll_layer_content">
6866 <div class="ays-poll-close-type">
6867 <a href="?page=poll-maker-ays">
6868 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/icons/cross.png">
6869 </a>
6870 </div>
6871 <div class="ays_poll_layer_box">
6872 <div class="ays-poll-close-layer">
6873 <div class="ays-poll-choose-type">
6874 <p style="margin: 0;">Choose Your Poll Type</p>
6875 </div>
6876 </div>
6877 <div class="ays_poll_layer_box_blocks">
6878 <label class='ays-poll-dblclick-layer'>
6879 <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
6880 <div class="ays_poll_layer_item" >
6881 <div class="ays_poll_layer_item_logo" >
6882 <div class="ays_poll_layer_item_logo_overlay
6883 ays_poll_layer_item_logo_overlay_choosing" >
6884 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/choosing.png' ?>"
6885 alt="<?= __('Choosing', "poll-maker") ?>">
6886 </div>
6887 </div>
6888 <div class="ays_poll_layer_item_title">
6889 <p style="margin:0px;"><?php echo __('Choosing', "poll-maker") ?><p>
6890 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/image-choosing/" style="font-size:14px;" target="_blank">View demo</a>
6891 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6892 </div>
6893 <div class="ays_poll_layer_item_description"></div>
6894 </div>
6895 </label>
6896 <label class='ays-poll-dblclick-layer'>
6897 <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'rating') ? 'checked' : '' ?> >
6898 <div class="ays_poll_layer_item">
6899 <div class="ays_poll_layer_item_logo">
6900 <div class="ays_poll_layer_item_logo_overlay
6901 ays_poll_layer_item_logo_overlay_rating">
6902 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/rating.png' ?>"
6903 alt="<?= __('Rating', "poll-maker") ?>">
6904 </div>
6905 </div>
6906 <div class="ays_poll_layer_item_title">
6907 <p style="margin:0px;"><?php echo __('Rating', "poll-maker") ?><p>
6908 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/rating-polls-rating-type/" style="font-size:14px;" target="_blank">View demo</a>
6909 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6910 </div>
6911 <div class="ays_poll_layer_item_description"></div>
6912 </div>
6913 </label>
6914 <label class='ays-poll-dblclick-layer'>
6915 <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'text') ? 'checked' : '' ?> >
6916 <div class="ays_poll_layer_item">
6917 <div class="ays_poll_layer_item_logo">
6918 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
6919
6920 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Text.png' ?>"
6921 alt="<?= __('Text', "poll-maker") ?>">
6922 </div>
6923 </div>
6924 <div class="ays_poll_layer_item_title">
6925 <p style="margin:0px;"><?php echo __('Text', "poll-maker") ?><p>
6926 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6927 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/open-ended-question-polls-text-type/" style="font-size:14px;" target="_blank">View demo</a>
6928 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6929 </div>
6930 <div class="ays_poll_layer_item_description"></div>
6931 </div>
6932 </label>
6933 <label class='ays-poll-dblclick-layer'>
6934 <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'voting') ? 'checked' : '' ?> >
6935 <div class="ays_poll_layer_item">
6936 <div class="ays_poll_layer_item_logo">
6937 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
6938 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/voting.png' ?>" alt="<?= __('Voting', "poll-maker") ?>">
6939 </div>
6940 </div>
6941 <div class="ays_poll_layer_item_title">
6942 <p style="margin:0px;"><?php echo __('Voting', "poll-maker") ?><p>
6943 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/voting-polls-voting-type/" style="font-size:14px;" target="_blank">View demo</a>
6944 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6945 </div>
6946 <div class="ays_poll_layer_item_description"></div>
6947 </div>
6948 </label>
6949 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
6950 <!-- <input type="radio" value="select" > -->
6951 <div class="ays_poll_layer_item">
6952 <span class="ays_poll_layer_item_pro_version">
6953 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
6954 PRO
6955 </a>
6956 </span>
6957 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
6958 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
6959
6960 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Dropdown.png' ?>"
6961 alt="<?= __('Dropdown', "poll-maker") ?>">
6962 </div>
6963 </div>
6964 <div class="ays_poll_layer_item_title">
6965 <p style="margin:0px;">
6966 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
6967 <?php echo __('Dropdown', "poll-maker") ?>
6968 </a>
6969 <p>
6970 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6971 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/anonymous-polls-dropdown-type/" style="font-size:14px;" target="_blank">View demo</a>
6972 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6973 </div>
6974 <div class="ays_poll_layer_item_description"></div>
6975 </div>
6976 </label>
6977 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
6978 <!-- <input value="range" type="radio"> -->
6979 <div class="ays_poll_layer_item">
6980 <span class="ays_poll_layer_item_pro_version">
6981 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
6982 PRO
6983 </a>
6984 </span>
6985 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
6986 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
6987
6988 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/range.png' ?>"
6989 alt="<?= __('Range', "poll-maker") ?>">
6990 </div>
6991 </div>
6992 <div class="ays_poll_layer_item_title">
6993 <p style="margin:0px;">
6994 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
6995 <?php echo __('Range', "poll-maker") ?>
6996 </a>
6997 <p>
6998 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
6999 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/slider-rating-polls-slider-type/" style="font-size:14px;" target="_blank">View demo</a>
7000 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7001 </div>
7002 <div class="ays_poll_layer_item_description"></div>
7003 </div>
7004 </label>
7005 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7006 <!-- <input value="versus" type="radio"> -->
7007 <div class="ays_poll_layer_item">
7008 <span class="ays_poll_layer_item_pro_version">
7009 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7010 PRO
7011 </a>
7012 </span>
7013 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7014 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" >
7015
7016 <span>VS</span>
7017 </div>
7018 </div>
7019 <div class="ays_poll_layer_item_title">
7020 <p style="margin:0px;">
7021 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7022 <?php echo __('Versus', "poll-maker") ?>
7023 </a>
7024 <p>
7025 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7026 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/versus-poll-versus-type/" style="font-size:14px;" target="_blank">View demo</a>
7027 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7028 </div>
7029 <div class="ays_poll_layer_item_description"></div>
7030 </div>
7031 </label>
7032 </div>
7033 <div class="ays_poll_select_button_layer">
7034 <div class="ays_poll_select_button_item">
7035 <input type="button" class="ays_poll_layer_button" name="" value="Next" data-type="<?php echo $poll['type']; ?>">
7036 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7037 </div>
7038 </div>
7039 </div>
7040 </div>
7041 </div>
7042 <?php else: ?>
7043 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7044 <?php endif; ?>
7045 </form>
7046 <div class="ays-modal" id="pro-features-popup-modal">
7047 <div class="ays-modal-content">
7048 <!-- Modal Header -->
7049 <div class="ays-modal-header">
7050 <span class="ays-close-pro-popup">&times;</span>
7051 <!-- <h2></h2> -->
7052 </div>
7053
7054 <!-- Modal body -->
7055 <div class="ays-modal-body">
7056 <div class="row">
7057 <div class="col-sm-6 pro-features-popup-modal-left-section">
7058 </div>
7059 <div class="col-sm-6 pro-features-popup-modal-right-section">
7060 <div class="pro-features-popup-modal-right-box">
7061 <div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div>
7062
7063 <div class="pro-features-popup-modal-right-box-title"></div>
7064
7065 <div class="pro-features-popup-modal-right-box-content"></div>
7066
7067 <div class="pro-features-popup-modal-right-box-button">
7068 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7069 </div>
7070 </div>
7071 </div>
7072 </div>
7073 </div>
7074
7075 <!-- Modal footer -->
7076 <div class="ays-modal-footer" style="display:none">
7077 </div>
7078 </div>
7079 </div>
7080 </div>
7081 </div>