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

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

7,165 lines 609.5 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%%' => __("Current date", "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 "answer_hover_color" => "#0C6291",
91 "title_bg_color" => "",
92 "border_color" => "#0C6291",
93 );
94 $default_options = array(
95 'randomize_answers' => 'off',
96 "icon_size" => 24,
97 "width" => 600,
98 "width_for_mobile" => '',
99 "btn_text" => __('Vote', "poll-maker"),
100 "see_res_btn_text" => __('See Results', "poll-maker"),
101 "border_style" => "ridge",
102 "border_radius" => 0,
103 "border_width" => 2,
104 "enable_box_shadow" => "",
105 "bg_image" => "",
106 "hide_results" => 0,
107 "hide_results_text" => "<p style='text-align: center'>" . __("Thanks for your answer!", "poll-maker") . "</p>",
108 "allow_not_vote" => 0,
109 "show_social" => 0,
110 "poll_show_social_ln" => "on",
111 "poll_show_social_fb" => "on",
112 "poll_show_social_tr" => "on",
113 "poll_show_social_vk" => "off",
114 "load_effect" => "load_gif",
115 "load_gif" => "plg_default",
116 'limit_users' => 0,
117 "limitation_message" => "<p style='text-align: center'>" . __("You have already voted", "poll-maker") . "</p>",
118 'redirect_url' => '',
119 'redirection_delay' => '',
120 'users_role' => '',
121 'enable_restriction_pass' => 0,
122 'restriction_pass_message' => "<p style='text-align: center'>" . __("You don't have permissions for passing the poll", "poll-maker") . "</p>",
123 'enable_logged_users' => 0,
124 'enable_logged_users_message' => "<p style='text-align: center'>" . __('You must sign in for passing the poll', "poll-maker") . "</p>",
125 'notify_email_on' => 0,
126 'notify_email' => '',
127 'result_sort_type' => 'none',
128 'redirect_after_submit' => 0,
129 'redirect_users' => 0,
130 'redirect_after_vote_url' => '',
131 'redirect_after_vote_delay' => '',
132 'published' => 1,
133 'enable_pass_count' => 'on',
134 'activeInterval' => '',
135 'create_date' => current_time( 'mysql' ),
136 'author' => $author,
137 'deactiveInterval' => '',
138 'enable_background_gradient' => 'off',
139 'background_gradient_color_1' => '#103251',
140 'background_gradient_color_2' => '#607593',
141 'poll_gradient_direction' => 'vertical',
142 'activeIntervalSec' => '',
143 'deactiveIntervalSec' => '',
144 'active_date_check' => '',
145 'active_date_message_soon' => "<p style='text-align: center'>" . __("The poll will be available soon!", "poll-maker") . "</p>",
146 'active_date_message' => "<p style='text-align: center'>" . __("The poll has expired!", "poll-maker") . "</p>",
147 'enable_restart_button' => 0,
148 'enable_vote_btn' => 1,
149 'show_votes_count' => 1,
150 'show_res_percent' => 1,
151 'poll_direction' => 'ltr',
152 'info_form' => 0,
153 'fields' => 'apm_name,apm_email,apm_phone',
154 'required_fields' => 'apm_email',
155 'info_form_title' => "<h5>" . __("Please fill out the form:", "poll-maker") . "</h5>",
156 'disable_answer_hover' => 0,
157 'enable_asnwers_sound' => 'off',
158 'poll_bg_image_position' => 'center center',
159 'poll_bg_img_in_finish_page' => 'off',
160 'ays_add_post_for_poll' => 'off',
161 'result_in_rgba' => 'off',
162 'answer_sort_type' => 'default',
163 'answer_font_size' => '16',
164 'poll_answer_font_size_mobile' => '16',
165 'show_passed_users' => 'off',
166 'logo_image' => '',
167 'dont_show_poll_cont' => 'off',
168 'see_result_button' => 'on',
169 'see_result_radio' => 'ays_see_result_button',
170 'loader_font_size' => '64',
171 'show_answers_numbering' => 'none',
172 'poll_box_shadow_x_offset' => 0,
173 'poll_box_shadow_y_offset' => 0,
174 'poll_box_shadow_z_offset' => 15,
175 'poll_question_size_pc' => 16,
176 'poll_question_size_mobile' => 16,
177 'poll_question_image_object_fit' => "cover",
178 'poll_title_font_size' => 20,
179 'poll_title_font_size_mobile' => 20,
180 'poll_title_alignment' => "center",
181 'poll_title_alignment_mobile' => "center",
182 'poll_text_type_length_enable' => "off",
183 'poll_text_type_limit_type' => "characters",
184 'poll_text_type_limit_length' => "",
185 'poll_text_type_limit_message' => "off",
186 'poll_text_type_placeholder' => "Your answer",
187 'poll_text_type_width' => "",
188 'poll_text_type_width_type' => "percent",
189 'poll_enable_password' => "off",
190 'poll_password' => "",
191 'poll_enable_password_visibility' => "off",
192 'poll_password_message' => 'Please enter password',
193 'poll_answer_enable_box_shadow' => "off",
194 'poll_answer_box_shadow_color' => "#000000",
195 'poll_answer_box_shadow_x_offset' => 0,
196 'poll_answer_box_shadow_y_offset' => 0,
197 'poll_answer_box_shadow_z_offset' => 10,
198 'poll_answer_border_radius' => 0,
199 'poll_enable_answer_image_after_voting' => "off",
200 'enable_poll_title_text_shadow' => 'off',
201 'poll_title_text_shadow' => 'rgba(255,255,255,0)',
202 'poll_title_text_shadow_x_offset' => 2,
203 'poll_title_text_shadow_y_offset' => 2,
204 'poll_title_text_shadow_z_offset' => 0,
205 'display_fields_labels' => 'off',
206 'autofill_user_data' => 'off',
207 'poll_create_author' => $user_id,
208 'poll_main_url' => '',
209 'poll_logo_url_new_tab' => 'off',
210 'show_chart_type' => 'google_bar_chart',
211 );
212
213 $settings_options = $this->settings_obj->ays_get_setting('options');
214 if($settings_options){
215 $settings_options = json_decode($settings_options, true);
216 }else{
217 $settings_options = array();
218 }
219
220 switch ( $action ) {
221 case 'add':
222 $heading = __('Add new poll', "poll-maker");
223 $options = array_merge($default_options, $default_colors);
224 $loader_iamge = "<span class='display_none'><img src=".POLL_MAKER_AYS_ADMIN_URL."/images/loaders/loading.gif></span>";
225 // Default category
226 $poll_default_cat = isset($settings_options['default_category']) && !empty($settings_options['default_category']) ? explode("," , $settings_options['default_category']) : array("1");
227
228 $poll['categories'] = $poll_default_cat;
229
230 // Default type
231 $poll_default_type = isset($settings_options['default_type']) && $settings_options['default_type'] != '' ? esc_attr($settings_options['default_type']) : "choosing";
232 $poll['type'] = $poll_default_type;
233
234 $ays_check_post = '';
235 break;
236 case 'edit':
237 $heading = __('Edit poll', "poll-maker");
238 $loader_iamge = "<span class='display_none'><img class='ays-loader-img'src=".POLL_MAKER_AYS_ADMIN_URL."/images/loaders/loading.gif></span>";
239 $poll = $this->polls_obj->get_poll_by_id($id);
240 $post_id = !empty($poll) ? $poll['post_id'] : '';
241 $ays_check_post = isset($poll['styles']['ays_add_post_for_poll']) ? $poll['styles']['ays_add_post_for_poll'] : 'off';
242 $ays_poll_view_post_url = get_permalink($post_id);
243 $ays_poll_edit_post_url = get_edit_post_link($post_id);
244
245 if (empty($poll)) {
246 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
247 wp_safe_redirect($url);
248 }
249
250 $options = array_merge($default_options, (isset($poll['styles']) ? $poll['styles'] : array()));
251 break;
252 default:
253 $url = esc_url_raw(remove_query_arg(array('action', 'poll')));
254 wp_safe_redirect($url);
255 break;
256 }
257 $enable_pass_count = $options['enable_pass_count'];
258 $categories = $this->polls_obj->get_categories();
259 global $wp_roles;
260 $ays_users_roles = $wp_roles->roles;
261
262 if (isset($_POST['ays_submit']) || isset($_POST['ays_submit_top'])) {
263 $this->polls_obj->add_or_edit_polls($_POST, $id);
264 }
265
266 if (isset($_POST['ays_apply_top']) || isset($_POST['ays_apply'])) {
267 $this->polls_obj->add_or_edit_polls($_POST, $id, "apply");
268 }
269
270 if (isset($_POST['ays_poll_cancel']) || isset($_POST['ays_poll_cancel_top']) ) {
271 unset($_GET['page']);
272 $url = remove_query_arg( array_keys($_GET) );
273 wp_redirect( $url );
274 }
275
276 $style = "display: none;";
277 $style_bg = "display: none;";
278 $style_bg_options = "display: none;";
279 $style_logo = "display: none;";
280 $style_logo_check = false;
281 if (isset($poll['image']) && !empty($poll['image'])) {
282
283 $style = "display: block;";
284 $image_text = __('Edit Image', "poll-maker");
285 }
286 if (isset($options['bg_image']) && !empty($options['bg_image'])) {
287 $style_bg = "display: flex;";
288 $style_bg_options = "display: block;";
289 $image_text_bg = __('Edit Image', "poll-maker");
290 }
291 if (isset($options['logo_image']) && !empty($options['logo_image'])) {
292 $style_logo = "display: block;";
293 $style_logo_check = true;
294 $image_text_logo = __('Edit Image', "poll-maker");
295 }
296
297 $published = $options['published'];
298
299
300 if (!empty($options['activeInterval']) && !empty($options['deactiveInterval'])) {
301 $activateTime = strtotime($options['activeInterval']);
302 $activePoll = date('Y-m-d', $activateTime);
303 $deactivateTime = strtotime($options['deactiveInterval']);
304 $deactivePoll = date('Y-m-d', $deactivateTime);
305 } else {
306 $activePoll = date('Y-m-d');
307 $deactivePoll = date('Y-m-d');
308 }
309
310 $activePollSec = isset($options['activeIntervalSec']) && !empty($options['activeIntervalSec']) ? $options['activeIntervalSec'] : '';
311 $deactivePollSec = isset($options['deactiveIntervalSec']) && !empty($options['deactiveIntervalSec']) ? $options['deactiveIntervalSec'] : '';
312
313 $activePoll = $activePoll . " " . $activePollSec;
314 $deactivePoll = $deactivePoll . " " . $deactivePollSec;
315
316 $randomize_answers = (isset($options['randomize_answers']) && $options['randomize_answers'] == 'on') ? true : false;
317
318 $all_fields = array(
319 array(
320 "name" => __("Name", "poll-maker"),
321 "slug" => "apm_name",
322 ),
323 array(
324 "name" => __("Email", "poll-maker"),
325 "slug" => "apm_email",
326 ),
327 array(
328 "name" => __("Phone", "poll-maker"),
329 "slug" => "apm_phone",
330 ),
331 );
332
333
334 //INTEGRATIONS
335 $poll_settings = $this->settings_obj;
336
337 $asnwers_sound = (isset($settings_options['answers_sound']) && $settings_options['answers_sound'] != '') ? true : false;
338
339 $answer_default_count = (isset($settings_options['answer_default_count']) && $settings_options['answer_default_count'] != '') ? $settings_options['answer_default_count'] : 2;
340
341 $answers_sound_status = false;
342 if($asnwers_sound){
343 $answers_sound_status = true;
344 }
345
346 // WP Editor height
347 $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 ;
348
349 // Answers sound option
350 $options['enable_asnwers_sound'] = isset($options['enable_asnwers_sound']) ? $options['enable_asnwers_sound'] : 'off';
351 $enable_asnwers_sound = (isset($options['enable_asnwers_sound']) && $options['enable_asnwers_sound'] == "on") ? true : false;
352
353 $mailchimp_res = ($poll_settings->ays_get_setting('mailchimp') === false) ? json_encode(array()) : $poll_settings->ays_get_setting('mailchimp');
354 $mailchimp = json_decode($mailchimp_res, true);
355 $mailchimp_username = isset($mailchimp['username']) ? $mailchimp['username'] : '';
356 $mailchimp_api_key = isset($mailchimp['apiKey']) ? $mailchimp['apiKey'] : '';
357 $mailchimp_lists = $mailchimp_api_key ? $this->ays_get_mailchimp_lists($mailchimp_username, $mailchimp_api_key) : array();
358 $mailchimp_select = array();
359 if (!empty($mailchimp_lists) && isset($mailchimp_lists['total_items']) && $mailchimp_lists['total_items'] > 0) {
360 foreach ( $mailchimp_lists['lists'] as $list ) {
361 $mailchimp_select[] = array(
362 'listId' => $list['id'],
363 'listName' => $list['name']
364 );
365 }
366 } else {
367 $mailchimp_select = __("There are no lists", "poll-maker");
368 }
369
370 // MailChimp
371 $enable_mailchimp = (isset($options['enable_mailchimp']) && $options['enable_mailchimp'] == 'on') ? true : false;
372 $mailchimp_list = (isset($options['mailchimp_list'])) ? $options['mailchimp_list'] : '';
373
374
375 $fields = !empty($options['fields']) ? explode(",", $options['fields']) : array();
376 $required_fields = !empty($options['required_fields']) ? explode(",", $options['required_fields']) : array();
377
378 // Show votes count
379 $options['show_votes_count'] = isset($options['show_votes_count']) ? $options['show_votes_count'] : 1;
380 $showvotescount = isset($options['show_votes_count']) && intval($options['show_votes_count']) == 1 ? true : false;
381
382 // Show result percent
383 $options['show_res_percent'] = isset($options['show_res_percent']) ? $options['show_res_percent'] : 1;
384 $show_res_percent = isset($options['show_res_percent']) && intval($options['show_res_percent']) == 1 ? true : false;
385
386 // Show result button after schedule
387 $options['show_result_btn_schedule'] = isset($options['show_result_btn_schedule']) ? $options['show_result_btn_schedule'] : 0;
388 $showresbtnschedule = isset($options['show_result_btn_schedule']) && intval($options['show_result_btn_schedule']) == 1 ? true : false;
389
390 $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';
391
392 $schedule_show_timer = isset($options['ays_poll_show_timer']) && intval($options['ays_poll_show_timer']) == 1 ? true : false;
393
394 $show_timer_type = isset($options['ays_show_timer_type']) && !empty($options['ays_show_timer_type'])? $options['ays_show_timer_type'] : 'countdown';
395
396 $show_bottom_timer = isset($options['show_bottom_timer']) && intval($options['show_bottom_timer']) == 1 ? true : false;
397
398 // Show login form for not logged in users
399 $options['show_login_form'] = isset($options['show_login_form']) ? $options['show_login_form'] : 'off';
400 $show_login_form = (isset($options['show_login_form'] ) && $options['show_login_form'] == "on") ? true : false;
401
402 // Redirect after voting
403 $options['redirect_users'] = isset($options['redirect_users']) ? $options['redirect_users'] : 0;
404 $redirect_users = (isset($options['redirect_users']) && $options['redirect_users'] == 1) ? true : false;
405
406 // Results notification by email
407 $options['notify_email_on'] = isset($options['notify_email_on']) ? $options['notify_email_on'] : 0;
408 $notify_email_on = (isset($options['notify_email_on']) && $options['notify_email_on'] == 1) ? true : false;
409
410 // Background gradient
411 $options['enable_background_gradient'] = (!isset($options['enable_background_gradient'])) ? 'off' : $options['enable_background_gradient'];
412 $enable_background_gradient = (isset($options['enable_background_gradient']) && $options['enable_background_gradient'] == 'on') ? true : false;
413
414 $background_gradient_color_1 = (isset($options['background_gradient_color_1']) && $options['background_gradient_color_1'] != '' && $enable_background_gradient) ? $options['background_gradient_color_1'] : '#103251';
415 $background_gradient_color_2 = (isset($options['background_gradient_color_2']) && $options['background_gradient_color_2'] != '' && $enable_background_gradient) ? $options['background_gradient_color_2'] : '#607593';
416 $poll_gradient_direction = (isset($options['poll_gradient_direction']) && $options['poll_gradient_direction'] != '') ? $options['poll_gradient_direction'] : 'vertical';
417
418
419 // Redirect after submit
420 $options['redirect_after_submit'] = (!isset($options['redirect_after_submit'])) ? 0 : $options['redirect_after_submit'];
421 $redirect_after_submit = (isset($options['redirect_after_submit']) && $options['redirect_after_submit'] == 1) ? true : false;
422 $submit_redirect_url = isset($options['ays_submit_redirect_url']) ? $options['ays_submit_redirect_url'] : '';
423 // $submit_redirect_delay = isset($options['submit_redirect_delay']) ? $options['submit_redirect_delay'] : '';
424
425 $users_role = (isset($options['users_role']) && $options['users_role'] != "") ? json_decode($options['users_role'], true) : array();
426
427 $options['enable_answer_style'] = isset($options['enable_answer_style']) ? $options['enable_answer_style'] : 'on';
428
429 // $poll_create_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : "0000-00-00 00:00:00";
430
431 $change_creation_date = (isset($options['create_date']) && $options['create_date'] != '') ? $options['create_date'] : current_time( 'mysql' );
432
433
434 // Bg image positioning
435 $poll_bg_image_position = (isset($options['poll_bg_image_position']) && $options['poll_bg_image_position'] != '') ? $options['poll_bg_image_position'] : "center center";
436
437 $poll_bg_img_in_finish_page = (isset($options['poll_bg_img_in_finish_page']) && $options['poll_bg_img_in_finish_page'] == "on") ? true : false;
438
439 if(isset($options['author']) && $options['author'] != 'null'){
440 if ( ! is_array( $options['author'] ) ) {
441 $options['author'] = json_decode($options['author'], true);
442 $poll_author = $options['author'];
443 } else {
444 $poll_author = array_map( 'stripslashes', $options['author'] );
445 }
446 } else {
447 $poll_author = array('name' => 'Unknown');
448 }
449
450 $show_create_date = (isset($options['show_create_date']) && $options['show_create_date'] == 1) ? true : false;
451 $show_author = (isset($options['show_author']) && $options['show_author'] == 1) ? true : false;
452
453 $custom_class = (isset($options['custom_class']) && $options['custom_class'] != "") ? $options['custom_class'] : '';
454
455 // Results bar in RGBA
456 $options['result_in_rgba'] = isset($options['result_in_rgba']) ? $options['result_in_rgba'] : 'off';
457 $result_in_rgba = (isset($options['result_in_rgba']) && $options['result_in_rgba'] == "on") ? true : false;
458
459 // Enable View more button
460 $options['enable_view_more_button'] = isset($options['enable_view_more_button']) ? $options['enable_view_more_button'] : 'off';
461 $enable_view_more_button = (isset($options['enable_view_more_button']) && $options['enable_view_more_button'] == 'on' ) ? true : false;
462 $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;
463
464
465 // Poll Min Height
466 $poll_min_height = (isset($options['poll_min_height']) && $options['poll_min_height'] != '') ? absint(intval($options['poll_min_height'])) : '';
467
468 // Poll answer font size
469 $poll_answer_font_size = (isset($options['answer_font_size']) && $options['answer_font_size'] != '') ? esc_html($options['answer_font_size']) : '15';
470
471 // Poll answers font size on mobile
472 $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';
473
474 // Poll show passed users
475 $poll_show_passed_users = isset($options['show_passed_users']) ? esc_html($options['show_passed_users']) : 'off';
476 $poll_show_passed_users_checked = isset($poll_show_passed_users) && $poll_show_passed_users == 'on' ? 'checked' : '';
477 $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;
478
479 // Poll Logo image
480 $poll_logo_image = isset($options['logo_image']) && $options['logo_image'] != '' ? esc_url($options['logo_image']) : '';
481 $poll_check_logo = isset($poll_logo_image) && $poll_logo_image != '' ? true : false;
482 $poll_logo_img = $poll_check_logo ? 'ays_logo_image_on' : 'display_none';
483 $poll_logo_for_live_container = $poll_check_logo ? 'ays_logo_cont_image_on' : '';
484
485 //
486
487 $checking_answer_hover_live = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
488
489 // Poll schedule container on/off
490 $poll_check_exp_cont = (isset($options['dont_show_poll_cont']) && $options['dont_show_poll_cont'] == 'on') ? 'checked' : '';
491
492 // Poll see results button in limitations
493 $poll_see_result_button = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? 'checked' : '';
494 $poll_see_result_button_check = (isset($options['see_result_button']) && $options['see_result_button'] == 'on') ? true : false;
495 $poll_see_result_button_cont = (isset($options['see_result_button']) && $options['see_result_button'] != 'on') ? 'ays_poll_display_none' : '';
496 $poll_see_result_radio = (isset($options['see_result_radio']) && $options['see_result_radio'] != '') ? esc_attr($options['see_result_radio']) : 'ays_see_result_button';
497 $poll_see_result_botton_show = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_button' ? 'checked' : '';
498 $poll_see_result_immediately = isset($poll_see_result_radio) && $poll_see_result_radio == 'ays_see_result_immediately' ? 'checked' : '';
499
500 // Loader font size
501 $poll_loader_font_size = (isset($options['loader_font_size']) && $options['loader_font_size'] != '') ? esc_attr($options['loader_font_size']) : '64';
502 $poll_loader_size_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "display_none";
503 $poll_loader_size_line_enable = isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? "" : "ays_hr_display_none";
504
505 // Show answers numbering
506 $show_answers_numbering = (isset($options['show_answers_numbering']) && sanitize_text_field( $options['show_answers_numbering'] ) != '') ? sanitize_text_field( $options['show_answers_numbering'] ) : 'none';
507
508 // Default border color
509 $main_color = isset($options['main_color']) && $options['main_color'] != "" ? $options['main_color'] : $default_colors['main_color'];
510 $default_border = isset($options['border_color']) && $options['border_color'] != "" ? $options['border_color'] : $main_color;
511
512 // Poll load effect message
513 $poll_effect_message = isset($options['effect_message']) && $options['effect_message'] != "" ? $options['effect_message'] : "";
514
515 // Poll title
516 $poll_title = isset($poll['title']) && $poll['title'] != "" ? stripslashes(htmlentities($poll['title'])) : "Default title";
517
518 // Box shadow coords
519 // Box Shadow X offset
520 $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;
521
522 // Box Shadow Y offset
523 $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;
524
525 // Box Shadow Z offset
526 $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;
527
528 // Poll Vote Reason
529 $poll_vote_reason = (isset($options['poll_vote_reason']) && $options['poll_vote_reason'] == 'on' ) ? "checked" : "";
530
531 // Allow multivote
532 $poll_allow_multivote = isset($options['poll_allow_multivote']) && $options['poll_allow_multivote'] == 'on' ? "checked" : "";
533 // Enable multivote answer
534 $poll_enable_multivote_answer = $poll_allow_multivote == "checked" ? true : false;
535
536 // Minimum count for multivote answer
537 $poll_multivote_min_count = (isset($options['multivote_answer_min_count']) && $options['multivote_answer_min_count'] != '') ? intval(esc_attr($options['multivote_answer_min_count'])) : '1';
538
539 // Count for multivote answer
540 $poll_multivote_answer_count = (isset($options['poll_allow_multivote_count']) && $options['poll_allow_multivote_count'] != '') ? intval(esc_attr($options['poll_allow_multivote_count'])) : '1';
541
542 // Allow collect user info
543 $poll_allow_collecting_users_data = (isset($options['poll_allow_collecting_users_data']) && $options['poll_allow_collecting_users_data'] == 'on') ? "checked" : "";
544
545 // Show answers icon
546 $poll_answer_icon_check = (isset($options['poll_answer_icon_check']) && $options['poll_answer_icon_check'] == 'on') ? true : false;
547 // Poll answer icon
548 $poll_answer_icon = isset($options['poll_answer_icon']) ? $options['poll_answer_icon'] : 'radio';
549
550 // Every Answer redirect delay
551 $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']) : "";
552
553 // Enable answer redirect delay
554 $poll_enable_answer_redirect_delay = isset($options['poll_enable_answer_redirect_delay']) && $options['poll_enable_answer_redirect_delay'] == "on" ? true : false;
555
556 // Show Answers image after voting
557 $poll_enable_answer_image_after_voting = isset($options['poll_enable_answer_image_after_voting']) && $options['poll_enable_answer_image_after_voting'] == "on" ? true : false;
558
559 // Poll logo image url
560 $poll_logo_image_url = isset($options['poll_logo_url']) && $options['poll_logo_url'] != "" ? esc_attr($options['poll_logo_url']) : "";
561
562 // Check if the poll logo URL is enabled
563 $poll_logo_image_url_check = isset($options['poll_enable_logo_url']) && $options['poll_enable_logo_url'] == "on" ? true : false;
564
565 // Poll question font size
566 $poll_question_font_size_pc = isset($options['poll_question_size_pc']) && $options['poll_question_size_pc'] != "" ? esc_attr($options['poll_question_size_pc']) : 16;
567
568 // Poll question font size for mobile
569 $poll_question_font_size_mobile = isset($options['poll_question_size_mobile']) && $options['poll_question_size_mobile'] != "" ? esc_attr($options['poll_question_size_mobile']) : 16;
570
571 // Poll question image height
572 $poll_question_image_height = isset($options['poll_question_image_height']) && $options['poll_question_image_height'] != "" ? esc_attr($options['poll_question_image_height']) : "";
573
574 // Poll container max-width for mobile
575 $poll_mobile_max_width = (isset($options['poll_mobile_max_width']) && $options['poll_mobile_max_width'] != "") ? esc_attr($options['poll_mobile_max_width']) : '';
576
577 // ==== BUTTON STYLES START ====
578 // Buttons font size
579 $poll_buttons_font_size = (isset($options['poll_buttons_font_size']) && $options['poll_buttons_font_size'] != "") ? esc_attr($options['poll_buttons_font_size']) : '17';
580
581 // Buttons text color
582 $poll_button_text_color = (isset($options['button_text_color']) && $options['button_text_color'] != "") ? $options['button_text_color'] : $options['bg_color'];
583
584 // Buttons background color
585 $poll_button_bg_color = (isset($options['button_bg_color']) && $options['button_bg_color'] != "") ? $options['button_bg_color'] : $main_color;
586
587 // Buttons mobile font size
588 $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';
589
590 // Buttons Left / Right padding
591 $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';
592
593 // Buttons Top / Bottom padding
594 $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';
595
596 // Buttons border radius
597 $poll_buttons_border_radius = (isset($options['poll_buttons_border_radius']) && $options['poll_buttons_border_radius'] != "") ? esc_attr($options['poll_buttons_border_radius']) : '3';
598
599 // Buttons Width
600 $poll_buttons_width = (isset($options['poll_buttons_width']) && $options['poll_buttons_width'] != "") ? esc_attr($options['poll_buttons_width']) : '';
601
602 // Buttons mobile width
603 $poll_buttons_mobile_width = (isset($options['poll_buttons_mobile_width']) && $options['poll_buttons_mobile_width'] != "") ? esc_attr($options['poll_buttons_mobile_width']) : $poll_buttons_width;
604
605 $poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : "";
606 // ==== BUTTON STYLES END ====
607
608 // ==== Allow Answer options ====
609 // Allow custom answer
610 $poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : "";
611 // Require admin approval
612 $poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : "";
613
614 // ==== ====
615
616 // Poll answer view type
617 $poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list";
618
619 // Poll answer image height
620 $poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150";
621
622 // Poll answer image height for mobile
623 $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";
624
625 // Poll answer image border radius
626 $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;
627
628 // Poll question image object fit
629 $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";
630
631 // Poll answer image object fit
632 $poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover";
633
634 // Poll answer padding
635 $poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10";
636
637 // Poll 1 column in mobile
638 $options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on';
639 $answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false;
640
641 // Poll answer gap
642 $poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10";
643
644 // Poll title font size
645 $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";
646
647 // Poll title font size for mobile
648 $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";
649
650 // Poll title alignment
651 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
652
653 // Poll title alignment mobile
654 $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;
655
656 // Poll view type
657 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
658
659 // ===== Poll text type options start =====
660 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
661 $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";
662 $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']) : "";
663 $poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false;
664 $poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : "";
665 $poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : "";
666 $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";
667 // ===== Poll text type options end =====
668
669 $poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false;
670 // Enable toggle password visibility
671 $options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off';
672 $poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false;
673 $poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : "";
674 $poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password";
675
676 // == Poll answer box shadow ==
677 // Poll answer box shadow enable
678 $poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false;
679 // Poll answer box shadow color
680 $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";
681 // answer hover color
682 $answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color'];
683 // answer bg color
684 $answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)";
685 // Poll answer box shadow parameters
686 $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;
687
688 $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;
689
690 $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;
691
692 // Poll answer box shadow color
693 $poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0;
694
695 $poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false;
696 $poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : '';
697 $poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false;
698 $poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false;
699 $poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false;
700 $poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false;
701
702 // Title text shadow
703 $options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off';
704
705 $enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false;
706
707 $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)';
708
709 $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;
710
711 $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;
712
713 $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;
714
715 // Display form fields labels
716 $options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off';
717 $display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false;
718
719 // Autofill user data
720 $options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off';
721 $autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false;
722
723 // Change the author of the current poll
724 $change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id;
725 $get_current_poll_author_data = get_userdata($change_poll_create_author);
726
727 // Poll main url
728 $poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : '';
729
730 //Open logo URL in new tab
731 $poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : "";
732
733 //Poll Logo title
734 $poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : '';
735
736 //Poll mobile width
737 $width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : '';
738
739 // Social Media links
740 $enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false;
741 $social_links = (isset($options['social_links'])) ? $options['social_links'] : array(
742 'linkedin_link' => '',
743 'facebook_link' => '',
744 'twitter_link' => '',
745 'vkontakte_link' => '',
746 'instagram_link' => '',
747 'youtube_link' => '',
748 );
749 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
750 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
751 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
752 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
753 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
754 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
755
756 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
757 $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;
758
759 $next_poll_id = "";
760 $prev_poll_id = '';
761 if ( isset( $id ) && !is_null( $id ) ) {
762 $next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" );
763 $next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null;
764
765 $prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" );
766 $prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null;
767
768 }
769
770 $get_all_polls = Poll_Maker_Data::get_all_polls();
771
772 ?>
773 <!--LIVE PREVIEW STYLES-->
774 <?php
775 $emoji = array(
776 "<i class='ays_poll_far ays_poll_fa-dizzy'></i>",
777 "<i class='ays_poll_far ays_poll_fa-smile'></i>",
778 "<i class='ays_poll_far ays_poll_fa-meh'></i>",
779 "<i class='ays_poll_far ays_poll_fa-frown'></i>",
780 "<i class='ays_poll_far ays_poll_fa-tired'></i>",
781 ); ?>
782 <style>
783 /*save changing properties of poll in the css-variables*/
784 :root {
785 /*colors*/
786 --theme-main-color: <?php echo $options['main_color']; ?>;
787 --theme-bg-color: <?php echo $options['bg_color']; ?>;
788 --theme-answer-bg-color: <?php echo (isset($options['answer_bg_color']) && !empty($options['answer_bg_color'])) ? $options['answer_bg_color'] : $options['bg_color']; ?>;
789 --theme-answer-hover-color: <?php echo (isset($options['answer_hover_color']) && !empty($options['answer_hover_color'])) ? $options['answer_hover_color'] : $options['text_color']; ?>;
790 --theme-title-bg-color: <?php echo (isset($options['title_bg_color']) && !empty($options['title_bg_color'])) ? $options['title_bg_color'] : $options['bg_color']; ?>;
791 --theme-text-color: <?php echo $options['text_color']; ?>;
792 --theme-button-text-color: <?php echo $options['bg_color']; ?>;
793 --theme-icon-color: <?php echo $options['icon_color']; ?>;
794 /*options*/
795 --poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>;
796 --poll-border-style: <?php echo $options['border_style']; ?>;
797 --poll-border-radius: <?php echo absint($options['border_radius']); ?>px;
798 --poll-border-width: <?php echo absint($options['border_width']); ?>px;
799 --poll-box-shadow: <?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] . ' 0px 0px 10px 0px' : ''; ?>;
800 --poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . $options['bg_image'] . ")" : "unset"; ?>;
801 --poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px;
802 --poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>;
803 --poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>;
804
805 }
806
807
808 input[type='button'].ays-poll-btn{
809 font-size: <?php echo $poll_buttons_font_size; ?>px;
810 padding: <?php echo $poll_buttons_top_bottom_padding."px ".$poll_buttons_left_right_padding."px"; ?>;
811 border-radius: <?php echo $poll_buttons_border_radius; ?>px;
812 width: <?php echo $poll_buttons_width; ?>px;
813 }
814
815 @media (max-width: 768px) {
816 input[type='button'].ays-poll-btn{
817 width: <?php echo $poll_buttons_mobile_width; ?>px;
818 }
819 }
820 </style>
821 <!--LIVE PREVIEW STYLES END-->
822 <div class="wrap">
823 <div class="ays-poll-heading-box">
824 <div class="ays-poll-wordpress-user-manual-box">
825 <a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;">
826 <i class="ays_poll_fas ays_fa_file_text"></i>
827 <span style="margin-left: 3px;text-decoration: underline;"><?php echo __("View Documentation", "poll-maker"); ?></span>
828 </a>
829 </div>
830 </div>
831 <div class="container-fluid">
832 <form class="ays-poll-form" id="ays-poll-form" method="post">
833 <input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo htmlentities($active_tab); ?>"/>
834 <input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>">
835 <input type="hidden" name="ays_poll_author" value="<?php echo htmlentities(json_encode($poll_author)); ?>">
836 <input type="hidden" id="poll_choose_type_first" value="<?php echo $poll['type']; ?>" >
837 <h1 class="wp-heading-inline">
838 <?php
839 echo "$heading";
840 ?>
841 </h1>
842 <div>
843 <div class="ays-poll-subtitle-main-box">
844 <p class="ays-subtitle">
845 <?php if(isset($id) && count($get_all_polls) > 1):?>
846 <i class="ays_poll_fas ays_fa_arrow_down ays-poll-open-polls-list" style="font-size: 15px;"></i>
847 <?php endif; ?>
848 <strong class="ays_poll_title_in_top"><?php echo $poll['title']; ?></strong>
849 </p>
850 <?php if(isset($id) && count($get_all_polls) > 1):?>
851 <div class="ays-poll-polls-data">
852 <?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?>
853 <?php ?>
854 <label class="ays-poll-message-vars-each-data-label">
855 <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">
856 <div class="ays-poll-polls-each-data">
857 <input type="hidden" class="ays-poll-polls-each-var" value="<?php echo $var; ?>">
858 <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>
859 </div>
860 </label>
861 <?php endforeach ?>
862 </div>
863 <?php endif; ?>
864 </div>
865 <?php if($id !== null): ?>
866 <div class="row">
867 <div class="col-sm-3">
868 <label> <?php echo __( "Shortcode text for editor", "poll-maker" ); ?> </label>
869 </div>
870 <div class="col-sm-9">
871 <p style="font-size:14px; font-style:italic;">
872 <?php echo __("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?>
873 <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>
874 <?php echo " " . __( "and paste it at the desired place in the editor.", "poll-maker"); ?>
875 </p>
876 </div>
877 </div>
878 <?php endif;?>
879 </div>
880 <hr>
881 <div class='ays-all-container'>
882 <div class='ays-all-sub-container'>
883 <div class="ays-top-menu-wrapper">
884 <div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div>
885 <div class="ays-top-menu">
886 <div class="nav-tab-wrapper ays-top-tab-wrapper">
887 <a href="#tab1" data-title="General"
888 class="nav-tab <?= $active_tab == 'General' ? 'nav-tab-active' : ''; ?>">
889 <?= __('General', "poll-maker"); ?>
890 </a>
891 <a href="#tab2" data-title="Styles"
892 class="nav-tab <?= $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>">
893 <?= __('Styles', "poll-maker"); ?>
894 </a>
895 <a href="#tab3" data-title="Settings"
896 class="nav-tab <?= $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>">
897 <?= __('Settings', "poll-maker"); ?>
898 </a>
899 <a href="#tab8" data-title="Results Settings"
900 class="nav-tab <?= $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>">
901 <?= __('Results Settings', "poll-maker"); ?>
902 </a>
903 <a href="#tab4" data-title="Limitations"
904 class="nav-tab <?= $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>">
905 <?= __("Limitations", "poll-maker"); ?>
906 </a>
907 <a href="#tab5" data-title="Userdata"
908 class="nav-tab <?= $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>">
909 <?= __('User Data', "poll-maker"); ?>
910 </a>
911 <a href="#tab6" data-title="Email"
912 class="nav-tab <?= $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>">
913 <?= __('Email', "poll-maker"); ?>
914 </a>
915 <a href="#tab7" data-title="Integrations"
916 class="nav-tab <?= $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>">
917 <?= __('Integrations', "poll-maker"); ?>
918 </a>
919 </div>
920 <div class='top-menu-buttons-container'>
921 <?php
922 echo $loader_iamge;
923 $save_attributes = array(
924 'id' => 'ays-button-top-apply',
925 'title' => 'Ctrl + s',
926 'data-toggle' => 'tooltip',
927 'data-delay'=> '{"show":"1000"}'
928 );
929 submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes);
930 $save_close_attributes = array('id' => 'ays-button-top');
931 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);
932 submit_button(__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array());
933 ?>
934 </div>
935 </div>
936 <div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div>
937 </div>
938 <div id="tab1" class="ays-poll-tab-content <?= $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>">
939 <div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;">
940 <p class="ays-subtitle" style="margin-bottom:0;">
941 <?= __('General options', "poll-maker"); ?>
942 </p>
943 <?php if ($poll_main_url != ''): ?>
944 <div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;">
945 <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;">
946 <i class="fa fa-eye" aria-hidden="true"></i>
947 <span style="margin-left: 5px;"><?php echo __( 'View', "easy-form" ); ?></span>
948 </a>
949 </div>
950 <?php endif; ?>
951 </div>
952 <hr>
953 <div class="form-group row">
954 <div class="col-sm-3">
955 <label for='ays-poll-title'>
956 <?= __('Title', "poll-maker"); ?>
957 <a class="ays_help" data-toggle="tooltip"
958 data-placement="top"
959 title="<?= __("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>">
960 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
961 </a>
962 </label>
963 </div>
964 <div class="col-sm-9 ays_divider_left">
965 <input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title'
966 data-required="false" value="<?= $poll_title ?>"/>
967 </div>
968 </div>
969 <hr>
970 <div class="form-group row" style="display: flex;">
971 <div class="col-sm-3">
972 <label for='ays-poll-question'>
973 <?= __('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"); ?>">
974 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
975 </a>
976 <a href="javascript:void(0)" class="add-question-image button">
977 <?= $image_text; ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Add an image to the question.", "poll-maker"); ?>">
978 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
979 </a></a>
980 </label>
981 <div class="ays-poll-question-image-container" style="<?= $style; ?>">
982 <span class="ays-remove-question-img"></span>
983 <img src="<?= $poll['image']; ?>" id="ays-poll-img"/>
984 <input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?= $poll['image']; ?>"/>
985 </div>
986 </div>
987 <div class="col-sm-9">
988 <?php
989 $content = stripslashes($poll["question"]);
990 $editor_id = 'ays-poll-question';
991 $settings = array(
992 'editor_height' => $poll_wp_editor_height,
993 'textarea_name' => 'ays_poll_question',
994 'editor_class' => 'ays-textarea',
995 'media_buttons' => true,
996 'tinymce' => array(
997 "init_instance_callback" => "function(editor) {
998 editor.on('Change', function(e) {
999 document.querySelector('.box-apm .ays_question').innerHTML = e.level.content;
1000 });
1001 }",
1002 )
1003 );
1004 wp_editor($content, $editor_id, $settings);
1005 ?>
1006 </div>
1007 </div>
1008 <hr>
1009
1010 <?php if ($poll['type'] == 'choosing') : ?>
1011 <div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;">
1012 <div class="col-sm-3">
1013 <label for="ays-poll-answer" >
1014 <?php echo __('Options', "poll-maker")?>
1015 </label>
1016 </div>
1017 <div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" >
1018 <div>
1019 <div class='add-option-top-container'>
1020 <a class="ays-add-answer ays-click-once" id='add-answer'>
1021 <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1022 <span>Add Option</span>
1023 </a>
1024 </div>
1025 <table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>">
1026 <thead>
1027 <tr class="ui-state-default">
1028 <th class="th-150"><?php echo __('Ordering', "poll-maker"); ?></th>
1029 <th style="width: 100vw;"><?php echo __('Option', "poll-maker"); ?></th>
1030 <th class="th-350 ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"><?php echo __('Redirect URL', "poll-maker"); ?></th>
1031 <th class="th-150 only_pro"><?php echo __('Image', "poll-maker"); ?></th>
1032 <th class="th-150"><?php echo __('Delete', "poll-maker"); ?></th>
1033 </tr>
1034 </thead>
1035 <tbody class="">
1036 <?php
1037 $answers = $poll['answers'];
1038 $answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count;
1039 $loop_iteration = 0;
1040 $rows_count = count($answers);
1041 $ays_key_enter = "";
1042 $user_add_html = '';
1043 if (count($answers) > 0 && $poll['type'] == 'choosing') :
1044 foreach ($answers as $index => $answer) {
1045 $user_add_html = '';
1046 $class = (($index + 1) % 2 == 0) ? "even" : "";
1047 $answer_val = stripslashes(htmlentities($answer["answer"]));
1048 $answer_id = $answer["id"];
1049 $answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;';
1050 $answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img'];
1051 $answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : '';
1052 $user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false;
1053 $show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false;
1054
1055 if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on")
1056 && (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) {
1057 $disable_show_user_added = '';
1058 }else{
1059 $disable_show_user_added = 'display: none;';
1060 }
1061
1062 $show_user_added_checkbox = '';
1063 if ($show_user_added == 1) {
1064 $show_user_added_checkbox = 'checked';
1065 }
1066 if ( $user_added ) {
1067 $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 .' />';
1068 }
1069
1070 if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){
1071 $check_show_user_added = "1";
1072 }elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) {
1073 $check_show_user_added = "0";
1074 }else{
1075 $check_show_user_added = "1";
1076 }
1077
1078 if($loop_iteration == $rows_count - 1){
1079 $ays_key_enter = "ays_poll_enter_key";
1080 }
1081 $loop_iteration++;
1082 ?>
1083 <tr class="ays-answer-row ui-state-default <?php echo $class; ?>">
1084 <td class="ays-sort">
1085 <div class='ays_poll_move_arrows'></div>
1086 <td>
1087 <div class="ays_poll_display_flex">
1088 <input type="hidden" class="<?php echo ( $user_added ) ? 'ays_show_user_added_hid' : ''; ?>" name="ays_poll_show_user_added[]" value="<?= $check_show_user_added ?>" />
1089 <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); ?>">
1090 <?php echo $user_add_html; ?>
1091 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $index;?>" value="<?php echo $answer_id; ?>">
1092 </div>
1093 </td>
1094 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1095 <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"; ?>"/>
1096 </td>
1097 <td>
1098 <label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>">
1099 <a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a>
1100 </label>
1101 <div class="ays-poll-answer-image-container" style="<?php echo $answer_img_class; ?>">
1102 <span class="ays-poll-remove-answer-img"></span>
1103 <img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/>
1104 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>">
1105 </div>
1106 </td>
1107 <td>
1108 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $index;?>" data-lid="<?php echo $index;?>">
1109 </a>
1110 </td>
1111 </tr>
1112 <?php
1113 }
1114 ?>
1115 <?php
1116 else:
1117 for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) :
1118 if($loop_iteration == intval($answer_default_count) - 1){
1119 $ays_key_enter = "ays_poll_enter_key";
1120 }
1121 $loop_iteration++;
1122 $ays_even_or_not = ($dac_i%2 !=0) ? 'even' : '';
1123 ?>
1124 <tr class="ays-answer-row ui-state-default <?php echo $ays_even_or_not; ?>">
1125 <td class="ays-sort">
1126 <div class='ays_poll_move_arrows'></div>
1127 </td>
1128 <td class="ays-choosing-answer-container">
1129 <div class="ays_poll_display_flex">
1130 <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); ?>">
1131 <?php echo $user_add_html; ?>
1132 <input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $dac_i;?>" value="0">
1133 </div>
1134 </td>
1135 <td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>">
1136 <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=""/>
1137 </td>
1138 <td>
1139 <label class='ays-label' for='ays-answer'>
1140 <a class="ays-poll-add-answer-image add-answer-image-icon"></a>
1141 </label>
1142 <div class="ays-poll-answer-image-container" style="display:none;">
1143 <span class="ays-poll-remove-answer-img"></span>
1144 <img src="" class="ays-poll-answer-img"/>
1145 <input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/>
1146 </div>
1147 </td>
1148
1149 <td>
1150 <a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $dac_i;?>" data-lid="<?php echo $dac_i;?>">
1151 </a>
1152 </td>
1153 </tr>
1154 <?php
1155 endfor;
1156 endif;
1157 ?>
1158 </tbody>
1159 </table>
1160 <div class='add-option-top-container'>
1161 <a class="ays-add-answer" id='add-answer'>
1162 <img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'>
1163 <span>Add Option</span>
1164 </a>
1165 </div>
1166 <input type="hidden" id="ays_poll_answers_count" value="<?php echo $answers_count ?>">
1167 <input type="hidden" id="ays_answer_checker" value="<?php echo $checking_answer_hover_live ?>">
1168 </div>
1169
1170 </div>
1171 </div>
1172 <?php endif; ?>
1173 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1174 <div class="form-group row" style="display: flex;">
1175 <div class="col-sm-3">
1176 <label for="ays-poll-answer" >
1177 <?php echo __('Option Settings', "poll-maker")?>
1178 </label>
1179 </div>
1180 <div class="col-sm-9">
1181 <div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" >
1182 <div class="col-sm-12">
1183 <div class="form-group row">
1184 <div class="col-1">
1185 <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' : '' ?>/>
1186 </div>
1187 <div class="col-4 unset-padding-left">
1188 <label for="ays_redirect_after_submit" >
1189 <?php echo __('Answer Redirection', "poll-maker")?>
1190 <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")?>">
1191 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1192 </a>
1193 </label>
1194 </div>
1195 </div>
1196 </div>
1197 </div>
1198 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1199 <div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent">
1200 <div class="col-sm-12">
1201 <div class="form-group row ays_poll_allow_add_answers_flex_container">
1202 <div class="col-1">
1203 <input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox"
1204 value="on" <?= $poll_allow_answer ?>>
1205 </div>
1206 <div class="col-4 unset-padding-left">
1207 <label for="ays_poll_allow_add_answers">
1208 <?= __('Allow custom answer', "poll-maker"); ?>
1209 <a class="ays_help" data-toggle="tooltip"
1210 data-placement="top"
1211 title="<?= __("Allow users to add their custom answer.", "poll-maker"); ?>">
1212 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1213 </a>
1214 </label>
1215 </div>
1216 <div class="col-7 allow_add_answers_not_show_up_container">
1217 <div class="ays_toggle_target" <?= $poll_allow_answer ? '' : 'style="display:none;"'; ?>>
1218 <div class="form-group row allow_add_answers_not_show_up ays_toggle_parent">
1219 <div class="col-2 ays_divider_left">
1220 <input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require"
1221 value="on" <?= $poll_allow_answer_require ?> />
1222 </div>
1223 <div class="col-10">
1224 <label for="ays_poll_allow_answer_require">
1225 <?= __('Require admin approval', "poll-maker"); ?>
1226 <a class="ays_help" data-toggle="tooltip"
1227 data-placement="top"
1228 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"); ?>">
1229 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1230 </a>
1231 </label>
1232 </div>
1233 <?php
1234 $poll_answers = $poll['answers'];
1235 $is_user_added_exist = 0;
1236 foreach ($poll_answers as $index => $answer) {
1237 if($answer['user_added'] == 1) {
1238 $is_user_added_exist++;
1239 }
1240 }
1241 if($is_user_added_exist > 0):
1242 ?>
1243 <div class="col-12 row ays_toggle_target" <?= ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>>
1244 <div class="col-2 ays_divider_left" style="align-items: center;">
1245 <input type="checkbox" id="ays_poll_require_approve_select_all"/>
1246 </div>
1247 <div class="col-10">
1248 <label for="ays_poll_require_approve_select_all">
1249 <?= __('Select all', "poll-maker"); ?>
1250 <a class="ays_help" data-toggle="tooltip"
1251 data-placement="top"
1252 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"); ?>">
1253 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1254 </a>
1255 </label>
1256 </div>
1257 </div>
1258 <?php
1259 endif;
1260 ?>
1261 </div>
1262 </div>
1263 </div>
1264 </div>
1265 </div>
1266 </div> <!-- Allow custom answer -->
1267 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
1268 <div class="if-voting poll-type-block form-group row">
1269 <div class="col-sm-3">
1270 <label for="ays-poll-vote-type">
1271 <?= __('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select the appearance of the poll.", "poll-maker"); ?>">
1272 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1273 </a></label>
1274 </div>
1275 <div class="col-sm-9 answers-col">
1276 <select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type">
1277 <option value='hand' <?= $poll['view_type'] == 'hand' ? "selected" : ""; ?>>
1278 <?= __('Hand', "poll-maker"); ?>
1279 </option>
1280 <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1281 <?= __('Emoji', "poll-maker"); ?>
1282 </option>
1283 </select>
1284 <?php
1285 switch ($poll['view_type']) {
1286 case 'hand':
1287 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1288 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1289 break;
1290
1291 case 'emoji':
1292 $vote_res = 'ays_poll_fas ays_poll_fa-smile';
1293 $rate_res = 'ays_poll_fas ays_poll_fa-smile';
1294 break;
1295
1296 case 'star':
1297 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1298 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1299 break;
1300
1301 default:
1302 $vote_res = 'ays_poll_far ays_poll_fa-thumbs-up';
1303 $rate_res = 'ays_poll_fas ays_poll_fa-star';
1304 break;
1305 }
1306 ?>
1307 <i id="vote-res" class="<?php echo $vote_res; ?>"></i>
1308 </div>
1309 </div>
1310 <div class="if-rating poll-type-block form-group row">
1311 <div class="col-sm-3">
1312 <label for="ays-poll-rate-type">
1313 <?= __('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"); ?>">
1314 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1315 </a></label>
1316 </div>
1317 <div class="col-sm-9 answers-col">
1318 <select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type">
1319 <option value='star' <?= $poll['view_type'] == 'star' ? "selected" : ""; ?>>
1320 <?= __('Stars', "poll-maker"); ?>
1321 </option>
1322 <option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>>
1323 <?= __('Emoji', "poll-maker"); ?>
1324 </option>
1325 </select>
1326 <select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value">
1327 <option value="<?= count($poll['answers']); ?>" selected>
1328 <?= count($poll['answers']); ?>
1329 </option>
1330 </select>
1331 <i id="rate-res" class="<?php echo $rate_res; ?>"></i>
1332 </div>
1333 </div>
1334 <hr class="if-voting if-rating">
1335 <div class="form-group row">
1336 <div class="col-sm-12 only_pro" style="padding:15px;">
1337 <div class="pro_features pro_features_popup">
1338 <div class="pro-features-popup-conteiner">
1339 <div class="pro-features-popup-title">
1340 <?php echo __("Add Fake Votes", "poll-maker"); ?>
1341 </div>
1342 <div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c">
1343 <p>
1344 <?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"); ?>
1345 </p>
1346 </div>
1347 <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">
1348 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
1349 </div>
1350 </div>
1351 </div>
1352 <div class="pro_features" style="justify-content:flex-end;">
1353 </div>
1354 <div class="form-group row">
1355 <div class="col-1">
1356 <input type="checkbox" name="ays_add_f_votes"
1357 value="on">
1358 </div>
1359 <div class="col-11 unset-padding-left">
1360 <label for="ays_add_f_votes">
1361 <?= __('Add fake votes', "poll-maker"); ?>
1362 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Allow users to add their fake votes to each option.", "poll-maker"); ?>">
1363 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1364 </a>
1365 </label>
1366 </div>
1367 </div>
1368 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1369 <div class="ays-poll-new-upgrade-button-box">
1370 <div>
1371 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1372 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1373 </div>
1374 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
1375 </div>
1376 </a>
1377 <div class="ays-poll-new-watch-video-button-box">
1378 <div>
1379 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
1380 <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">
1381 </div>
1382 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
1383 </div>
1384 </div>
1385 </div>
1386 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1387 <div class="if-text poll-type-block form-group row">
1388 <div class="col-sm-3">
1389 <label for="">
1390 <?= __('Choose text type', "poll-maker"); ?>
1391 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'>
1392 <?php echo __( 'Choose the type of the question:' , "poll-maker" ); ?>
1393 <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>
1394 <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>">
1395 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1396 </a>
1397 </label>
1398 </div>
1399 <div class="col-sm-9 answers-col row">
1400 <div class="d-flex" style="padding: 0 15px;">
1401 <div class="form-check-inline">
1402 <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" : ""; ?>>
1403 <label for="ays_poll_text_type_short"><?php echo __("Short text", "poll-maker");?>
1404 </label>
1405 </div>
1406 <div class="form-check-inline">
1407 <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" : ""; ?>>
1408 <label for="ays_poll_text_type_paragraph"><?php echo __("Paragraph", "poll-maker");?>
1409 </label>
1410 </div>
1411 </div>
1412 </div>
1413 </div>
1414 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1415 <div class="if-text poll-type-block form-group row">
1416 <div class="col-sm-3">
1417 <label for='ays_poll_text_type_placeholder'>
1418 <?= __("Placeholder", "poll-maker"); ?>
1419 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1420 title="<?= __("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>">
1421 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1422 </a>
1423 </label>
1424 </div>
1425 <div class="col-sm-3 ays_divider_left">
1426 <input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo $poll_text_type_placeholder?>">
1427 </div>
1428 </div>
1429 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1430 <div class="if-text poll-type-block form-group row">
1431 <div class="col-sm-3">
1432 <label for='ays_poll_text_type_width'>
1433 <?= __("Width", "poll-maker"); ?>
1434 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1435 title="<?= __("Specify the width of the text field.", "poll-maker"); ?>">
1436 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1437 </a>
1438 </label>
1439 </div>
1440 <div class="col-sm-3 ays_divider_left">
1441 <input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo $poll_text_type_width; ?>">
1442 </div>
1443 <div class="col-sm-6">
1444 <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">
1445 <option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option>
1446 <option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option>
1447 </select>
1448 </div>
1449 </div>
1450 <hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>>
1451 <div class="if-text poll-type-block form-group row ays_toggle_parent">
1452 <div class="col-sm-3">
1453 <label for="ays_poll_enable_question_length">
1454 <?= __('Maximum length of a text field', "poll-maker"); ?>
1455 <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" ); ?>">
1456 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1457 </a>
1458 </label>
1459 </div>
1460 <div class="col-sm-1 ays_divider_left">
1461 <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' : ''; ?>>
1462 </div>
1463 <div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>">
1464 <div class="form-group row">
1465 <div class="col-sm-4">
1466 <label for="ays_poll_question_limit_text_type">
1467 <?php echo __('Limit by', "poll-maker"); ?>
1468 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred type of limitation.', "poll-maker"); ?>">
1469 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1470 </a>
1471 </label>
1472 </div>
1473 <div class="col-sm-8">
1474 <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%;">
1475 <option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo __( 'Characters' , "poll-maker" ); ?></option>
1476 <option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo __( 'Words' , "poll-maker" ); ?></option>
1477 </select>
1478 </div>
1479 </div>
1480 <hr>
1481 <div class="form-group row">
1482 <div class="col-sm-4">
1483 <label for="ays_poll_question_text_max_length">
1484 <?php echo __('Length', "poll-maker"); ?>
1485 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Indicate the length of the characters/words.', "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 <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%;">
1492 </div>
1493 </div>
1494 <hr>
1495 <div class="form-group row">
1496 <div class="col-sm-4">
1497 <label for="ays_poll_question_enable_text_message">
1498 <?php echo __('Show word/character counter', "poll-maker"); ?>
1499 <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"); ?>">
1500 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1501 </a>
1502 </label>
1503 </div>
1504 <div class="col-sm-8">
1505 <div class="form-check form-check-inline">
1506 <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" : ""; ?> />
1507 </div>
1508 </div>
1509 </div>
1510 </div>
1511 </div>
1512 </div>
1513 </div>
1514 </div>
1515 <div id="tab2" class="ays-poll-tab-content <?= $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>">
1516 <p class="ays-subtitle">
1517 <?= __('Styling options', "poll-maker"); ?>
1518 </p>
1519 <hr>
1520 <div class="form-group row ays-poll-all-themes-container">
1521 <div class="col-sm-1">
1522 <label for='ays-poll-theme' class="ays_label_flex">
1523 <?= __('Theme', "poll-maker"); ?>
1524 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1525 title="<?= __("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>">
1526 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1527 </a>
1528 </label>
1529 </div>
1530 <div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>">
1531 <div class="ays_poll_theme_image_div col">
1532 <label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>">
1533 <p><?= __('Minimal', "poll-maker") ?></p>
1534 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/minimal.png' ?>"
1535 alt="<?= __('Minimal', "poll-maker") ?>">
1536 </label>
1537 <input type="radio" name="ays_poll_theme" id="theme_minimal"
1538 value="3" <?= ($poll['theme_id'] == 3) ? 'checked' : '' ?>>
1539 </div>
1540 <div class="ays_poll_theme_image_div col">
1541 <label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>">
1542 <p><?= __('Classic Light', "poll-maker") ?></p>
1543 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicLight.png' ?>"
1544 alt="<?= __('Classic Light', "poll-maker") ?>">
1545 </label>
1546 <input type="radio" name="ays_poll_theme" id="theme_classic_light"
1547 value="1" <?= ($poll['theme_id'] <= 1) ? 'checked' : '' ?>>
1548 </div>
1549 <div class="ays_poll_theme_image_div col">
1550 <label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>">
1551 <p><?= __('Classic Dark', "poll-maker") ?></p>
1552 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicDark.png' ?>"
1553 alt="<?= __('Classic Dark', "poll-maker") ?>">
1554 </label>
1555 <input type="radio" name="ays_poll_theme" id="theme_classic_dark"
1556 value="2" <?= ($poll['theme_id'] == 2) ? 'checked' : '' ?>>
1557 </div>
1558 <div class="col">
1559 <div class="form-group row" style="margin: 0px;">
1560 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
1561 <div class="pro_features" style="justify-content:flex-end;">
1562 </div>
1563 <div class="ays_poll_theme_image_div_pro">
1564 <div class="ays_poll_theme_image_div col apm-pro-feature">
1565 <label class="ays-poll-theme-item">
1566 <p>Light Shape</p>
1567 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/LightShape.png' ?>"
1568 alt="Light Shape"
1569 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1570 </label>
1571 </div>
1572 <div class="ays_poll_theme_image_div col apm-pro-feature">
1573 <label class="ays-poll-theme-item">
1574 <p>Dark Shape</p>
1575 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/DarkShape.png' ?>"
1576 alt="Light Shape"
1577 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1578 </label>
1579 </div>
1580 <div class="ays_poll_theme_image_div col apm-pro-feature">
1581 <label class="ays-poll-theme-item">
1582 <p>Coffee Fluid</p>
1583 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/CoffeeFluid.png' ?>"
1584 alt="Coffee Fluid"
1585 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1586 </label>
1587 </div>
1588 <div class="ays_poll_theme_image_div col apm-pro-feature">
1589 <label class="ays-poll-theme-item">
1590 <p><?= __("Aquamarine", "poll-maker") ?></p>
1591 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/Aquamarine.png' ?>"
1592 alt="Aquamarine"
1593 title="<?= __("It is PRO version feature", "poll-maker"); ?>">
1594 </label>
1595 </div>
1596 </div>
1597 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
1598 <div class="ays-poll-new-upgrade-button-box">
1599 <div>
1600 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
1601 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
1602 </div>
1603 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
1604 </div>
1605 </a>
1606 </div>
1607 </div>
1608 </div>
1609 </div>
1610 </div>
1611 <hr>
1612 <div class="col ays-poll-styles-page-main-container">
1613 <div class="row">
1614 <div class="col-lg-6 col-sm-12">
1615 <div class="ays-poll-accordion-options-main-container">
1616 <div class="ays-poll-accordion-header">
1617 <?php echo $poll_acordion_svg_html; ?>
1618 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Poll styles', "poll-maker"); ?></p>
1619 </div>
1620 <hr class="ays-poll-bolder-hr"/>
1621 <div class="ays-poll-accordion-body">
1622 <div class="form-group row">
1623 <div class="col-sm-4">
1624 <label for='ays-poll-main-color'>
1625 <?= __('Main Color', "poll-maker"); ?>
1626 <a class="ays_help"
1627 data-toggle="tooltip"
1628 data-placement="top"
1629 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"); ?>">
1630 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1631 </a>
1632 </label>
1633 </div>
1634 <div class="col-sm-8 ays_divider_left">
1635 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color'
1636 name='ays_poll_main_color'
1637 value="<?= !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/>
1638 </div>
1639 </div>
1640 <hr>
1641 <div class="form-group row">
1642 <div class="col-sm-4">
1643 <label for='ays-poll-text-color'>
1644 <?= __('Text Color', "poll-maker"); ?>
1645 <a class="ays_help"
1646 data-toggle="tooltip"
1647 data-placement="top"
1648 title="<?= __("Specify the color of the text written inside the poll.", "poll-maker"); ?>">
1649 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1650 </a>
1651 </label>
1652 </div>
1653 <div class="col-sm-8 ays_divider_left">
1654 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color'
1655 name='ays_poll_text_color'
1656 value="<?= !empty($options['text_color']) ? $options['text_color'] : $default_colors['text_color']; ?>"/>
1657 </div>
1658 </div>
1659 <hr>
1660 <div class="form-group row">
1661 <div class="col-sm-4">
1662 <label for='ays-poll-icon-color'>
1663 <?= __('Icons Color', "poll-maker"); ?>
1664 <a class="ays_help"
1665 data-toggle="tooltip"
1666 data-placement="top"
1667 title="<?= __("Specify the icon color in voting and rating types.", "poll-maker"); ?>">
1668 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1669 </a>
1670 </label>
1671 </div>
1672 <div class="col-sm-8 ays_divider_left">
1673 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color'
1674 name='ays_poll_icon_color'
1675 value="<?= !empty($options['icon_color']) ? $options['icon_color'] : $default_colors['icon_color']; ?>"/>
1676 </div>
1677 </div>
1678 <hr>
1679 <div class="form-group row">
1680 <div class="col-sm-4">
1681 <label for='ays-poll-bg-color'>
1682 <?= __('Background Color', "poll-maker"); ?>
1683 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Specify the background color of the poll.", "poll-maker"); ?>">
1684 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1685 </a>
1686 </label>
1687 </div>
1688 <div class="col-sm-8 ays_divider_left">
1689 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color'
1690 name='ays_poll_bg_color'
1691 value="<?= !empty($options['bg_color']) ? $options['bg_color'] : $default_colors['bg_color']; ?>"/>
1692 </div>
1693 </div>
1694 <hr>
1695 <div class="form-group row">
1696 <div class="col-sm-4">
1697 <label for='ays-poll-bg-image'>
1698 <?= __('Background Image', "poll-maker"); ?>
1699 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1700 title="<?= __("Add a background image to the poll. If you add a background image, the background color will not be applied.", "poll-maker"); ?>">
1701 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1702 </a>
1703 </label>
1704 </div>
1705 <div class="col-sm-8 ays_divider_left">
1706 <a href="javascript:void(0)" class="add-bg-image button">
1707 <?= $image_text_bg; ?>
1708 </a>
1709 <div class="form-group row" style="<?= $style_bg; ?>">
1710 <div class="ays-poll-bg-image-container">
1711 <span class="ays-remove-bg-img"></span>
1712 <img src="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"
1713 id="ays-poll-bg-img"/>
1714 <input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image"
1715 value="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"/>
1716 <input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos"
1717 value="<?= isset($options['poll_bg_image_position']) ? $options['poll_bg_image_position'] : ""; ?>"/>
1718 </div>
1719 </div>
1720 <div style="<?= $style_bg_options; ?>" id="ays-poll-background-image-options">
1721 <hr>
1722 <div class="form-group row">
1723 <div class="col-sm-12">
1724 <label for="ays_poll_bg_image_position">
1725 <?php echo __( "Background image position", "poll-maker" ); ?>
1726 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('The position of background image of the polls',"poll-maker")?>">
1727 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1728 </a>
1729 </label>
1730 <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;">
1731 <option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo __( "Left Top", "poll-maker" ); ?></option>
1732 <option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo __( "Left Center", "poll-maker" ); ?></option>
1733 <option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo __( "Left Bottom", "poll-maker" ); ?></option>
1734 <option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo __( "Center Top", "poll-maker" ); ?></option>
1735 <option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo __( "Center Center", "poll-maker" ); ?></option>
1736 <option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo __( "Center Bottom", "poll-maker" ); ?></option>
1737 <option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo __( "Right Top", "poll-maker" ); ?></option>
1738 <option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo __( "Right Center", "poll-maker" ); ?></option>
1739 <option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo __( "Right Bottom", "poll-maker" ); ?></option>
1740 </select>
1741 </div>
1742 </div>
1743 <hr>
1744 <div class="form-group row">
1745 <div class="col-sm-8">
1746 <label for="ays_poll_bg_img_in_finish_page">
1747 <?php echo __( "Hide background image on result page", "poll-maker" ); ?>
1748 <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")?>">
1749 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1750 </a>
1751 </label>
1752 </div>
1753 <div class="col-sm-4">
1754 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1755 id="ays_poll_bg_img_in_finish_page"
1756 name="ays_poll_bg_img_in_finish_page"
1757 <?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/>
1758 <label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label>
1759 </div>
1760 </div>
1761 </div>
1762 </div>
1763 </div>
1764 <hr>
1765 <div class="form-group row">
1766 <div class="col-sm-4">
1767 <label for='ays_poll_enable_box_shadow'><?= __('Box shadow', "poll-maker"); ?>
1768 <a class="ays_help" data-toggle="tooltip" data-placement="top"
1769 title="<?= __("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>">
1770 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1771 </a>
1772 </label>
1773 </div>
1774 <div class="col-sm-8 ays_divider_left">
1775 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1776 id="ays_poll_enable_box_shadow"
1777 name="ays_poll_enable_box_shadow" <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>>
1778 <label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label>
1779 <div class="col-sm-12 ays_toggle_target ays_divider_top"
1780 style="margin-top: 10px; padding-top: 10px; <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>">
1781 <label for="ays-poll-box-shadow-color">
1782 <?= __('Box shadow color', "poll-maker") ?>
1783 <a class="ays_help" data-toggle="tooltip"
1784 title="--><?= __('The shadow color of Poll container', "poll-maker") ?>">
1785 <i class="ays_fa ays_fa_info_circle"></i>
1786 </a>
1787 </label>
1788 <input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color'
1789 name='ays_poll_box_shadow_color'
1790 value="<?= (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] : '#000000'; ?>"/>
1791 </div>
1792 <!---->
1793 <hr class="ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1794 <div class="form-group row ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>">
1795 <div class="col-sm-12">
1796 <div class="col-sm-3" style="display: inline-block;">
1797 <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; ?>" />
1798 <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
1799 </div>
1800 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1801 <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; ?>" />
1802 <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
1803 </div>
1804 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
1805 <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; ?>" />
1806 <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
1807 </div>
1808 </div>
1809 </div>
1810 <!---->
1811 </div>
1812 </div>
1813 <hr>
1814 <!-- ---------Aro start gradient -->
1815 <div class="form-group row">
1816 <div class="col-sm-4">
1817 <label for="ays-enable-background-gradient">
1818 <?php echo __('Background Gradient', "poll-maker")?>
1819 <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")?>">
1820 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1821 </a>
1822 </label>
1823 </div>
1824 <div class="col-sm-8 ays_divider_left">
1825 <input type="checkbox" class="ays_toggle ays_toggle_slide"
1826 id="ays-enable-background-gradient"
1827 name="ays_enable_background_gradient"
1828 <?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/>
1829 <label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label>
1830 <div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>">
1831 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1832 <label for='ays-background-gradient-color-1'>
1833 <?php echo __('Color 1', "poll-maker"); ?>
1834 </label>
1835 <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; ?>"/>
1836 </div>
1837 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1838 <label for='ays-background-gradient-color-2'>
1839 <?php echo __('Color 2', "poll-maker"); ?>
1840 </label>
1841 <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; ?>"/>
1842 </div>
1843 <div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
1844 <label for="ays_poll_gradient_direction">
1845 <?php echo __('Gradient direction',"poll-maker")?>
1846 </label>
1847 <select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input">
1848 <option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo __( 'Vertical', "poll-maker"); ?></option>
1849 <option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo __( 'Horizontal', "poll-maker"); ?></option>
1850 <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>
1851 <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>
1852 </select>
1853 </div>
1854 </div>
1855 </div>
1856 </div>
1857 <hr>
1858 <div class="form-group row ays_toggle_parent">
1859 <div class="col-sm-4">
1860 <label for="ays_poll_image_text_logo">
1861 <?= __('Poll Logo', "poll-maker"); ?>
1862 <a class="ays_help" data-toggle="tooltip"
1863 data-placement="top"
1864 title="<?= __("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>">
1865 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1866 </a>
1867 </label>
1868 </div>
1869 <div class="col-sm-8 ays_logo_container ays_divider_left">
1870 <div class="form-group row">
1871 <div class="col-sm-4">
1872 <a href="javascript:void(0)" class="add-logo-image button"><?= $image_text_logo; ?></a>
1873 </div>
1874 <div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?= $style_logo; ?>">
1875 <div class="ays-poll-logo-image-container">
1876 <div class="col-sm-3" style="padding:0;">
1877 <img src="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"
1878 id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/>
1879 <input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image"
1880 value="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/>
1881 </div>
1882 <div class="col-sm-9">
1883 <a href="javascript:void(0)" class="add-logo-remove-image button"><?= __("Remove", "poll-maker"); ?></a>
1884 </div>
1885 </div>
1886 </div>
1887 </div>
1888 <hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1889 <div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1890 <div class="col-sm-4 ">
1891 <label for="ays_disable_answer_hover">
1892 <?= __('Logo URL', "poll-maker"); ?>
1893 <a class="ays_help" data-toggle="tooltip"
1894 data-placement="top"
1895 title="<?= __("Add a URL link to the poll's logo image.", "poll-maker"); ?>">
1896 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1897 </a>
1898 </label>
1899 </div>
1900 <div class="col-sm-8 ays_divider_left">
1901 <input type="checkbox"
1902 name="ays_poll_logo_enable_image_url"
1903 id="ays_poll_logo_enable_image_url"
1904 value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>>
1905 <label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label>
1906 <hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>">
1907 <div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" >
1908 <input type="text"
1909 name="ays_poll_logo_image_url"
1910 id="ays_poll_logo_image_url"
1911 value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL">
1912 </div>
1913 <hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>">
1914 <div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>">
1915 <div class="col-sm-6">
1916 <label for="ays_poll_logo_enable_image_url_new_tab">
1917 <?= __('Open in a new tab', "poll-maker"); ?>
1918 <a class="ays_help" data-toggle="tooltip"
1919 data-placement="top"
1920 title="<?= __("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>">
1921 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1922 </a>
1923 </label>
1924 </div>
1925 <div class="col-sm-6">
1926 <input type="checkbox"
1927 name="ays_poll_logo_enable_image_url_new_tab"
1928 id="ays_poll_logo_enable_image_url_new_tab"
1929 value="on" class="ays_toggle ays_toggle_slide " <?php echo $poll_logo_image_url_check_new_tab; ?>>
1930 <label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label>
1931 </div>
1932 </div>
1933 </div>
1934 </div>
1935 <hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1936 <div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>">
1937 <div class="col-sm-4">
1938 <label for="ays_poll_logo_title">
1939 <?= __('Logo title', "poll-maker"); ?>
1940 <a class="ays_help" data-toggle="tooltip"
1941 data-placement="top"
1942 title="<?php echo __("Specify the title of the Logo image.", "poll-maker"); ?>">
1943 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1944 </a>
1945 </label>
1946 </div>
1947 <div class="col-sm-8 ays_divider_left">
1948 <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); ?>">
1949 </div>
1950 </div>
1951 </div>
1952 </div>
1953 <!-- Poll logo start -->
1954 <hr>
1955 <div class="form-group row">
1956 <div class="col-sm-4">
1957 <label for='ays-poll-title-bg-color'>
1958 <?= __('Title Background Color', "poll-maker"); ?>
1959 <a class="ays_help"
1960 data-toggle="tooltip"
1961 data-placement="top"
1962 title="<?= __("Specify the background color of the title.", "poll-maker"); ?>">
1963 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1964 </a>
1965 </label>
1966 </div>
1967 <div class="col-sm-8 ays_divider_left">
1968 <input type="text" class="ays-text-input" data-alpha="true"
1969 id='ays-poll-title-bg-color'
1970 name='ays_poll_title_bg_color'
1971 value="<?= !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/>
1972 </div>
1973 </div>
1974 <hr>
1975 <div class="form-group row">
1976 <div class="col-sm-4">
1977 <label for='ays_poll_title_font_size'>
1978 <?= __('Title font size', "poll-maker"); ?>
1979 <a class="ays_help"
1980 data-toggle="tooltip"
1981 data-placement="top"
1982 title="<?= __("Specify the font size of the title.", "poll-maker"); ?>">
1983 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
1984 </a>
1985 </label>
1986 </div>
1987 <div class="col-sm-8 ays_divider_left">
1988 <div>
1989 <div>
1990 <label for='ays_poll_title_font_size'>
1991 <?php echo __('On desktop', "poll-maker"); ?>
1992 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC 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" id='ays_poll_title_font_size' name='ays_poll_title_font_size' value="<?= $poll_title_font_size ?>"/>
1999 </div>
2000 </div>
2001 <hr>
2002 <div>
2003 <div>
2004 <label for='ays_poll_title_font_size_mobile'>
2005 <?php echo __('On mobile', "poll-maker"); ?>
2006 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>">
2007 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2008 </a>
2009 </label>
2010 </div>
2011 <div>
2012 <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;?>">
2013 </div>
2014 </div>
2015 </div>
2016 </div>
2017 <hr>
2018 <div class="form-group row">
2019 <div class="col-sm-4">
2020 <label for='ays_poll_title_alignment'>
2021 <?= __('Title alignment', "poll-maker"); ?>
2022 <a class="ays_help"
2023 data-toggle="tooltip"
2024 data-placement="top"
2025 title="<?= __("Specify the alignment of the title.", "poll-maker"); ?>">
2026 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2027 </a>
2028 </label>
2029 </div>
2030 <div class="col-sm-8 ays_divider_left">
2031 <div>
2032 <div>
2033 <label for='ays_poll_title_alignment'>
2034 <?php echo __('On desktop', "poll-maker"); ?>
2035 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for PC devices.', "poll-maker")?>">
2036 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2037 </a>
2038 </label>
2039 </div>
2040 <div>
2041 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment">
2042 <option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2043 <option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2044 <option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option>
2045 </select>
2046 </div>
2047 </div>
2048 <hr>
2049 <div>
2050 <div>
2051 <label for='ays_poll_title_alignment_mobile'>
2052 <?php echo __('On mobile', "poll-maker"); ?>
2053 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for mobile devices.', "poll-maker")?>">
2054 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2055 </a>
2056 </label>
2057 </div>
2058 <div>
2059 <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile">
2060 <option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option>
2061 <option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option>
2062 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option>
2063 </select>
2064 </div>
2065 </div>
2066 </div>
2067 </div>
2068 <hr>
2069 <!-- title text shadow start -->
2070 <div class="form-group row">
2071 <div class="col-sm-4">
2072 <label for="ays_poll_enable_title_text_shadow">
2073 <?php echo __('Title text shadow', "poll-maker")?>
2074 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Add text shadow for the poll title.', "poll-maker")?>">
2075 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2076 </a>
2077 </label>
2078 </div>
2079 <div class="col-sm-8 ays_divider_left">
2080 <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' : ''; ?>/>
2081 <label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label>
2082 <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;' ?>">
2083 <label for='ays_poll_title_text_shadow_color'>
2084 <?php echo __('Color', "poll-maker"); ?>
2085 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify text shadow color.', "poll-maker")?>">
2086 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2087 </a>
2088 </label>
2089 <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; ?>"/>
2090 </div>
2091 <!---->
2092 <hr class="ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none'; ?>">
2093 <div class="form-group row ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none' ?>">
2094 <div class="col-sm-12">
2095 <div class="col-sm-3" style="display: inline-block;">
2096 <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; ?>" />
2097 <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
2098 </div>
2099 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2100 <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; ?>" />
2101 <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
2102 </div>
2103 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2104 <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; ?>" />
2105 <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
2106 </div>
2107 </div>
2108 </div>
2109 <!---->
2110 </div>
2111 </div>
2112 <!-- title text shadow end -->
2113 <div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>">
2114 <hr>
2115 <div class="form-group row">
2116 <div class="col-sm-4">
2117 <label for='ays-poll-icon-size'>
2118 <?= __('Icon size (px)', "poll-maker"); ?>
2119 <a class="ays_help"
2120 data-toggle="tooltip"
2121 data-placement="top"
2122 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"); ?>">
2123 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2124 </a>
2125 </label>
2126 </div>
2127 <div class="col-sm-8 ays_divider_left">
2128 <input type="number" class="ays-text-input ays-text-input-short"
2129 id='ays-poll-icon-size' name='ays_poll_icon_size'
2130 value="<?= (isset($options['icon_size'])) ? $options['icon_size'] : '24'; ?>"/>
2131 </div>
2132 </div>
2133 </div>
2134 <hr>
2135 <div class="form-group row">
2136 <div class="col-sm-4">
2137 <label for='ays-poll-width'>
2138 <?= __('Width (px)', "poll-maker"); ?>
2139 <a class="ays_help"
2140 data-toggle="tooltip"
2141 data-placement="top"
2142 title="<?= __("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>">
2143 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2144 </a>
2145 </label>
2146 </div>
2147 <div class="col-sm-8 ays_divider_left">
2148 <div>
2149 <div>
2150 <label for='ays-poll-width'>
2151 <?php echo __('On desktop', "poll-maker"); ?>
2152 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for PC 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" step="1" min="0" class="ays-text-input ays-text-input-short" id='ays-poll-width' name='ays_poll_width' value="<?= $options['width'] ?>"/>
2159 </div>
2160 </div>
2161 <hr>
2162 <div>
2163 <div>
2164 <label for='ays_poll_width_for_mobile'>
2165 <?php echo __('On mobile', "poll-maker"); ?>
2166 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for mobile devices.', "poll-maker")?>">
2167 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2168 </a>
2169 </label>
2170 </div>
2171 <div>
2172 <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 ?>"/>
2173 <p class="ays_poll_small_hint_text_for_message_variables">
2174 <span><?php echo __( "For 100% leave blank" , "poll-maker" ); ?></span>
2175 </p>
2176 </div>
2177 </div>
2178 </div>
2179 </div>
2180 <hr/>
2181 <div class="form-group row">
2182 <div class="col-sm-4">
2183 <label for='ays_poll_min_height'>
2184 <?php echo __('Min-height', "poll-maker"); ?>
2185 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Set the poll minimum height by entering a numeric value.', "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_min_height' name='ays_poll_min_height' value="<?php echo $poll_min_height; ?>"/>
2192 </div>
2193 </div>
2194 <hr>
2195 <div class="form-group row">
2196 <div class="col-sm-4">
2197 <label for='ays_poll_mobile_max_width'>
2198 <?php echo __('Poll max-width for mobile', "poll-maker"); ?>
2199 <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")?>">
2200 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2201 </a>
2202 </label>
2203 </div>
2204 <div class="col-sm-8 ays_divider_left">
2205 <input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width'
2206 name='ays_poll_mobile_max_width' style="display: inline-block;"
2207 value="<?php echo $poll_mobile_max_width; ?>"/> %
2208 <span class="ays_poll_small_hint_text"><?php echo __("For 100% leave blank", "poll-maker");?></span>
2209 </div>
2210 </div> <!-- Poll max-width for mobile -->
2211 <hr>
2212 </div>
2213 </div>
2214 <div class="ays-poll-accordion-options-main-container">
2215 <div class="ays-poll-accordion-header">
2216 <?php echo $poll_acordion_svg_html; ?>
2217 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Question styles', "poll-maker"); ?></p>
2218 </div>
2219 <hr class="ays-poll-bolder-hr"/>
2220 <div class="ays-poll-accordion-body">
2221 <div class="form-group row">
2222 <div class="col-sm-4">
2223 <label for='ays_questions_font_size'>
2224 <?php echo __('Question font size', "poll-maker"); ?> (px)
2225 <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")?>">
2226 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2227 </a>
2228 </label>
2229 </div>
2230 <div class="col-sm-8 ays_divider_left">
2231 <div>
2232 <div>
2233 <label for='ays_questions_font_size'>
2234 <?php echo __('On desktop', "poll-maker"); ?>
2235 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC 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_pc" id="ays_questions_font_size" value="<?php echo $poll_question_font_size_pc;?>">
2242 </div>
2243 </div>
2244 <hr>
2245 <div>
2246 <div>
2247 <label for='ays_poll_answers_font_size_mobile'>
2248 <?php echo __('On mobile', "poll-maker"); ?>
2249 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>">
2250 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2251 </a>
2252 </label>
2253 </div>
2254 <div>
2255 <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;?>">
2256 </div>
2257 </div>
2258 </div>
2259 </div><!-- Question font size -->
2260 <hr>
2261 <div class="form-group row">
2262 <div class="col-sm-4">
2263 <label for='ays_poll_question_image_height'><?= __('Question image height', "poll-maker"); ?>
2264 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2265 title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2266 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2267 </a>
2268 </label>
2269 </div>
2270 <div class="col-sm-8 ays_divider_left">
2271 <input type="number"
2272 class="ays-text-input ays-text-input-short"
2273 id='ays_poll_question_image_height' name='ays_poll_question_image_height'
2274 value="<?php echo $poll_question_image_height; ?>"/>
2275 </div>
2276 </div><!-- Question image height -->
2277 <hr>
2278 <div class="form-group row">
2279 <div class="col-sm-4">
2280 <label for='ays_poll_question_image_object_fit'><?= __('Question object fit', "poll-maker"); ?>
2281 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2282 title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>">
2283 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2284 </a>
2285 </label>
2286 </div>
2287 <div class="col-sm-8 ays_divider_left">
2288 <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">
2289 <option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo __("Cover", "poll-maker"); ?></option>
2290 <option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo __("Fill", "poll-maker"); ?></option>
2291 <option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo __("Contain", "poll-maker"); ?></option>
2292 <option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo __("Scale-down", "poll-maker"); ?></option>
2293 <option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo __("None", "poll-maker"); ?></option>
2294 </select>
2295 </div>
2296 </div><!-- Question image object fit -->
2297 <hr>
2298 </div>
2299 </div>
2300 <div class="ays-poll-accordion-options-main-container">
2301 <div class="ays-poll-accordion-header">
2302 <?php echo $poll_acordion_svg_html; ?>
2303 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Answer Styles', "poll-maker"); ?></p>
2304 </div>
2305 <hr class="ays-poll-bolder-hr"/>
2306 <div class="ays-poll-accordion-body">
2307 <div class="form-group row">
2308 <div class="col-sm-4">
2309 <label for='ays-poll-box-shadow-color'><?= __('Enable answer styles', "poll-maker"); ?>
2310 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2311 title="<?= __("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>">
2312 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2313 </a>
2314 </label>
2315 </div>
2316 <div class="col-sm-8 ays_divider_left">
2317 <input type="checkbox" class="ays_toggle ays_toggle_slide"
2318 id="ays_poll_enable_answer_style"
2319 name="ays_poll_enable_answer_style" <?= ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>>
2320 <label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label>
2321 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2322 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2323 <label for="ays-poll-box-shadow-color">
2324 <?php echo __('Answers Background Color', "poll-maker"); ?>
2325 <a class="ays_help" data-toggle="tooltip"
2326 title="<?php echo __("Specify the background color of the answers' boxes.", "poll-maker"); ?>">
2327 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2328 </a>
2329 </label>
2330 <input type="text" class="ays-text-input" data-alpha="true"
2331 id='ays-poll-answer-bg-color'
2332 name='ays_poll_answer_bg_color'
2333 value="<?php echo $answer_bg_color; ?>"/>
2334 </div>
2335 <div class="ays_toggle_target ays_divider_top ays_answer_style"
2336 style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>">
2337 <label for="ays-poll-answer-hover-color">
2338 <?php echo __('Answer Hover Color', "poll-maker"); ?>
2339 <a class="ays_help" data-toggle="tooltip"
2340 title="<?php echo __('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>">
2341 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2342 </a>
2343 </label>
2344 <input type="text" class="ays-text-input" data-alpha="true"
2345 id='ays-poll-answer-hover-color'
2346 name='ays_poll_answer_hover_color'
2347 value="<?php echo $answer_hover_color; ?>"/>
2348 </div>
2349 <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;' ?>">
2350 <div>
2351 <label for='ays-poll-border-side'>
2352 <?= __('Border side', "poll-maker"); ?>
2353 <a class="ays_help"
2354 data-toggle="tooltip"
2355 data-placement="top"
2356 title="<?= __("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>">
2357 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2358 </a>
2359 </label>
2360 </div>
2361 <div id="ays-poll-border-side-box">
2362 <select name="ays_poll_border_side" id="ays-poll-border-side"
2363 class="ays-select ays-select-short ays_poll_aysDropdown">
2364 <option value="all_sides" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>>
2365 <?= __("All sides", "poll-maker"); ?>
2366 </option>
2367 <option value="none" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>>
2368 <?= __("None", "poll-maker"); ?>
2369 </option>
2370 <option value="top" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>>
2371 <?= __("Top", "poll-maker"); ?>
2372 </option>
2373 <option value="bottom" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>>
2374 <?= __("Bottom", "poll-maker"); ?>
2375 </option>
2376 <option value="left" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>>
2377 <?= __("Left", "poll-maker"); ?>
2378 </option>
2379 <option value="right" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>>
2380 <?= __("Right", "poll-maker"); ?>
2381 </option>
2382 </select>
2383 </div>
2384 </div>
2385 <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;' ?>">
2386 <div>
2387 <label for='ays_answer_font_size'>
2388 <?= __('Answer font size', "poll-maker"); ?>
2389 <a class="ays_help"
2390 data-toggle="tooltip"
2391 data-placement="top"
2392 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"); ?>">
2393 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2394 </a>
2395 </label>
2396 </div>
2397 <div class="ays_answer_font_size_box">
2398 <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;?>">
2399 </div>
2400 </div>
2401 <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;' ?>">
2402 <div>
2403 <label for='ays_poll_answer_font_size_mobile'>
2404 <?= __('Answer font size for mobile', "poll-maker"); ?>
2405 <a class="ays_help"
2406 data-toggle="tooltip"
2407 data-placement="top"
2408 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"); ?>">
2409 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2410 </a>
2411 </label>
2412 </div>
2413 <div class="ays_answer_font_size_box">
2414 <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;?>">
2415 </div>
2416 </div>
2417 <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;' ?>">
2418 <div>
2419 <label for="ays_poll_answer_img_height" class="ays_enable_answer_style">
2420 <?php echo __('Answer image height (px)', "poll-maker")?>
2421 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2422 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2423 </a>
2424 </label>
2425 </div>
2426 <div>
2427 <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; ?>" />
2428 </div>
2429 </div> <!-- Answers image height -->
2430 <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;' ?>">
2431 <div>
2432 <label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style">
2433 <?php echo __('Answer image height for mobile (px)', "poll-maker")?>
2434 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images on the mobile devices.', "poll-maker")?>">
2435 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2436 </a>
2437 </label>
2438 </div>
2439 <div>
2440 <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; ?>" />
2441 </div>
2442 </div> <!-- Answers image height for mobile-->
2443 <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;' ?>">
2444 <div>
2445 <label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style">
2446 <?php echo __('Answer image border radius (px)', "poll-maker")?>
2447 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Border radius of answers images.', "poll-maker")?>">
2448 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2449 </a>
2450 </label>
2451 </div>
2452 <div>
2453 <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; ?>" />
2454 </div>
2455 </div> <!-- Answers image border radius -->
2456 <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;' ?>">
2457 <div >
2458 <label for="ays_poll_background_size">
2459 <?php echo __('Answer image object fit', "poll-maker"); ?>
2460 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify how an answers’ images should be resized to fit its container.', "poll-maker"); ?>">
2461 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2462 </a>
2463 </label>
2464 </div>
2465 <div id="ays_poll_image_background_size_box">
2466 <select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown">
2467 <option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>>
2468 <?php echo __('Cover', "poll-maker")?>
2469 </option>
2470 <option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>>
2471 <?php echo __('Fill', "poll-maker")?>
2472 </option>
2473 <option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>>
2474 <?php echo __('Contain', "poll-maker")?>
2475 </option>
2476 <option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>>
2477 <?php echo __('Scale-down', "poll-maker")?>
2478 </option>
2479 <option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>>
2480 <?php echo __('None', "poll-maker")?>
2481 </option>
2482 </select>
2483 </div>
2484 </div> <!-- Answer image object fit -->
2485 <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;' ?>">
2486 <div>
2487 <label for="ays_poll_answers_padding" class="ays_enable_answer_style">
2488 <?php echo __('Answer padding (px)', "poll-maker")?>
2489 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Padding of answers.', "poll-maker")?>">
2490 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2491 </a>
2492 </label>
2493 </div>
2494 <div>
2495 <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; ?>"/>
2496 </div>
2497 </div> <!-- Answers padding -->
2498 <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;' ?>">
2499 <div >
2500 <label for="ays_poll_answers_margin" class="ays_enable_answer_style">
2501 <?php echo __('Answer gap (px)', "poll-maker")?>
2502 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Gap between answers.', "poll-maker")?>">
2503 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2504 </a>
2505 </label>
2506 </div>
2507 <div>
2508 <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; ?>" />
2509 </div>
2510 </div> <!-- Answers gap -->
2511 <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;' ?>">
2512 <div>
2513 <label for="ays_poll_answer_border_radius">
2514 <?php echo __('Answer border radius', "poll-maker")?>
2515 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the radius of the answers container.', "poll-maker")?>">
2516 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2517 </a>
2518 </label>
2519 </div>
2520 <div>
2521 <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; ?>"/>
2522 </div>
2523 </div> <!-- Answers border radius -->
2524 </div>
2525 </div>
2526 <hr>
2527 <div class="form-group row">
2528 <div class="col-sm-4">
2529 <label for="ays_poll_show_answers_icon">
2530 <?php echo __('Answer icon', "poll-maker"); ?>
2531 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred icon for the answers.', "poll-maker"); ?>">
2532 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2533 </a>
2534 </label>
2535 </div>
2536 <div class="col-sm-8 ays_divider_left">
2537 <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' : ''; ?> />
2538 <label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label>
2539 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>">
2540 <div class="form-check form-check-inline">
2541 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio">
2542 <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' : ''; ?> />
2543 </label>
2544 </div>
2545 <div class="form-check form-check-inline">
2546 <label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox">
2547 <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' : ''; ?> />
2548 </label>
2549 </div>
2550 </div>
2551 </div>
2552 </div> <!-- Answer icon -->
2553 <hr>
2554 <div class="form-group row">
2555 <div class="col-sm-4">
2556 <label for="ays_answers_view" class="ays_enable_answer_style">
2557 <?php echo __('Answer view', "poll-maker")?>
2558 <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")?>">
2559 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2560 </a>
2561 </label>
2562 </div>
2563 <div class="col-sm-8">
2564 <div class="form-group row">
2565 <div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;">
2566 <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">
2567 <option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>>
2568 <?php echo __('List', "poll-maker")?>
2569 </option>
2570 <option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>>
2571 <?php echo __('Grid', "poll-maker")?>
2572 </option>
2573 </select>
2574 </div>
2575 <div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>">
2576 <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;">
2577 <option value='2' selected>
2578 2
2579 </option>
2580 <option value='3' class="ays-poll-grid-type-columns">
2581 3
2582 </option>
2583 <option value='4' class="ays-poll-grid-type-columns">
2584 4
2585 </option>
2586 </select>
2587 </div>
2588 <div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" >
2589 <div class="col-sm-8" style="display:flex;align-items:center;">
2590 <label for="ays_answers_grid_column_mobile">
2591 <?php echo __('Mobile Single Column View',"poll-maker")?>
2592 </label>
2593 <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")?>">
2594 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2595 </a>
2596 </div>
2597 <div class="col-sm-1 ays_divider_left">
2598 <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'/>
2599 <label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label>
2600 </div>
2601 </div>
2602 </div>
2603 </div>
2604 </div> <!-- Answers view -->
2605 <hr>
2606 <div class="form-group row">
2607 <div class="col-sm-4">
2608 <label for="ays_poll_answers_box_shadow_enable">
2609 <?php echo __('Answer box shadow', "poll-maker")?>
2610 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Allow answer container box shadow', "poll-maker")?>">
2611 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2612 </a>
2613 </label>
2614 </div>
2615 <div class="col-sm-8 ays_divider_left">
2616 <input type="checkbox" class="ays_toggle ays_toggle_slide" id="ays_poll_answers_box_shadow_enable" name="ays_poll_answers_box_shadow_enable" value="on" <?php echo ($poll_answer_enable_box_shadow) ? "checked" : ""; ?>>
2617 <label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label>
2618 <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;"; ?>">
2619 <label for="ays_poll_answers_box_shadow_color">
2620 <?php echo __('Answer shadow color', "poll-maker")?>
2621 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('The shadow color of answers container', "poll-maker")?>">
2622 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2623 </a>
2624 </label>
2625 <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">
2626 </div>
2627 <!---->
2628 <hr class="ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none'; ?>">
2629 <div class="form-group row ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none' ?>">
2630 <div class="col-sm-12">
2631 <div class="col-sm-3" style="display: inline-block;">
2632 <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; ?>" />
2633 <span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span>
2634 </div>
2635 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2636 <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; ?>" />
2637 <span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span>
2638 </div>
2639 <div class="col-sm-3 ays_divider_left" style="display: inline-block;">
2640 <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; ?>" />
2641 <span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span>
2642 </div>
2643 </div>
2644 </div>
2645 <!---->
2646 </div>
2647 </div> <!-- Answers box shadow -->
2648 <hr>
2649 <div class="form-group row">
2650 <div class="col-sm-4">
2651 <label for="ays_disable_answer_hover">
2652 <?= __('Disable answers hover', "poll-maker"); ?>
2653 <a class="ays_help" data-toggle="tooltip"
2654 data-placement="top"
2655 title="<?= __("Disable the hover effect for answers.", "poll-maker"); ?>">
2656 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2657 </a>
2658 </label>
2659 </div>
2660 <div class="col-sm-8 ays_divider_left">
2661 <input type="checkbox"
2662 name="ays_disable_answer_hover"
2663 id="ays_disable_answer_hover"
2664 value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?>
2665 >
2666 </div>
2667 </div>
2668 <hr>
2669 <!--PRO ANSWER STYLEs-->
2670 <div class="form-group row">
2671 <div class="col-sm-12 only_pro">
2672 <div class="pro_features" style="justify-content:flex-end;">
2673 </div>
2674 <div class="form-group row" style="padding: 15px 15px 0">
2675 <div class="" style="width: 100%;">
2676 <div class="form-group row">
2677 <div class="col-sm-5">
2678 <label for="ays_answers_border">
2679 <?php echo __('Answer border', "poll-maker")?>
2680 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Allow answer border', "poll-maker")?>">
2681 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2682 </a>
2683 </label>
2684 </div>
2685 <div class="col-sm-7 ays_divider_left">
2686 <input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on"
2687 checked/>
2688 <label for="ays_answers_border" class="ays_switch_toggle">Toggle</label>
2689 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2690 <label for="ays_answers_border_width">
2691 <?php echo __('Border width', "poll-maker")?> (px)
2692 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The width of answers border', "poll-maker")?>">
2693 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2694 </a>
2695 </label>
2696 <input type="number" class="ays-text-input" id='ays_answers_border_width' name='ays_answers_border_width'
2697 value="" min="0"/>
2698 </div>
2699 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2700 <label for="ays_answers_border_style">
2701 <?php echo __('Border style', "poll-maker")?>
2702 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The style of answers border', "poll-maker")?>">
2703 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2704 </a>
2705 </label>
2706 <select id="ays_answers_border_style" name="ays_answers_border_style" class="ays-text-input ays-select-short">
2707 <option>Solid</option>
2708 </select>
2709 </div>
2710 <div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;">
2711 <label for="ays_answers_border_color">
2712 <?php echo __('Border color', "poll-maker")?>
2713 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The color of the answers border', "poll-maker")?>">
2714 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2715 </a>
2716 </label>
2717 <input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000">
2718 </div>
2719 </div>
2720 </div> <!-- Answers border -->
2721 <hr/>
2722 <div class="form-group row ays_grid_show">
2723 <div class="col-sm-5">
2724 <label for="ays_poll_show_answers_caption">
2725 <?php echo __('Show answers caption', "poll-maker")?>
2726 <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"); ?>">
2727 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2728 </a>
2729 </label>
2730 </div>
2731 <div class="col-sm-7 ays_divider_left">
2732 <input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/>
2733 <label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label>
2734 </div>
2735 </div> <!-- Show answers caption -->
2736 <hr/>
2737 <div class="form-group row">
2738 <div class="col-sm-5">
2739 <label for="ays_ans_img_caption_style">
2740 <?php echo __('Answers image caption style', "poll-maker")?>
2741 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2742 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2743 </a>
2744 </label>
2745 </div>
2746 <div class="col-sm-7 ays_divider_left">
2747 <select class="ays-text-input ays-text-input-short">
2748 <option><?php echo __('Outside', "poll-maker"); ?></option>
2749 </select>
2750 </div>
2751 </div> <!-- Answers image caption style -->
2752 <hr/>
2753 <div class="form-group row">
2754 <div class="col-sm-5">
2755 <label for="ays_ans_img_caption_position">
2756 <?php echo __('Answers image caption position', "poll-maker")?>
2757 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>">
2758 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2759 </a>
2760 </label>
2761 </div>
2762 <div class="col-sm-7 ays_divider_left">
2763 <select class="ays-text-input ays-text-input-short">
2764 <option value="top"><?php echo __('Top', "poll-maker"); ?></option>
2765 </select>
2766 </div>
2767 </div> <!-- Answers image caption position -->
2768 <hr>
2769 </div>
2770 </div>
2771 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2772 <div class="ays-poll-new-upgrade-button-box">
2773 <div>
2774 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
2775 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2776 </div>
2777 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
2778 </div>
2779 </a>
2780 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
2781 <div class="ays-poll-center-big-main-button-box">
2782 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
2783 <div class="ays-poll-center-new-big-upgrade-button">
2784 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
2785 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
2786 <?php echo __("Upgrade", "poll-maker"); ?>
2787 </div>
2788 </a>
2789 </div>
2790 </div>
2791 </div>
2792 </div>
2793 <hr/>
2794 </div>
2795 </div>
2796 <div class="ays-poll-accordion-options-main-container">
2797 <div class="ays-poll-accordion-header">
2798 <?php echo $poll_acordion_svg_html; ?>
2799 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Border styles', "poll-maker"); ?></p>
2800 </div>
2801 <hr class="ays-poll-bolder-hr"/>
2802 <div class="ays-poll-accordion-body">
2803 <div class="form-group row">
2804 <div class="col-sm-4">
2805 <label for='ays-poll-border-style'>
2806 <?= __('Border style', "poll-maker"); ?>
2807 <a class="ays_help"
2808 data-toggle="tooltip"
2809 data-placement="top"
2810 title="<?= __("Choose your preferred style of the border.", "poll-maker"); ?>">
2811 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2812 </a>
2813 </label>
2814 </div>
2815 <div class="col-sm-8 ays_divider_left">
2816 <select name="ays_poll_border_style" id="ays-poll-border-style"
2817 class="ays-select ays-select-short ays_poll_aysDropdown">
2818 <option value="solid" <?= $options['border_style'] == "solid" ? 'selected' : ''; ?>>
2819 <?= __("Solid", "poll-maker"); ?>
2820 </option>
2821 <option value="dashed" <?= $options['border_style'] == "dashed" ? 'selected' : ''; ?>>
2822 <?= __("Dashed", "poll-maker"); ?>
2823 </option>
2824 <option value="dotted" <?= $options['border_style'] == "dotted" ? 'selected' : ''; ?>>
2825 <?= __("Dotted", "poll-maker"); ?>
2826 </option>
2827 <option value="double" <?= $options['border_style'] == "double" ? 'selected' : ''; ?>>
2828 <?= __("Double", "poll-maker"); ?>
2829 </option>
2830 <option value="groove" <?= $options['border_style'] == "groove" ? 'selected' : ''; ?>>
2831 <?= __("Groove", "poll-maker"); ?>
2832 </option>
2833 <option value="ridge" <?= $options['border_style'] == "ridge" ? 'selected' : ''; ?>>
2834 <?= __("Ridge", "poll-maker"); ?>
2835 </option>
2836 <option value="inset" <?= $options['border_style'] == "inset" ? 'selected' : ''; ?>>
2837 <?= __("Inset", "poll-maker"); ?>
2838 </option>
2839 <option value="outset" <?= $options['border_style'] == "outset" ? 'selected' : ''; ?>>
2840 <?= __("Outset", "poll-maker"); ?>
2841 </option>
2842 <option value="none" <?= $options['border_style'] == "none" ? 'selected' : ''; ?>>
2843 <?= __("None", "poll-maker"); ?>
2844 </option>
2845 </select>
2846 </div>
2847 </div>
2848 <hr>
2849 <div class="form-group row">
2850 <div class="col-sm-4">
2851 <label for='ays-poll-border-radius'><?= __('Border radius', "poll-maker"); ?>
2852 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2853 title="<?= __("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>">
2854 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2855 </a>
2856 </label>
2857 </div>
2858 <div class="col-sm-8 ays_divider_left">
2859 <input type="number" min="0"
2860 class="ays-text-input ays-text-input-short"
2861 id='ays-poll-border-radius' name='ays_poll_border_radius'
2862 value="<?= (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/>
2863 </div>
2864 </div>
2865 <hr>
2866 <div class="form-group row">
2867 <div class="col-sm-4">
2868 <label for='ays-poll-border-width'><?= __('Border width', "poll-maker"); ?>
2869 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2870 title="<?= __("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>">
2871 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2872 </a>
2873 </label>
2874 </div>
2875 <div class="col-sm-8 ays_divider_left">
2876 <input type="number" min="0"
2877 class="ays-text-input ays-text-input-short"
2878 id='ays-poll-border-width' name='ays_poll_border_width'
2879 value="<?= isset($options['border_width']) && $options['border_width'] != '' ? $options['border_width'] : 2; ?>"/>
2880 </div>
2881 </div>
2882 <hr>
2883 <div class="form-group row">
2884 <div class="col-sm-4">
2885 <label for='ays-poll-border-color'><?= __('Border color', "poll-maker"); ?>
2886 <a class="ays_help" data-toggle="tooltip" data-placement="top"
2887 title="<?= __("Specify the color of the border.", "poll-maker"); ?>">
2888 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2889 </a>
2890 </label>
2891 </div>
2892 <div class="col-sm-8 ays_divider_left">
2893 <input type="text"
2894 class="ays-text-input"
2895 data-alpha="true"
2896 id='ays-poll-border-color'
2897 name='ays_poll_border_color'
2898 value="<?= $default_border ?>"/>
2899 </div>
2900 </div>
2901 <hr>
2902 <!-- Buttons Styles Start -->
2903 </div>
2904 </div>
2905 <div class="ays-poll-accordion-options-main-container">
2906 <div class="ays-poll-accordion-header">
2907 <?php echo $poll_acordion_svg_html; ?>
2908 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Button Styles', "poll-maker"); ?></p>
2909 </div>
2910 <hr class="ays-poll-bolder-hr"/>
2911 <div class="ays-poll-accordion-body">
2912 <div class="form-group row">
2913 <div class="col-sm-4">
2914 <label for="ays_poll_buttons_size">
2915 <?php echo __('Buttons Size', "poll-maker"); ?>
2916 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Select the size of the button(s) inside the poll.', "poll-maker"); ?>">
2917 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2918 </a>
2919 </label>
2920 </div>
2921 <div class="col-sm-8 ays_divider_left">
2922 <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">
2923 <option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo __('Small', "poll-maker"); ?></option>
2924 <option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo __('Medium', "poll-maker"); ?></option>
2925 <option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo __('Large', "poll-maker"); ?></option>
2926 </select>
2927 </div>
2928 </div> <!-- Buttons Size -->
2929 <hr>
2930 <div class="form-group row">
2931 <div class="col-sm-4">
2932 <label for='ays-poll-button-text-color'>
2933 <?= __('Buttons Text Color', "poll-maker"); ?>
2934 <a class="ays_help"
2935 data-toggle="tooltip"
2936 data-placement="top"
2937 title="<?= __("Specify the color of the text written inside the poll button.", "poll-maker"); ?>">
2938 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2939 </a>
2940 </label>
2941 </div>
2942 <div class="col-sm-8 ays_divider_left">
2943 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color'
2944 name='ays_poll_button_text_color'
2945 value="<?php echo $poll_button_text_color; ?>"/>
2946 </div>
2947 </div><!-- Buttons text color -->
2948 <hr>
2949 <div class="form-group row">
2950 <div class="col-sm-4">
2951 <label for='ays-poll-button-bg-color'>
2952 <?= __('Buttons Background Color', "poll-maker"); ?>
2953 <a class="ays_help"
2954 data-toggle="tooltip"
2955 data-placement="top"
2956 title="<?= __("Specify the background color of the poll button.", "poll-maker"); ?>">
2957 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2958 </a>
2959 </label>
2960 </div>
2961 <div class="col-sm-8 ays_divider_left">
2962 <input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color'
2963 name='ays_poll_button_bg_color'
2964 value="<?php echo $poll_button_bg_color; ?>"/>
2965 </div>
2966 </div><!-- Buttons background color -->
2967 <hr>
2968 <div class="form-group row">
2969 <div class="col-sm-4">
2970 <label for='ays_poll_buttons_font_size'>
2971 <?php echo __('Buttons font size', "poll-maker"); ?> (px)
2972 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the size of the button(s) inside the poll 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 <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; ?>"/>
2979 </div>
2980 </div> <!-- Buttons font size -->
2981 <hr>
2982 <div class="form-group row">
2983 <div class="col-sm-4">
2984 <label for='ays_poll_buttons_mobile_font_size'>
2985 <?php echo __('Buttons mobile font size', "poll-maker"); ?> (px)
2986 <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"); ?>">
2987 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2988 </a>
2989 </label>
2990 </div>
2991 <div class="col-sm-8 ays_divider_left">
2992 <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; ?>"/>
2993 </div>
2994 </div> <!-- Buttons font size -->
2995 <hr>
2996 <div class="form-group row">
2997 <div class="col-sm-4">
2998 <label for="ays_poll_buttons_left_right_padding">
2999 <?php echo __('Buttons padding (px)', "poll-maker"); ?>
3000 <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"); ?>">
3001 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3002 </a>
3003 </label>
3004 </div>
3005 <div class="col-sm-8 ays_divider_left">
3006 <div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;">
3007 <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;" />
3008 <span class="ays_poll_small_hint_text"><?php echo __('Left / Right', "poll-maker"); ?></span>
3009 </div>
3010 <div class="col-sm-5" style="display: inline-block;padding-left: 0;">
3011 <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;" />
3012 <span class="ays_poll_small_hint_text"><?php echo __('Top / Bottom', "poll-maker"); ?></span>
3013 </div>
3014 </div>
3015 </div> <!-- Buttons padding -->
3016 <hr>
3017 <div class="form-group row">
3018 <div class="col-sm-4">
3019 <label for="ays_poll_buttons_border_radius">
3020 <?php echo __('Buttons border radius', "poll-maker"); ?> (px)
3021 <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"); ?>">
3022 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3023 </a>
3024 </label>
3025 </div>
3026 <div class="col-sm-8 ays_divider_left">
3027 <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; ?>"/>
3028 </div>
3029 </div>
3030 <hr>
3031 <div class="form-group row">
3032 <div class="col-sm-4">
3033 <label for='ays_poll_buttons_width'>
3034 <?php echo __('Buttons width', "poll-maker"); ?> (px)
3035 <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"); ?>">
3036 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3037 </a>
3038 </label>
3039 </div>
3040 <div class="col-sm-8 ays_divider_left">
3041 <div>
3042 <div>
3043 <label for="ays_poll_buttons_width">
3044 <?php echo __('On desktop', "poll-maker"); ?>
3045 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for PC devices.', "poll-maker"); ?>">
3046 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3047 </a>
3048 </label>
3049 </div>
3050 <div>
3051 <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; ?>"/>
3052 <span style="display:block;" class="ays_poll_small_hint_text"><?php echo __('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3053 </div>
3054 </div>
3055 <hr>
3056 <div>
3057 <div>
3058 <label for="ays_poll_buttons_mobile_width">
3059 <?php echo __('On mobile', "poll-maker"); ?>
3060 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for mobile devices.', "poll-maker"); ?>">
3061 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3062 </a>
3063 </label>
3064 </div>
3065 <div>
3066 <input type="number" class="ays-text-input ays-text-input-short" id="ays_poll_buttons_mobile_width" name="ays_poll_buttons_mobile_width" value="<?php echo $poll_buttons_mobile_width; ?>"/>
3067 <span style="display:block;" class="ays_poll_small_hint_text"><?php echo __('For an initial width, leave the field blank.', "poll-maker"); ?></span>
3068 </div>
3069 </div>
3070 </div>
3071 </div>
3072 <hr/>
3073 <div class="form-group row">
3074 <div class="col-sm-4">
3075 <label for="ays_poll_custom_class">
3076 <?php echo __('Custom class for poll container', "poll-maker")?>
3077 <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")?>">
3078 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3079 </a>
3080 </label>
3081 </div>
3082 <div class="col-sm-8 ays_divider_left">
3083 <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; ?>">
3084 </div>
3085 </div>
3086 </div>
3087 </div>
3088 </div>
3089 <div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;">
3090 <!-- <style id='apm-custom-css'>
3091 <?=$poll['custom_css']?>
3092 </style> -->
3093 <?php
3094
3095 $content = "
3096 <div class='box-apm-scroll ays-poll-style-tab-live-container'>
3097 <div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''>
3098 <div class='apm-title-box'>
3099 <h5>{$poll['title']}</h5>
3100 </div>";
3101
3102 $content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div>
3103 <div class='apm-img-box'>";
3104 $content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : "";
3105 $checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover';
3106 $content .= "</div>
3107 <div class='apm-answers ays_poll_list_view_container'>";
3108 $minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ;
3109 $minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ;
3110 if ($poll_answer_icon_check && $poll['theme_id'] != 3) {
3111 switch ($poll_answer_icon) {
3112 case 'radio':
3113 $answer_icon_class = 'ays_poll_answer_icon_radio';
3114 break;
3115 case 'checkbox':
3116 $answer_icon_class = 'ays_poll_answer_icon_checkbox';
3117 break;
3118 default:
3119 $answer_icon_class = '';
3120 break;
3121 }
3122 }else{
3123 $answer_icon_class = '';
3124 }
3125 switch ( $poll['type'] ) {
3126 case 'choosing':
3127 if(empty($poll['answers'])){
3128 for ($i = 0 ; $i < $answer_default_count ; $i++){
3129 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i.">
3130 <input type='radio' name='answer' id='radio-".$i."-' value='".$i."'>
3131 <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>
3132
3133 </div>";
3134 }
3135 }
3136 else{
3137 foreach ( $poll['answers'] as $index => $answer ) {
3138 $answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : "";
3139 $poll_class_for_answer_label = "";
3140 $poll_class_for_answer_label_text = "";
3141 if($answer_image != ""){
3142 $poll_class_for_answer_label = "ays_poll_label_without_padding";
3143 $poll_class_for_answer_label_text = "ays_poll_label_text_with_padding";
3144 }
3145 $content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index.">
3146 <input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'>
3147 <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>
3148 </div>";
3149 }
3150 }
3151 break;
3152 case 'voting':
3153 $poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand";
3154 switch ( $poll_view_type_voting ) {
3155 case 'hand':
3156 foreach ( $poll['answers'] as $index => $answer ) {
3157 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3158 <label for='radio-$index-'>";
3159 $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>";
3160 }
3161 break;
3162 case 'emoji':
3163 foreach ( $poll['answers'] as $index => $answer ) {
3164 $content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3165 <label for='radio-$index-'>";
3166 $content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>";
3167 }
3168 break;
3169 default:
3170 break;
3171 }
3172 break;
3173 case 'rating':
3174 $poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star";
3175 switch ( $poll_view_type_rating ) {
3176 case 'star':
3177 foreach ( $poll['answers'] as $index => $answer ) {
3178 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3179 <label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>";
3180 }
3181 break;
3182 case 'emoji':
3183 foreach ( $poll['answers'] as $index => $answer ) {
3184 $content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'>
3185 <label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>";
3186 }
3187 break;
3188 default:
3189 break;
3190 }
3191 break;
3192 case 'text':
3193 $poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text";
3194 switch ( $poll_view_type_text ) {
3195 case 'short_text':
3196 $content .= "<div class='ays-poll-maker-text-live-preview'>
3197 <input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'>
3198 <label for='ays_poll_text_type_short_live'></label>
3199 </div>";
3200 break;
3201 case 'paragraph':
3202 $content .= "<div class='ays-poll-maker-text-live-preview'>
3203 <textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea>
3204 <label for='ays_poll_text_type_paragraph_live'></label>
3205 </div>";
3206 break;
3207 default:
3208 break;
3209 }
3210 break;
3211 default:
3212 break;
3213 }
3214 $content .= "</div>
3215 <div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . ">
3216 <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') . '">
3217 </div>';
3218 $content .= "<div class='".$poll_logo_img." ays_live_logo_container'>";
3219 if($poll_check_logo){
3220 $content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>";
3221 }
3222 $content .= "</div>";
3223
3224 $content .='</div>
3225 </div>';
3226 print $content;
3227 ?>
3228 </div>
3229 </div>
3230 <hr/>
3231 <div class="form-group row">
3232 <div class="col-sm-2">
3233 <label for="ays_custom_css">
3234 <?= __("Custom CSS", "poll-maker"); ?>
3235 </label>
3236 <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"); ?>">
3237 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3238 </a>
3239 <br>
3240 </div>
3241 <div class="col-sm-10 ays_divider_left">
3242 <textarea class="ays-textarea" id="ays_custom_css" name="ays_custom_css" cols="30" rows="10"><?= (isset($poll['custom_css'])) ? $poll['custom_css'] : ''; ?></textarea>
3243 </div>
3244 </div>
3245 <hr/>
3246 <div class="form-group row">
3247 <div class="col-sm-2">
3248 <label for="ays_poll_reset_to_default">
3249 <?php echo __('Reset styles', "poll-maker") ?>
3250 <a class="ays_help" data-toggle="tooltip"
3251 title="<?php echo __('Reset styles to default values', "poll-maker") ?>">
3252 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3253 </a>
3254 </label>
3255 </div>
3256 <div class="col-sm-10 ays_divider_left">
3257 <button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary"
3258 id="ays_poll_reset_to_default"><?= __("Reset", "poll-maker") ?>
3259 </button>
3260 </div>
3261 </div>
3262 </div>
3263 <hr>
3264 </div>
3265 <div id="tab3" class="ays-poll-tab-content <?= $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
3266 <div class="ays-poll-accordion-options-main-container">
3267 <div class="ays-poll-accordion-header">
3268 <?php echo $poll_acordion_svg_html; ?>
3269 <p class="ays-subtitle"><?= __('Feature options', "poll-maker"); ?> </p>
3270 </div>
3271 <hr class="ays-poll-bolder-hr"/>
3272 <div class="ays-poll-accordion-body">
3273 <div class="form-group row">
3274 <div class="col-sm-3">
3275 <label>
3276 <?= __('Status', "poll-maker"); ?>
3277 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3278 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") ?>">
3279 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3280 </a>
3281 </label>
3282 </div>
3283 <div class="col-sm-9">
3284 <div class="d-flex">
3285 <div class="form-check form-check-inline">
3286 <input type="radio" id="ays-publish" name="ays_publish"
3287 value="1" <?= ($published == 1) ? 'checked' : ''; ?> />
3288 <label class="form-check-label"
3289 for="ays-publish"> <?= __('Published', "poll-maker"); ?> </label>
3290 </div>
3291 <div class="form-check form-check-inline">
3292 <input type="radio" id="ays-unpublish" name="ays_publish"
3293 value="0" <?= ($published == 0) ? 'checked' : ''; ?> />
3294 <label class="form-check-label"
3295 for="ays-unpublish"> <?= __('Unpublished', "poll-maker"); ?> </label>
3296 </div>
3297 </div>
3298 </div>
3299 </div>
3300 <hr>
3301 <div class='form-group row'>
3302 <div class="col-sm-3">
3303 <label for='ays-poll-category'>
3304 <?= __('Categories', "poll-maker"); ?>
3305 <a class="ays_help" data-toggle="tooltip"
3306 data-placement="top"
3307 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"); ?>">
3308 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3309 </a>
3310 </label>
3311 </div>
3312 <div class="col-sm-9">
3313 <?php if (!empty($categories)): ?>
3314 <select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple
3315 data-placeholder='<?= __("Select category", "poll-maker") ?>'>
3316 <?php
3317 foreach ( $categories as $cat ) {
3318 ?>
3319 <option value="<?= $cat['id']; ?>" <?= in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>>
3320 <?= $cat['title']; ?>
3321 </option>
3322 <?php }
3323 ?>
3324 </select>
3325 <?php else: ?>
3326 <a href="?page=poll-maker-ays-cats&action=add"><?= __("Create category", "poll-maker") ?></a>
3327 <?php endif; ?>
3328 </div>
3329 </div>
3330 <hr>
3331 <?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?>
3332 <div class="form-group row ays_toggle_parent">
3333 <div class="col-sm-3">
3334 <label for="ays_add_post_for_poll">
3335 <?php echo __('Create post for poll', "poll-maker")?>
3336 <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")?>">
3337 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3338 </a>
3339 </label>
3340 </div>
3341 <div class="col-sm-1">
3342 <input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/>
3343 </div>
3344 <div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none">
3345 <div class="form-group row">
3346 <div class="col-sm-4">
3347 <label for="ays_add_postcat_for_poll">
3348 <?php echo __('Choose Post Categories', "poll-maker")?>
3349 <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")?>">
3350 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3351 </a>
3352 </label>
3353 </div>
3354 <div class="col-sm-8">
3355 <div class="input-group">
3356 <select name="ays_add_postcat_for_poll[]"
3357 id="ays_add_postcat_for_poll"
3358 class="apm-cat-select2"
3359 multiple>
3360 <?php
3361
3362 foreach ($cat_list as $cat) {
3363 echo "<option value='" . $cat->cat_ID . "' >" . htmlentities($cat->name) . "</option>";
3364 }
3365 ?>
3366 </select>
3367 </div>
3368 </div>
3369 </div>
3370 </div>
3371 </div> <!-- Create post for poll -->
3372 <hr/>
3373 <?php else: ?>
3374 <div class="form-group row">
3375 <div class="col-sm-3">
3376 <label for="ays_add_post_for_poll">
3377 <?php echo __('WP Post', "poll-maker")?>
3378 <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")?>">
3379 <i class="ays_fa ays_fa_info_circle"></i>
3380 </a>
3381 </label>
3382 </div>
3383 <div class="col-sm-8" style="margin-left: 15px;">
3384 <div class="row">
3385 <div style="margin-right: 10px;">
3386 <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>
3387 </div>
3388 <div>
3389 <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>
3390 </div>
3391 </div>
3392 </div>
3393 <input type="hidden" name="ays_post_id_for_quiz" value="<?php echo $post_id; ?>">
3394 </div>
3395 <hr>
3396 <?php endif; ?>
3397 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3398 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3399 <div class="pro_features" style="justify-content:flex-end;">
3400 </div>
3401 <div class="form-group row">
3402 <div class="col-sm-3">
3403 <label for="ays_poll_enable_copy_protection">
3404 <?php echo __('Enable copy protection',"poll-maker"); ?>
3405 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Disable copy functionality in poll page(CTRL+C) and Right-click',"poll-maker"); ?>">
3406 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3407 </a>
3408 </label>
3409 </div>
3410 <div class="col-sm-9">
3411 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_copy_protection" />
3412 </div>
3413 </div>
3414 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3415 <div class="ays-poll-new-upgrade-button-box">
3416 <div>
3417 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3418 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3419 </div>
3420 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3421 </div>
3422 </a>
3423 </div>
3424 </div>
3425 <hr/>
3426 <div class="form-group row" style="margin-top:0px;margin-bottom:0;">
3427 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3428 <div class="pro_features" style="justify-content:flex-end;">
3429 </div>
3430 <div class="form-group row">
3431 <div class="col-sm-3">
3432 <label for="ays_poll_question_text_to_speech">
3433 <?php echo __('Enable text to speech',"poll-maker")?>
3434 <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")?>">
3435 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3436 </a>
3437 </label>
3438 </div>
3439 <div class="col-sm-9">
3440 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_question_text_to_speech"
3441 name="ays_poll_question_text_to_speech"
3442 value="on"/>
3443 </div>
3444 </div>
3445 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3446 <div class="ays-poll-new-upgrade-button-box">
3447 <div>
3448 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3449 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3450 </div>
3451 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3452 </div>
3453 </a>
3454 </div>
3455 </div> <!-- Questions text to speech -->
3456 <hr>
3457 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3458 <div class="col-sm-3">
3459 <label for='ays_poll_allow_multivote'>
3460 <?= __('Allow multivote', "poll-maker"); ?>
3461 <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"); ?>">
3462 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3463 </a>
3464 </label>
3465 </div>
3466 <div class="col-sm-1">
3467 <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; ?>>
3468 </div>
3469 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_enable_multivote_answer ? '' : 'display: none'; ?>">
3470 <div class="row">
3471 <div class="col-sm-3">
3472 <label for='ays_poll_multivote_min_count'>
3473 <?= __('Min', "poll-maker"); ?>
3474 <a class="ays_help"
3475 data-toggle="tooltip"
3476 data-placement="top"
3477 title="<?= __("Indicate the minimum count of answers.", "poll-maker"); ?>">
3478 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3479 </a>
3480 </label>
3481 </div>
3482 <div class="col-sm-9">
3483 <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; ?>">
3484 </div>
3485 </div>
3486 <hr>
3487 <div class="row">
3488 <div class="col-sm-3">
3489 <label for='ays_poll_multivote_count'>
3490 <?= __('Max', "poll-maker"); ?>
3491 <a class="ays_help"
3492 data-toggle="tooltip"
3493 data-placement="top"
3494 title="<?= __("Indicate the maximum count of answers.", "poll-maker"); ?>">
3495 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3496 </a>
3497 </label>
3498 </div>
3499 <div class="col-sm-9">
3500 <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; ?>">
3501 </div>
3502 </div>
3503 </div>
3504 </div>
3505 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
3506 <div class="form-group row">
3507 <div class="col-sm-3">
3508 <label for='show-title'>
3509 <?= __('Show Title', "poll-maker"); ?>
3510 <a class="ays_help" data-toggle="tooltip"
3511 data-placement="top"
3512 title="<?= __("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>">
3513 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3514 </a>
3515 </label>
3516 </div>
3517 <div class="col-sm-9">
3518 <input type="checkbox" name="show_title" id="show-title"
3519 value="show" <?= $poll['show_title'] ? 'checked' : ''; ?>>
3520 </div>
3521 </div>
3522 <hr>
3523 <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' ?>" >
3524 <div class="col-sm-3">
3525 <label>
3526 <?= __('Alignment', "poll-maker"); ?>
3527 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3528 title="<?= __('Choose the alignment of the content of the poll.', "poll-maker") ?>">
3529 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3530 </a>
3531 </label>
3532 </div>
3533 <div class="col-sm-9">
3534 <div class="d-flex">
3535 <div class="form-check form-check-inline">
3536 <input type="radio" id="apm-dir-ltr" name="ays_poll_direction"
3537 value="ltr" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> />
3538 <label class="form-check-label"
3539 for="apm-dir-ltr"> <?= __('Left', "poll-maker"); ?> </label>
3540 </div>
3541 <div class="form-check form-check-inline">
3542 <input type="radio" id="apm-dir-center" name="ays_poll_direction"
3543 value="center" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> />
3544 <label class="form-check-label"
3545 for="apm-dir-center"> <?= __('Center', "poll-maker"); ?> </label>
3546 </div>
3547 <div class="form-check form-check-inline">
3548 <input type="radio" id="apm-dir-rtl" name="ays_poll_direction"
3549 value="rtl" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> />
3550 <label class="form-check-label"
3551 for="apm-dir-rtl"> <?= __('Right', "poll-maker"); ?> </label>
3552 </div>
3553 </div>
3554 </div>
3555 </div>
3556 <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' ?>" >
3557 <div class="form-group row">
3558 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
3559 <div class="pro_features pro_features_popup">
3560 <div class="pro-features-popup-conteiner">
3561 <div class="pro-features-popup-title">
3562 <?php echo __("Allow Anonymity", "poll-maker"); ?>
3563 </div>
3564 <div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU">
3565 <p>
3566 <?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"); ?>
3567 </p>
3568 </div>
3569 <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">
3570 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
3571 </div>
3572 </div>
3573 </div>
3574 <div class="pro_features" style="justify-content:flex-end;">
3575 </div>
3576 <div class="form-group row">
3577 <div class="col-sm-3">
3578 <label for='ays-poll-allow-anonymity'>
3579 <?= __('Allow anonymity', "poll-maker"); ?>
3580 <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"); ?>">
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 <input type="checkbox" name="ays_allow_anonymity"
3587 value="1" >
3588 </div>
3589 </div>
3590 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
3591 <div class="ays-poll-new-upgrade-button-box">
3592 <div>
3593 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
3594 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
3595 </div>
3596 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
3597 </div>
3598 </a>
3599 <div class="ays-poll-new-watch-video-button-box">
3600 <div>
3601 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
3602 <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">
3603 </div>
3604 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
3605 </div>
3606 </div>
3607 </div>
3608 <hr>
3609 <div class="form-group row">
3610 <div class="col-sm-3">
3611 <label for='ays_poll_change_creation_date'>
3612 <?= __('Change current poll creation date', "poll-maker"); ?>
3613 <a class="ays_help" data-toggle="tooltip"
3614 data-placement="top"
3615 title="<?= __("Choose your preferred creation date.", "poll-maker"); ?>">
3616 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3617 </a>
3618 </label>
3619 </div>
3620 <div class="col-sm-9" style="display: inherit;">
3621 <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"
3622 value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3623 <div class="input-group-append" style="display: block">
3624 <label for="ays_poll_change_creation_date" class="input-group-text">
3625 <span><i class="ays_fa ays_fa_calendar"></i></span>
3626 </label>
3627 </div>
3628 </div>
3629 </div>
3630 <hr>
3631 <div class="form-group row">
3632 <div class="col-sm-3">
3633 <label for="ays_poll_create_author">
3634 <?php echo __('Change the author of the current poll', "poll-maker"); ?>
3635 <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"); ?>">
3636 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3637 </a>
3638 </label>
3639 </div>
3640 <div class="col-sm-9">
3641 <select id="ays_poll_create_author" class="" name="ays_poll_create_author">
3642 <option value=""><?php echo __('Select User', "poll-maker")?></option>
3643 <?php
3644 $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;
3645 $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) ) : '';
3646 $selected = '';
3647 ?>
3648 <option value="<?php echo $poll_user_id;?>" selected>
3649 <?php echo $poll_user_display_name; ?>
3650 </option>
3651 </select>
3652 </div>
3653 </div> <!-- Change the author of the current poll -->
3654 <hr/>
3655 <!-- Poll Main URL Start -->
3656 <div class="form-group row">
3657 <div class="col-sm-3">
3658 <label for="ays_poll_main_url">
3659 <?php echo __('Poll main URL',$this->plugin_name)?>
3660 <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");
3661 ?>">
3662 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3663 </a>
3664 </label>
3665 </div>
3666 <div class="col-sm-9">
3667 <input type="url" id="ays_poll_main_url" name="ays_poll_main_url" class="ays-text-input" value="<?php echo $poll_main_url; ?>">
3668 </div>
3669 </div>
3670 <!-- Poll Main URL End -->
3671 <hr>
3672 <div class="form-group row">
3673 <div class="col-sm-3">
3674 <label for='show-poll-create-dates'>
3675 <?= __('Show creation date', "poll-maker"); ?>
3676 <a class="ays_help" data-toggle="tooltip"
3677 data-placement="top"
3678 title="<?= __("Enable to show the creation date inside the poll.", "poll-maker"); ?>">
3679 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3680 </a>
3681 </label>
3682 </div>
3683 <div class="col-sm-9">
3684 <input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates"
3685 value="1" <?= $show_create_date ? 'checked' : '' ?> >
3686 </div>
3687 </div>
3688 <hr>
3689 <div class="form-group row">
3690 <div class="col-sm-3">
3691 <label for='show-poll-author'>
3692 <?= __('Show author', "poll-maker"); ?>
3693 <a class="ays_help" data-toggle="tooltip"
3694 data-placement="top"
3695 title="<?= __("Enable to show the author inside the poll.", "poll-maker"); ?>">
3696 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3697 </a>
3698 </label>
3699 </div>
3700 <div class="col-sm-9">
3701 <input type="checkbox" name="show_poll_author" id="show-poll-author"
3702 value="1" <?= $show_author ? 'checked' : '' ?> >
3703 </div>
3704 </div>
3705 <hr>
3706 <div class="form-group row">
3707 <div class="col-sm-3">
3708 <label for="schedule_the_poll">
3709 <?= __('Schedule', "poll-maker"); ?>
3710 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3711 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") ?>">
3712 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3713 </a>
3714 </label>
3715 </div>
3716 <div class="col-sm-1">
3717 <input type="checkbox"
3718 id="schedule_the_poll"
3719 class="active_date_check"
3720 name="active_date_check" <?= (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>>
3721 </div>
3722 <div class="col-sm-8">
3723 <div class="row">
3724 <div class="col-sm-12 active_date ays_divider_left"
3725 style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>">
3726 <!-- -1- -->
3727 <div class="form-group row">
3728 <div class="col-sm-3">
3729 <label class="form-check-label" for="ays-active"> <?php echo __('Start date:', "poll-maker"); ?> </label>
3730 </div>
3731 <div class="col-sm-9">
3732 <div class="input-group mb-3">
3733 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active"
3734 value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3735 <div class="input-group-append">
3736 <label for="ays-active" class="input-group-text">
3737 <span><i class="ays_fa ays_fa_calendar"></i></span>
3738 </label>
3739 </div>
3740 </div>
3741 </div>
3742 </div>
3743 <!-- -2- -->
3744 <div class="form-group row">
3745 <div class="col-sm-3">
3746 <label class="form-check-label" for="ays-deactive"> <?php echo __('End date:', "poll-maker"); ?> </label>
3747 </div>
3748 <div class="col-sm-9">
3749 <div class="input-group mb-3">
3750 <input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive"
3751 value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>">
3752 <div class="input-group-append">
3753 <label for="ays-deactive" class="input-group-text">
3754 <span><i class="ays_fa ays_fa_calendar"></i></span>
3755 </label>
3756 </div>
3757 </div>
3758 </div>
3759 </div>
3760 <!-- ////////// -->
3761 <hr>
3762 <div class="form-group row">
3763 <div class="col-sm-3">
3764 <label for='ays_poll_show_timer'>
3765 <?= __('Show timer', "poll-maker"); ?>
3766 <a class="ays_help" data-toggle="tooltip"
3767 data-placement="top"
3768 title="<?= __("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>">
3769 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3770 </a>
3771 </label>
3772 </div>
3773 <div class="col-sm-1">
3774 <input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer"
3775 value="1" <?= $schedule_show_timer ? 'checked' : '' ?> >
3776 </div>
3777 <div class="col-sm-8">
3778 <div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>">
3779 <div class="d-flex">
3780 <div class="form-check form-check-inline">
3781 <input type="radio" id="show_time_countdown" name="ays_show_timer_type"
3782 value="countdown" <?= $show_timer_type == 'countdown' ? 'checked' : ''; ?> />
3783 <label class="form-check-label"
3784 for="show_time_countdown"> <?= __('Show countdown', "poll-maker"); ?> </label>
3785 </div>
3786 <div class="form-check form-check-inline">
3787 <input type="radio" id="show_time_enddate" name="ays_show_timer_type"
3788 value="enddate" <?= $show_timer_type == 'enddate' ? 'checked' : ''; ?> />
3789 <label class="form-check-label"
3790 for="show_time_enddate"> <?= __('Show end date', "poll-maker"); ?> </label>
3791 </div>
3792 </div>
3793 <hr>
3794 <div class='form-group row'>
3795 <div class='col-sm-5'>
3796 <label class="form-check-label" for="show_bottom_timer">
3797 <?= __(' Show timer at the bottom', "poll-maker"); ?>
3798 <a class="ays_help" data-toggle="tooltip"
3799 data-placement="top"
3800 title="<?= __("If you enable this option, the timer will be displayed at the bottom of the poll instead of the top.", "poll-maker"); ?>">
3801 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3802 </a>
3803 </label>
3804 </div>
3805 <div class='col-sm-7'>
3806 <input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?= $show_bottom_timer == true ? 'checked' : ''; ?> >
3807 </div>
3808 </div>
3809 </div>
3810 </div>
3811 </div>
3812 <hr>
3813 <div class="form-group row">
3814 <div class="col-sm-3">
3815 <label class="form-check-label"
3816 for="active_date_message"><?= __("Pre start message:", "poll-maker") ?></label>
3817 </div>
3818 <div class="col-sm-9">
3819 <div class="editor">
3820 <?php
3821 $content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']);
3822 $editor_id = 'active_date_message_soon';
3823 $settings = array(
3824 'editor_height' => $poll_wp_editor_height,
3825 'textarea_name' => 'active_date_message_soon',
3826 'editor_class' => 'ays-textarea',
3827 'media_elements' => false
3828 );
3829 wp_editor($content, $editor_id, $settings);
3830 ?>
3831 </div>
3832 </div>
3833 </div>
3834 <hr>
3835 <!-- -3- -->
3836 <div class="form-group row">
3837 <div class="col-sm-3">
3838 <label class="form-check-label"
3839 for="active_date_message"><?= __("Expiration message:", "poll-maker") ?></label>
3840 </div>
3841 <div class="col-sm-9">
3842 <div class="editor">
3843 <?php
3844 $content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']);
3845 $editor_id = 'active_date_message';
3846 $settings = array(
3847 'editor_height' => $poll_wp_editor_height,
3848 'textarea_name' => 'active_date_message',
3849 'editor_class' => 'ays-textarea',
3850 'media_elements' => false
3851 );
3852 wp_editor($content, $editor_id, $settings);
3853 ?>
3854 </div>
3855 </div>
3856 </div>
3857 <hr>
3858 <div class="form-group row">
3859 <div class="col-sm-3">
3860 <label for='show_result_btn_schedule'>
3861 <?= __('Show result button', "poll-maker"); ?>
3862 <a class="ays_help" data-toggle="tooltip"
3863 data-placement="top"
3864 title="<?= __("Enable to show the result button after the schedule.", "poll-maker"); ?>">
3865 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3866 </a>
3867 </label>
3868 </div>
3869 <div class="col-sm-1">
3870 <input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule"
3871 value="1" <?= $showresbtnschedule ? 'checked' : '' ?> >
3872 </div>
3873 <div class="col-sm-8">
3874 <div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;">
3875 <div class="form-check form-check-inline">
3876 <label class="form-check-label">
3877 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/>
3878 <span>
3879 <?= __('With See Results button', "poll-maker"); ?>
3880 </span>
3881 </label>
3882 </div>
3883 <div class="form-check form-check-inline">
3884 <label class="form-check-label">
3885 <input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/>
3886 <span>
3887 <?= __('Without See Results button', "poll-maker"); ?>
3888 </span>
3889 </label>
3890 </div>
3891 </div>
3892 </div>
3893 </div>
3894 <hr>
3895 <div class="form-group row">
3896 <div class="col-sm-3">
3897 <label for='ays_show_poll_container'>
3898 <?= __("Don't show poll", "poll-maker"); ?>
3899 <a class="ays_help" data-toggle="tooltip"
3900 data-placement="top"
3901 title="<?= __("Do not show the poll container on the front-end at all when it is expired or has not started yet.", "poll-maker"); ?>">
3902 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3903 </a>
3904 </label>
3905 </div>
3906 <div class="col-sm-9">
3907 <input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container"
3908 value="on" <?php echo $poll_check_exp_cont; ?> >
3909 </div>
3910 </div>
3911 </div>
3912 </div>
3913 </div>
3914 </div>
3915 <hr>
3916 <div class="form-group row ays_toggle_parent">
3917 <div class="col-sm-3">
3918 <label for='ays-poll-allow-not-vote'>
3919 <?= __('Allow not to vote', "poll-maker"); ?>
3920 <a class="ays_help"
3921 data-toggle="tooltip"
3922 data-placement="top"
3923 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"); ?>">
3924 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3925 </a></label>
3926 </div>
3927 <div class="col-sm-1">
3928 <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' : ''; ?>>
3929 </div>
3930 <div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;">
3931 <div class="row">
3932 <div class="col-sm-3 ays_divider_left">
3933 <label for="ays-poll-btn-text">
3934 <?= __("Results button text", "poll-maker"); ?>
3935 <a class="ays_help"
3936 data-toggle="tooltip"
3937 data-placement="top"
3938 title="<?= __("Write the text of the button, which shows results.", "poll-maker"); ?>">
3939 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3940 </a>
3941 </label>
3942 </div>
3943 <div class="col-sm-9">
3944 <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"); ?>"/>
3945 </div>
3946 </div>
3947 </div>
3948 </div>
3949 <hr>
3950 <div class="form-group row">
3951 <div class="col-sm-3" style="padding-right: 0px;">
3952 <label for="ays_enable_pass_count">
3953 <?= __('Show passed users count', "poll-maker") ?>
3954 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3955 title="<?= __('Show how many users have passed the poll. It will be shown at the bottom right corner inside the poll.', "poll-maker") ?>">
3956 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3957 </a>
3958 </label>
3959 </div>
3960 <div class="col-sm-9">
3961 <input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count"
3962 value="on" <?= ($enable_pass_count == 'on') ? 'checked' : ''; ?> />
3963 </div>
3964 </div>
3965 <hr>
3966 <div class="form-group row ays_toggle_parent">
3967 <div class="col-sm-3">
3968 <label for="ays_redirect_after_vote">
3969 <?= __('Redirect after voting', "poll-maker"); ?>
3970 <a class="ays_help" data-toggle="tooltip" data-placement="top"
3971 title="<?= __('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>">
3972 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3973 </a>
3974 </label>
3975 </div>
3976 <div class="col-sm-1">
3977 <input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> />
3978 </div>
3979 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>">
3980 <div class="row">
3981 <div class="col-sm-12 ays_divider_left">
3982 <div class="form-group row">
3983 <div class="col-sm-3">
3984 <label for="redirection_url">
3985 <?= __('URL', "poll-maker"); ?>
3986 <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"); ?>">
3987 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
3988 </a>
3989 </label>
3990 </div>
3991 <div class="col-sm-9">
3992 <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">
3993 </div>
3994 </div>
3995 <hr>
3996 <div class="form-group row">
3997 <div class="col-sm-3">
3998 <label for="redirectio_delay">
3999 <?= __('Delay', "poll-maker"); ?>
4000 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4001 title="<?= __('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>">
4002 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4003 </a>
4004 </label>
4005 </div>
4006 <div class="col-sm-9">
4007 <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">
4008 </div>
4009 </div>
4010 </div>
4011 </div>
4012
4013 </div>
4014 </div>
4015 <hr/>
4016 <div class="form-group row">
4017 <div class="col-sm-3">
4018 <label for="randomize-answers">
4019 <?= __('Randomize Answers', "poll-maker"); ?>
4020 <a class="ays_help" data-toggle="tooltip"
4021 data-placement="top"
4022 title="<?= __("Enable to show the answers of the poll in a random sequence.", "poll-maker"); ?>">
4023 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4024 </a>
4025 </label>
4026 </div>
4027 <div class="col-sm-9">
4028 <input type="checkbox"
4029 name="randomize_answers"
4030 id="randomize-answers"
4031 value="on"
4032 <?php echo $randomize_answers ? 'checked' : ''; ?>
4033 />
4034 </div>
4035 </div>
4036 <hr/>
4037 <div class="form-group row ays_toggle_parent">
4038 <div class="col-sm-3" style="padding-right: 0px;">
4039 <label for="ays_enable_asnwers_sound">
4040 <?php echo __('Enable answers sound', "poll-maker")?>
4041 <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")?>">
4042 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4043 </a>
4044 </label>
4045 </div>
4046 <div class="col-sm-1">
4047 <input type="checkbox" id="ays_enable_asnwers_sound"
4048 name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox"
4049 value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/>
4050 </div>
4051 <div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo $enable_asnwers_sound ? '' : 'display:none;' ?>">
4052 <?php if($answers_sound_status): ?>
4053 <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>
4054 <?php else: ?>
4055 <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>
4056 <?php endif; ?>
4057 </div>
4058 </div>
4059 <hr/>
4060 <div class="form-group row">
4061 <div class="col-3">
4062 <label for="ays-poll-reason">
4063 <?= __('Vote Reason', "poll-maker"); ?>
4064 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4065 title="<?= __("Allow users to add their vote reason", "poll-maker"); ?>">
4066 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4067 </a>
4068 </label>
4069 </div>
4070 <div class="col-9">
4071 <input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo $poll_vote_reason; ?>>
4072 </div>
4073 </div>
4074 <hr/>
4075 <div class="form-group row ays_toggle_parent">
4076 <div class="col-sm-3">
4077 <label for="ays_enable_vote_button">
4078 <?= __('Enable Vote button', "poll-maker") ?>
4079 <a class="ays_help" data-toggle="tooltip"
4080 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") ?>">
4081 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4082 </a>
4083 </label>
4084 </div>
4085 <div class="col-sm-1">
4086 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button"
4087 value="1" <?= (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> />
4088 </div>
4089 <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;' : '' ?>">
4090 <div class="row">
4091 <div class="col-sm-3 ays_divider_left">
4092 <label for="ays-poll-btn-text_vote">
4093 <?= __("Vote button text", "poll-maker"); ?>
4094 <a class="ays_help"
4095 data-toggle="tooltip"
4096 data-placement="top"
4097 title="<?= __("Write the text of the vote button.", "poll-maker"); ?>">
4098 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4099 </a>
4100 </label>
4101 </div>
4102 <div class="col-sm-9">
4103 <input type="text" class="ays-text-input ays-text-input-short"
4104 id="ays-poll-btn-text_vote" name="ays_poll_btn_text"
4105 value="<?= stripslashes($options['btn_text']) ?>"/>
4106 </div>
4107 </div>
4108 </div>
4109 </div>
4110 <hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4111 <div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>>
4112 <div class="col-sm-3">
4113 <label for="ays_enable_view_more_button">
4114 <?= __('Enable View more button', "poll-maker") ?>
4115 <a class="ays_help" data-toggle="tooltip"
4116 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"); ?>">
4117 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4118 </a>
4119 </label>
4120 </div>
4121 <div class="col-sm-1">
4122 <input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_view_more_button" name="ays_enable_view_more_button"
4123 value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> />
4124 </div>
4125 <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>">
4126 <div class="form-group row">
4127 <div class="col-sm-3">
4128 <label for="ays_poll_view_more_button_count">
4129 <?php echo __("Count", "poll-maker"); ?>
4130 <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"); ?>">
4131 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4132 </a>
4133 </label>
4134 </div>
4135 <div class="col-sm-9">
4136 <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; ?>"/>
4137 </div>
4138 </div>
4139 </div>
4140 </div>
4141 <hr>
4142 <div class="form-group row">
4143 <div class="col-sm-3">
4144 <label for="ays_answers_sort_select">
4145 <?php echo __('Answers sorting', "poll-maker") ?>
4146 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4147 title="<?php
4148 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") .
4149 "<ul style='list-style-type: circle;padding-left: 20px;'>".
4150 "<li>". __('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>".
4151 "<li>". __('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>".
4152 "<li>". __('Most voted – by most votes', "poll-maker") ."</li>".
4153 "<li>". __('Less voted - by less votes', "poll-maker") ."</li>".
4154 "<li>". __('Default - upon your preferences', "poll-maker") ."</li>".
4155 "</ul>";
4156 ?>">
4157 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4158 </a>
4159 </label>
4160 </div>
4161 <div class="col-sm-9">
4162 <select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown">
4163 <option value="default" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo __('Default', "poll-maker") ?></option>
4164 <option value="ascending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo __('Ascending', "poll-maker") ?></option>
4165 <option value="descending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo __('Descending', "poll-maker") ?></option>
4166 <option value="votes_asc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_asc" ? 'selected' : ''; ?>><?php echo __('Most Voted', "poll-maker") ?></option>
4167 <option value="votes_desc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_desc" ? 'selected' : ''; ?>><?php echo __('Less Voted', "poll-maker") ?></option>
4168 </select>
4169 </div>
4170 </div>
4171 <hr>
4172 <div class="form-group row">
4173 <div class="col-sm-3">
4174 <label>
4175 <?php echo __('Answers numbering', "poll-maker"); ?>
4176 <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"); ?>">
4177 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4178 </a>
4179 </label>
4180 </div>
4181 <div class="col-sm-9">
4182 <select class="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;">
4183 <option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo __( "None", "poll-maker"); ?></option>
4184 <option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo __( "1.", "poll-maker"); ?></option>
4185 <option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo __( "1)", "poll-maker"); ?></option>
4186 <option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo __( "A.", "poll-maker"); ?></option>
4187 <option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo __( "A)", "poll-maker"); ?></option>
4188 <option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo __( "a.", "poll-maker"); ?></option>
4189 <option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo __( "a)", "poll-maker"); ?></option>
4190 </select>
4191 </div>
4192 </div> <!-- Show answers numbering -->
4193 <hr>
4194 <div class="form-group row">
4195 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4196 <div class="pro_features" style="justify-content:flex-end;">
4197 </div>
4198 <div class="form-group row ays_toggle_parent">
4199 <div class="col-sm-3">
4200 <label for="ays_show_votes_before_voting">
4201 <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4202 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4203 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") ?>">
4204 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4205 </a>
4206 </label>
4207 </div>
4208 <div class="col-sm-1">
4209 <input type="checkbox"/>
4210 </div>
4211 <div class="col-sm-8 ays_divider_left ays_toggle_target" >
4212 <div class="d-flex">
4213 <div class="form-check-inline ays_poll_loader">
4214 <label class="form-check-label">
4215 <input type="radio" value="by_count" />
4216 <span><?= __('By count', "poll-maker"); ?></span>
4217 </label>
4218 </div>
4219 <div class="form-check-inline ays_poll_loader">
4220 <label class="form-check-label">
4221 <input type="radio" value="by_percentage"/>
4222 <span><?= __('By percentage', "poll-maker"); ?></span>
4223 </label>
4224 </div>
4225 </div>
4226 </div>
4227 </div> <!-- Status -->
4228 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4229 <div class="ays-poll-new-upgrade-button-box" style="top: -20px;">
4230 <div>
4231 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4232 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4233 </div>
4234 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4235 </div>
4236 </a>
4237 </div>
4238 </div>
4239 </div>
4240 </div>
4241 </div>
4242 <div id="tab4" class="ays-poll-tab-content <?= $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>">
4243 <div class="ays-poll-accordion-options-main-container">
4244 <div class="ays-poll-accordion-header">
4245 <?php echo $poll_acordion_svg_html; ?>
4246 <p class="ays-subtitle"><?= __('Limitation of Users', "poll-maker"); ?></p>
4247 </div>
4248 <hr class="ays-poll-bolder-hr"/>
4249 <div class="ays-poll-accordion-body">
4250 <div class="form-group row ays_toggle_parent">
4251 <div class="col-sm-3">
4252 <label for="apm_limit_users">
4253 <?= __('Maximum number of attempts per user', "poll-maker"); ?>
4254 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4255 title="<?= __('This option allows to block the users who have already voted.', "poll-maker"); ?>">
4256 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4257 </a>
4258 </label>
4259 </div>
4260 <div class="col-sm-1">
4261 <input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox"
4262 value="on" <?= $options['limit_users'] ? 'checked' : ''; ?> />
4263 </div>
4264 <div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?= $options['limit_users'] ? '' : 'display: none;'; ?>">
4265 <div class="ays-limitation-options">
4266 <!-- Limitation method -->
4267 <div class="form-group row">
4268 <div class="col-sm-3">
4269 <label for="ays_redirect_method">
4270 <?= __('Detects users by', "poll-maker"); ?>
4271 <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" ); ?>
4272 <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>
4273 <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>
4274 <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>
4275 <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>"
4276 >
4277 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4278 </a>
4279 </label>
4280 </div>
4281 <div class="col-sm-9">
4282 <div class="ays-poll-sel-fields d-flex p-0">
4283 <div class="ays-poll-check-box mr-2">
4284 <input type="radio" id="ays_limit_method_ip" name="ays_limit_method"
4285 value="ip" <?= (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> />
4286 <label class="form-check-label"
4287 for="ays_limit_method_ip"><?= __('IP', "poll-maker"); ?> </label>
4288 </div>
4289 <div class="ays-poll-check-box mr-2">
4290 <input type="radio" id="ays_limit_method_user" name="ays_limit_method"
4291 value="user" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> />
4292 <label class="form-check-label"
4293 for="ays_limit_method_user"><?= __('User ID', "poll-maker"); ?> </label>
4294 </div>
4295 <div class="ays-poll-check-box mr-2">
4296 <input type="radio" id="ays_limit_method_cookie" name="ays_limit_method"
4297 value="cookie" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> />
4298 <label class="form-check-label"
4299 for="ays_limit_method_cookie"><?= __('Cookie', "poll-maker"); ?> </label>
4300 </div>
4301 <div class="ays-poll-check-box mr-2">
4302 <input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method"
4303 value="cookie_ip" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> />
4304 <label class="form-check-label"
4305 for="ays_limit_method_cookie_ip"><?= __('Cookie and IP', "poll-maker"); ?> </label>
4306 </div>
4307 </div>
4308 </div>
4309 </div>
4310 <hr>
4311 <!-- Limitation message -->
4312 <div class="form-group row">
4313 <div class="col-sm-3">
4314 <label for="ays_limitation_message">
4315 <?= __('Message', "poll-maker"); ?>
4316 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4317 title="<?= __('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4318 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4319 </a>
4320 </label>
4321 </div>
4322 <div class="col-sm-9">
4323 <?php
4324 $content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']);
4325 $editor_id = 'ays_limitation_message';
4326 $settings = array(
4327 'editor_height' => $poll_wp_editor_height,
4328 'textarea_name' => 'ays_limitation_message',
4329 'editor_class' => 'ays-textarea',
4330 'media_elements' => false
4331 );
4332 wp_editor($content, $editor_id, $settings);
4333 ?>
4334 </div>
4335 </div>
4336 <hr>
4337 <!-- Limitation redirect url -->
4338 <div class="form-group row">
4339 <div class="col-sm-3">
4340 <label for="ays_redirect_url">
4341 <?= __('Redirect URL', "poll-maker"); ?>
4342 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4343 title="<?= __('Enable redirection to the custom URL for those who have already passed the poll under the given conditions.', "poll-maker"); ?>">
4344 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4345 </a>
4346 </label>
4347 </div>
4348 <div class="col-sm-9">
4349 <input type="text" name="ays_redirect_url" id="ays_redirect_url"
4350 class="ays-text-input"
4351 value="<?= $options['redirect_url'] ?>"/>
4352 </div>
4353 </div>
4354 <hr>
4355 <!-- Limitation redirect delay -->
4356 <div class="form-group row">
4357 <div class="col-sm-3">
4358 <label for="ays_redirection_delay">
4359 <?= __('Redirect delay (sec)', "poll-maker"); ?>
4360 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4361 title="<?= __('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>">
4362 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4363 </a>
4364 </label>
4365 </div>
4366 <div class="col-sm-9">
4367 <input type="number" name="ays_redirection_delay" id="ays_redirection_delay"
4368 class="ays-text-input"
4369 value="<?= $options['redirection_delay'] ?>"/>
4370 </div>
4371 </div>
4372 <hr>
4373 <div class="form-group row">
4374 <div class="col-sm-3">
4375 <label for="ays_see_result_show">
4376 <?= __('See results', "poll-maker"); ?>
4377 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top"
4378 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" ); ?>
4379 <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>
4380 <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>">
4381 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4382 </a>
4383 </label>
4384 </div>
4385 <div class="col-sm-9">
4386 <div class="row">
4387 <div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;">
4388 <input type="checkbox" id="ays_see_result_show"
4389 name="ays_see_result_show"
4390 class="ays_poll_show_hide_button"
4391 value="on" <?php echo $poll_see_result_button; ?>>
4392 </div>
4393
4394 <div class="col-sm-10" id="ays_poll_show_hide_button">
4395 <div class="row <?php echo $poll_see_result_button_cont; ?>">
4396 <div class="col-sm-6">
4397 <div class="ays-poll-check-box d-flex align-items-center"
4398 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4399 <input type="radio"
4400 id="ays_see_result_button_show"
4401 name="ays_poll_see_result_show"
4402 class="ays_poll_show_hide_button mr-2"
4403 value="ays_see_result_button"
4404 <?php echo $poll_see_result_botton_show ?>>
4405 <label for="ays_see_result_button_show" class="form-check-label">
4406 <?= __('After clicking on the button', "poll-maker"); ?>
4407 </label>
4408 </div>
4409 </div>
4410 <div class="col-sm-6">
4411 <div class="ays-poll-check-box d-flex align-items-center"
4412 style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;">
4413 <input type="radio"
4414 id="ays_see_result_button_hide"
4415 name="ays_poll_see_result_show"
4416 class="ays_poll_show_hide_button mr-2"
4417 value="ays_see_result_immediately"
4418 <?php echo $poll_see_result_immediately ?>>
4419 <label for="ays_see_result_button_hide" class="form-check-label">
4420 <?= __('Directly', "poll-maker"); ?>
4421 </label>
4422 </div>
4423 </div>
4424
4425 </div>
4426 </div>
4427 </div>
4428 </div>
4429 </div>
4430 <hr>
4431 <div class="form-group row">
4432 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4433 <div class="pro_features" style="justify-content:flex-end;">
4434 </div>
4435 <div class="form-group row d-flex">
4436 <div class="col-sm-3">
4437 <label for="ays_attempts_count">
4438 <?php echo __('Attempts count', "poll-maker")?>
4439 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the count of the attempts per user for passing the poll.', "poll-maker")?>">
4440 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4441 </a>
4442 </label>
4443 </div>
4444 <div class="col-sm-9">
4445 <input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input">
4446 </div>
4447 </div>
4448 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4449 <div class="ays-poll-new-upgrade-button-box">
4450 <div>
4451 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4452 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4453 </div>
4454 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4455 </div>
4456 </a>
4457 </div>
4458 </div>
4459 </div>
4460 </div>
4461 </div><!-- Maximum number of attempts per user -->
4462 <hr/>
4463 <div class="form-group row ays_toggle_parent">
4464 <div class="col-sm-3">
4465 <label for="ays_enable_logged_users">
4466 <?= __('Only for logged in users', "poll-maker"); ?>
4467 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4468 title="<?= __('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>">
4469 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4470 </a>
4471 </label>
4472 </div>
4473 <div class="col-sm-1">
4474 <input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox"
4475 value="on" <?= $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> />
4476 </div>
4477 <div class="if-logged-in col-sm-8 ays_toggle_target" style="<?= $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>">
4478 <div class="form-group row">
4479 <div class="col-sm-3">
4480 <label for="ays_logged_in_message">
4481 <?= __('Message', "poll-maker"); ?>
4482 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4483 title="<?= __('Write the message for unauthorized users.', "poll-maker"); ?>">
4484 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4485 </a>
4486 </label>
4487 </div>
4488 <div class="col-sm-9">
4489 <?php
4490 $content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message'];
4491 $editor_id = 'ays_logged_in_message';
4492 $settings = array(
4493 'editor_height' => $poll_wp_editor_height,
4494 'textarea_name' => 'ays_enable_logged_users_message',
4495 'editor_class' => 'ays-textarea',
4496 'media_elements' => false
4497 );
4498 wp_editor($content, $editor_id, $settings);
4499 ?>
4500 </div>
4501 </div>
4502 <hr/>
4503 <div class="form-group row">
4504 <div class="col-sm-3">
4505 <label for="ays_show_login_form">
4506 <?php echo __('Show Login form', "poll-maker")?>
4507 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable to show the login form.', "poll-maker")?>">
4508 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4509 </a>
4510 </label>
4511 </div>
4512 <div class="col-sm-9">
4513 <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' : ''; ?>/>
4514 </div>
4515 </div>
4516 </div>
4517 </div> <!-- Only for logged in users -->
4518 <hr/>
4519 <div class="form-group row ays_toggle_parent">
4520 <div class="col-sm-3">
4521 <label for="ays_enable_restriction_pass">
4522 <?= __('Only for selected user role', "poll-maker"); ?>
4523 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4524 title="<?= __('After enabling this option, only the user roles mentioned in the list will be able to pass the poll.', "poll-maker"); ?>">
4525 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4526 </a>
4527 </label>
4528 </div>
4529 <div class="col-sm-1">
4530 <input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox"
4531 value="on" <?= (isset($options['enable_restriction_pass']) &&
4532 $options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> />
4533 </div>
4534 <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;'; ?>">
4535 <div class="form-group row">
4536 <div class="col-sm-3">
4537 <label for="ays_users_roles">
4538 <?= __('User role', "poll-maker"); ?></label>
4539 </div>
4540 <div class="col-sm-9">
4541 <select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple>
4542 <?php
4543 foreach ($ays_users_roles as $key => $user_role) {
4544 $selected_role = "";
4545 if(is_array($users_role)){
4546 if(in_array($user_role['name'], $users_role)){
4547 $selected_role = 'selected';
4548 }else{
4549 $selected_role = '';
4550 }
4551 }else{
4552 if($users_role == $user_role['name']){
4553 $selected_role = 'selected';
4554 }else{
4555 $selected_role = '';
4556 }
4557 }
4558 echo "<option value='" . $user_role['name'] . "' " . $selected_role . ">" . $user_role['name'] . "</option>";
4559 }
4560 ?>
4561 </select>
4562 </div>
4563 </div>
4564 <hr>
4565 <div class="form-group row">
4566 <div class="col-sm-3">
4567 <label for="restriction_pass_message">
4568 <?= __('Message', "poll-maker"); ?>
4569 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4570 title="<?= __('Write the message for those who aren’t included in the list.', "poll-maker"); ?>">
4571 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4572 </a>
4573 </label>
4574 </div>
4575 <div class="col-sm-9">
4576 <?php
4577 $content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']);
4578 $editor_id = 'restriction_pass_message';
4579 $settings = array(
4580 'editor_height' => $poll_wp_editor_height,
4581 'textarea_name' => 'restriction_pass_message',
4582 'editor_class' => 'ays-textarea',
4583 'media_elements' => false
4584 );
4585 wp_editor($content, $editor_id, $settings);
4586 ?>
4587 </div>
4588 </div>
4589 </div>
4590 </div> <!-- Only for selected user role -->
4591 <hr>
4592 <div class="form-group row ays_toggle_parent">
4593 <div class="col-sm-3">
4594 <label for="ays_poll_enable_password">
4595 <?php echo __('Password for passing Poll', "poll-maker")?>
4596 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose a password for users to pass the poll.' , "poll-maker")?>">
4597 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4598 </a>
4599 </label>
4600 </div>
4601 <div class="col-sm-1">
4602 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password"
4603 name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>>
4604 </div>
4605 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>">
4606 <div class="form-group row">
4607 <div class="col-sm-3">
4608 <label for="ays_poll_password">
4609 <?php echo __('Password' , "poll-maker")?>
4610 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.' , "poll-maker")?>">
4611 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4612 </a>
4613 </label>
4614 </div>
4615 <div class="col-sm-9">
4616 <input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>">
4617 </div>
4618 </div>
4619 <hr>
4620 <div class="form-group row">
4621 <div class="col-sm-3">
4622 <label for="ays_poll_enable_password_visibility">
4623 <?php echo __('Enable toggle password visibility', "poll-maker"); ?>
4624 <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"); ?>">
4625 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4626 </a>
4627 </label>
4628 </div>
4629 <div class="col-sm-9">
4630 <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' : ''; ?>/>
4631 </div>
4632 </div>
4633 <hr>
4634 <div class="form-group row">
4635 <div class="col-sm-3">
4636 <label for="ays_poll_password">
4637 <?php echo __('Message', "poll-maker")?>
4638 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.', "poll-maker")?>">
4639 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4640 </a>
4641 </label>
4642 </div>
4643
4644 <div class="col-sm-9">
4645 <?php
4646 $content = $poll_password_message;
4647 $editor_id = 'ays-poll-password-message';
4648 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
4649 wp_editor($content, $editor_id, $settings);
4650 ?>
4651 </div>
4652 </div>
4653 </div>
4654 </div><!-- Password for passing Poll PRO Feautre-->
4655 <hr>
4656 <div class="form-group row">
4657 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4658 <div class="pro_features" style="justify-content:flex-end;">
4659 </div>
4660 <div class="form-group row ays_toggle_parent">
4661 <div class="col-sm-3">
4662 <label for="ays_enable_tackers_count">
4663 <?php echo __('Limitation count of takers', "poll-maker")?>
4664 <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")?>">
4665 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4666 </a>
4667 </label>
4668 </div>
4669 <div class="col-sm-1">
4670 <input type="checkbox" class="ays-enable-timer1"
4671 name="ays_enable_tackers_count" value="on">
4672 </div>
4673 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4674 <div class="form-group row">
4675 <div class="col-sm-3">
4676 <label for="ays_tackers_count">
4677 <?php echo __('Count', "poll-maker")?>
4678 <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")?>">
4679 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4680 </a>
4681 </label>
4682 </div>
4683 <div class="col-sm-9">
4684 <input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input"
4685 >
4686 </div>
4687 </div>
4688 </div>
4689 </div>
4690 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4691 <div class="ays-poll-new-upgrade-button-box">
4692 <div>
4693 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4694 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4695 </div>
4696 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4697 </div>
4698 </a>
4699 </div>
4700 </div><!-- Limitation count of takers Poll PRO Feautre-->
4701 <hr>
4702 <div class="form-group row">
4703 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4704 <div class="pro_features" style="justify-content:flex-end;">
4705 </div>
4706 <div class="form-group row ays_toggle_parent">
4707 <div class="col-sm-3">
4708 <label for="ays_enable_vote_limitation">
4709 <?php echo __('Allow to vote once per session', "poll-maker")?>
4710 <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")?>">
4711 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4712 </a>
4713 </label>
4714 </div>
4715 <div class="col-sm-1">
4716 <input type="checkbox" class="ays-enable-timer1"
4717 name="ays_enable_vote_limitation" value="on" >
4718 </div>
4719 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4720 <div class="form-group row">
4721 <div class="col-sm-3">
4722 <label for="ays_vote_limitation">
4723 <?php echo __('Session Period', "poll-maker")?>
4724 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Specify the time for one session.', "poll-maker")?>">
4725 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4726 </a>
4727 </label>
4728 </div>
4729 <div class="col-sm-7">
4730 <input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input">
4731
4732 </div>
4733 <div class="col-sm-2 ays_vote_limitation_time_period_box">
4734 <select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period">
4735 <option>Minute(s)
4736 </option>
4737 </select>
4738 </div>
4739 </div>
4740 <div class="form-group row d-flex w-100">
4741 <div class="col-sm-3">
4742 <label for="">
4743 <?= __('Message', "poll-maker"); ?>
4744 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4745 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"); ?>">
4746 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4747 </a>
4748 </label>
4749 </div>
4750 <div class="col-sm-9">
4751 <?php
4752 $editor_id = 'vote_limit_message';
4753 $settings = array(
4754 'editor_height' => 100,
4755 'textarea_name' => 'vote_limit_message',
4756 'editor_class' => 'ays-textarea',
4757 'media_elements' => false
4758 );
4759 wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings);
4760 ?>
4761 </div>
4762 </div>
4763 </div>
4764 </div>
4765 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4766 <div class="ays-poll-new-upgrade-button-box">
4767 <div>
4768 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4769 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4770 </div>
4771 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4772 </div>
4773 </a>
4774 </div>
4775 </div> <!-- Allow to vote once per session PRO Feautre-->
4776 <hr>
4777 <div class="form-group row">
4778 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4779 <div class="pro_features" style="justify-content:flex-end;">
4780 </div>
4781 <div class="form-group row ays_toggle_parent">
4782 <div class="col-sm-3">
4783 <label for="enable_limit_by_country">
4784 <?php echo __('Limit by country', "poll-maker")?>
4785 <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")?>">
4786 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4787 </a>
4788 </label>
4789 </div>
4790 <div class="col-sm-1">
4791 <input type="checkbox" class="ays-enable-timer1"/>
4792 </div>
4793 <div class="col-sm-8 ays_toggle_target ays_divider_left">
4794 <select class="ays-text-input ays-text-input-short" style="width: 15vw;">
4795 <option>Andorra</option>
4796 </select>
4797 </div>
4798 </div>
4799 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4800 <div class="ays-poll-new-upgrade-button-box">
4801 <div>
4802 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4803 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4804 </div>
4805 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4806 </div>
4807 </a>
4808 </div>
4809 </div> <!-- Limit by country PRO Feautre -->
4810 <hr>
4811 </div>
4812 </div>
4813 </div>
4814 <div id="tab5" class="ays-poll-tab-content <?= $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>">
4815 <div class="ays-poll-accordion-options-main-container">
4816 <div class="ays-poll-accordion-header">
4817 <?php echo $poll_acordion_svg_html; ?>
4818 <p class="ays-subtitle"><?= __('User Data Settings', "poll-maker"); ?></p>
4819 </div>
4820 <hr class="ays-poll-bolder-hr"/>
4821 <div class="ays-poll-accordion-body">
4822 <div class="form-group row">
4823 <div class="col-sm-3">
4824 <label>
4825 <?= __('Information form title', "poll-maker"); ?>
4826 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4827 title="<?= __("Write the title of the Information Form which will be shown at the top of the Form Fields.", "poll-maker"); ?>">
4828 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4829 </a>
4830 </label>
4831 </div>
4832 <div class="col-sm-9 ays_divider_left">
4833 <?php
4834 $content = stripslashes($options['info_form_title']);
4835 $editor_id = 'ays-poll-info-form-text';
4836 $settings = array(
4837 'editor_height' => $poll_wp_editor_height,
4838 'textarea_name' => 'ays-poll-info-form-text',
4839 'editor_class' => 'ays-textarea',
4840 'media_elements' => false
4841 );
4842 wp_editor($content, $editor_id, $settings);
4843 ?>
4844 </div>
4845 </div>
4846 <hr>
4847 <div class="form-group row ays_toggle_parent">
4848 <div class="col-sm-2">
4849 <label for='ays_poll_info_form'>
4850 <?= __('Enable Information Form', "poll-maker"); ?>
4851 <a class="ays_help" data-toggle="tooltip"
4852 data-placement="top"
4853 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"); ?>">
4854 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4855 </a>
4856 </label>
4857 </div>
4858 <div class="col-sm-1">
4859 <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' : ''; ?>>
4860 </div>
4861 <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' : ''; ?>">
4862 <div class="col-sm-7">
4863 <label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;">
4864 <?php echo __('Allow collecting information of logged in users', "poll-maker"); ?>
4865 <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")?>">
4866 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4867 </a>
4868 </label>
4869 <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; ?>>
4870 </div> <!-- Allow collecting information of logged in users -->
4871 </div>
4872 <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;"; ?>">
4873 <div>
4874 <label>
4875 <?php echo __('Form Fields', "poll-maker"); ?>
4876 <a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select which fields the user should fill out.", "poll-maker"); ?>">
4877 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4878 </a>
4879 </label>
4880 <hr>
4881 </div>
4882 <div>
4883 <div class="ays-poll-sel-fields d-flex">
4884 <?php foreach ( $all_fields as $field ): ?>
4885 <div class="ays-poll-check-box mr-2">
4886 <input type="checkbox" name="ays-poll-form-fields[]" value="<?= $field['slug']; ?>" id="ays-poll-form-field-<?= $field['slug']; ?>"
4887 <?= (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>>
4888 <label for="ays-poll-form-field-<?= $field['slug']; ?>">
4889 <?= ucfirst($field['name']); ?></label>
4890 </div>
4891 <?php endforeach; ?>
4892 </div>
4893 <hr>
4894 </div>
4895 <div>
4896 <label>
4897 <?= __('Required Fields', "poll-maker"); ?>
4898 <a class="ays_help" data-toggle="tooltip" data-placement="top"
4899 title="<?= __("Select which fields are required.", "poll-maker"); ?>">
4900 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4901 </a>
4902 </label>
4903 <hr>
4904 </div>
4905 <div>
4906 <div class="ays-poll-sel-fields d-flex">
4907 <?php foreach ( $all_fields as $field ): ?>
4908 <div class="ays-poll-check-box mr-2"
4909 id="ays-poll-box-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'],
4910 $fields) === false) ? "style='display:none'" : ""; ?>>
4911 <input type="checkbox" name="ays-poll-form-required-fields[]"
4912 value="<?= $field['slug']; ?>"
4913 id="ays-poll-form-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'],
4914 $required_fields) !== false) ? "checked" : ""; ?>>
4915 <label for="ays-poll-form-rfield-<?= $field['slug']; ?>">
4916 <?= ucfirst($field['name']); ?></label>
4917 </div>
4918 <?php endforeach; ?>
4919 </div>
4920 </div>
4921 </div>
4922 <hr>
4923 </div>
4924 <hr>
4925 <div class="form-group row">
4926 <div class="col-sm-3">
4927 <label for="ays_poll_autofill_user_data">
4928 <?php echo __('Autofill logged-in user data', "poll-maker"); ?>
4929 <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"); ?>">
4930 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4931 </a>
4932 </label>
4933 </div>
4934 <div class="col-sm-9">
4935 <div class="information_form_settings">
4936 <input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>>
4937 </div>
4938 </div>
4939 </div>
4940 <hr>
4941 <div class="form-group row">
4942 <div class="col-sm-3">
4943 <label for="ays_poll_display_fields_labels">
4944 <?php echo __('Display form fields with labels', "poll-maker"); ?>
4945 <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"); ?>">
4946 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4947 </a>
4948 </label>
4949 </div>
4950 <div class="col-sm-9">
4951 <div class="information_form_settings">
4952 <input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>>
4953 </div>
4954 </div>
4955 </div>
4956 <hr>
4957 <div class="form-group row">
4958 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4959 <div class="pro_features" style="justify-content:flex-end;">
4960 </div>
4961 <div class="form-group row">
4962 <div class="col-sm-3">
4963 <label>
4964 <?= __('Add custom fields', "poll-maker"); ?>
4965 <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"); ?>">
4966 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4967 </a>
4968 </label>
4969 </div>
4970 <div class="col-sm-9">
4971 <blockquote>
4972 <?= __("For creating custom fields click ", "poll-maker"); ?>
4973 <a href="?page=<?= $this->plugin_name; ?>-poll-attributes"><?= __("here", "poll-maker"); ?></a>
4974 </blockquote>
4975 </div>
4976 </div>
4977 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4978 <div class="ays-poll-new-upgrade-button-box">
4979 <div>
4980 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4981 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4982 </div>
4983 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
4984 </div>
4985 </a>
4986 </div>
4987 </div>
4988 <hr>
4989 </div>
4990 </div>
4991 </div>
4992 <div id="tab6" class="ays-poll-tab-content <?= $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>">
4993 <div class="ays-poll-accordion-options-main-container">
4994 <div class="ays-poll-accordion-header">
4995 <?php echo $poll_acordion_svg_html; ?>
4996 <p class="ays-subtitle"><?= __('Email settings', "poll-maker"); ?></p>
4997 </div>
4998 <hr class="ays-poll-bolder-hr"/>
4999 <div class="ays-poll-accordion-body">
5000 <div class="form-group row ays_toggle_parent">
5001 <div class="col-sm-3">
5002 <label for="ays_notify_by_email_on">
5003 <?= __('Results notification by email', "poll-maker"); ?>
5004 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5005 title="<?= __('If the option is enabled, the admin(or your provided email) will receive an email notification about votes at each time.', "poll-maker"); ?>">
5006 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5007 </a>
5008 </label>
5009 </div>
5010 <div class="col-sm-1">
5011 <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' : ''; ?> />
5012 </div>
5013 <div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>">
5014 <div class="row ays_divider_left">
5015 <div class="col-sm-3">
5016 <label for="ays_notify_email">
5017 <?php echo __('Email address', "poll-maker"); ?>
5018 <a class="ays_help" data-toggle="tooltip" data-placement="top"
5019 title="<?= __('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>">
5020 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5021 </a>
5022 </label>
5023 </div>
5024 <div class="col-sm-9">
5025 <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">
5026 </div>
5027 </div>
5028 </div>
5029 </div>
5030 <hr>
5031 <div class="form-group row">
5032 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5033 <div class="pro_features pro_features_popup">
5034 <div class="pro-features-popup-conteiner">
5035 <div class="pro-features-popup-title">
5036 <?php echo __("Send Mail to User", "poll-maker"); ?>
5037 </div>
5038 <div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE">
5039 <p>
5040 <?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"); ?>
5041 </p>
5042 <p>
5043 <?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"); ?>
5044 </p>
5045 </div>
5046 <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">
5047 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
5048 </div>
5049 </div>
5050 </div>
5051 <div class="pro_features" style="justify-content:flex-end;">
5052 </div>
5053 <div class="form-group row" >
5054 <div class="col-sm-3">
5055 <label for="ays_enable_mail_user">
5056 <?= __('Send Mail to User', "poll-maker"); ?>
5057 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
5058 title="<?= __('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>">
5059 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5060 </a>
5061 </label>
5062 </div>
5063 <div class="col-sm-1">
5064 <input type="checkbox" name="ays_enable_mail_user" value="on" />
5065 </div>
5066 <div class="col-sm-8 if-enable-email_note">
5067
5068 </div>
5069 </div>
5070 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5071 <div class="ays-poll-new-upgrade-button-box">
5072 <div>
5073 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5074 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5075 </div>
5076 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5077 </div>
5078 </a>
5079 <div class="ays-poll-new-watch-video-button-box">
5080 <div>
5081 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
5082 <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">
5083 </div>
5084 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
5085 </div>
5086 </div>
5087 </div>
5088 <hr>
5089 <div class="form-group row">
5090 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
5091 <div class="pro_features" style="justify-content:flex-end;">
5092 </div>
5093 <div class="form-group row">
5094 <div class="col-sm-4">
5095 <label>
5096 <?php echo __('Email configuration', "poll-maker")?>
5097 <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"); ?>">
5098 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5099 </a>
5100 </label>
5101 </div>
5102 <div class="col-sm-8 ays_divider_left">
5103 <div class="form-group row">
5104 <div class="col-sm-3">
5105 <label for="ays_poll_email_configuration_from_email">
5106 <?php echo __('From email', "poll-maker")?>
5107 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5108 /* translators: 1: opening em tag, 2: closing em tag */
5109 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"),
5110 '<em>',
5111 '</em>'
5112 ) );
5113 ?>">
5114 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5115 </a>
5116 </label>
5117 </div>
5118 <div class="col-sm-9">
5119 <input type="text" class="ays-text-input" />
5120 </div>
5121 </div> <!-- From email -->
5122 <hr/>
5123 <div class="form-group row">
5124 <div class="col-sm-3">
5125 <label for="ays_poll_email_configuration_from_name">
5126 <?php echo __('From name', "poll-maker")?>
5127 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php
5128 /* translators: 1: opening em tag, 2: closing em tag */
5129 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"),
5130 '<em>',
5131 '</em>'
5132 ) );
5133 ?>">
5134 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5135 </a>
5136 </label>
5137 </div>
5138 <div class="col-sm-9">
5139 <input type="text" class="ays-text-input" >
5140 </div>
5141 </div><!-- From name -->
5142 <hr/>
5143 <div class="form-group row">
5144 <div class="col-sm-3">
5145 <label for="ays_poll_email_configuration_from_subject">
5146 <?php echo __('Subject', "poll-maker")?>
5147 <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"); ?>">
5148 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5149 </a>
5150 </label>
5151 </div>
5152 <div class="col-sm-9">
5153 <input type="text" class="ays-text-input">
5154 </div>
5155 </div> <!-- Subject -->
5156 <hr/>
5157 <div class="form-group row">
5158 <div class="col-sm-3">
5159 <label for="ays_poll_email_configuration_replyto_email">
5160 <?php echo __('Reply to email', "poll-maker")?>
5161 <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"); ?>">
5162 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5163 </a>
5164 </label>
5165 </div>
5166 <div class="col-sm-9">
5167 <input type="text" class="ays-text-input">
5168 </div>
5169 </div> <!-- Reply to email -->
5170 <hr/>
5171 <div class="form-group row">
5172 <div class="col-sm-3">
5173 <label for="ays_poll_email_configuration_replyto_name">
5174 <?php echo __('Reply to name', "poll-maker")?>
5175 <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"); ?>">
5176 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5177 </a>
5178 </label>
5179 </div>
5180 <div class="col-sm-9">
5181 <input type="text" class="ays-text-input">
5182 </div>
5183 </div> <!-- Reply to name -->
5184 </div>
5185 </div> <!-- Email Configuration -->
5186 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5187 <div class="ays-poll-new-upgrade-button-box">
5188 <div>
5189 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5190 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5191 </div>
5192 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5193 </div>
5194 </a>
5195 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
5196 <div class="ays-poll-center-big-main-button-box">
5197 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5198 <div class="ays-poll-center-new-big-upgrade-button">
5199 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
5200 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5201 <?php echo __("Upgrade", "poll-maker"); ?>
5202 </div>
5203 </a>
5204 </div>
5205 </div>
5206 </div>
5207 </div>
5208 <hr>
5209 </div>
5210 </div>
5211 </div>
5212 <div id="tab7" class="ays-poll-tab-content <?= $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>">
5213 <div class="ays-poll-accordion-options-main-container">
5214 <div class="ays-poll-accordion-header">
5215 <?php echo $poll_acordion_svg_html; ?>
5216 <p class="ays-subtitle"><?= __('Integrations settings', "poll-maker"); ?></p>
5217 </div>
5218 <hr class="ays-poll-bolder-hr"/>
5219 <div class="ays-poll-accordion-body">
5220 <fieldset class="ays_poll_settings_integration_container">
5221 <legend>
5222 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mailchimp_logo.png" alt="">
5223 <h5><?php echo __('MailChimp Settings', "poll-maker")?></h5>
5224 </legend>
5225 <?php
5226 if(count($mailchimp) > 0):
5227 ?>
5228 <?php
5229 if($mailchimp_username == "" || $mailchimp_api_key == ""):
5230 ?>
5231 <blockquote class="error_message">
5232 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5233 <?php echo (
5234 /* translators: anchor tag */
5235 sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5236 "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>"
5237 )
5238 );
5239 ?>
5240 </blockquote>
5241 <?php
5242 else:
5243 ?>
5244 <div class="form-group row">
5245 <div class="col-sm-4">
5246 <label for="ays_enable_mailchimp">
5247 <?php echo __('Enable MailChimp', "poll-maker")?>
5248 </label>
5249 </div>
5250 <div class="col-sm-1">
5251 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp"
5252 name="ays_enable_mailchimp"
5253 value="on"
5254 <?php
5255 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5256 echo "disabled";
5257 }else{
5258 echo ($enable_mailchimp == 'on') ? 'checked' : '';
5259 }
5260 ?>/>
5261 </div>
5262 </div>
5263 <hr>
5264 <div class="form-group row">
5265 <div class="col-sm-4">
5266 <label for="ays_mailchimp_list">
5267 <?php echo __('MailChimp list', "poll-maker")?>
5268 </label>
5269 </div>
5270 <div class="col-sm-8">
5271 <?php if(is_array($mailchimp_select)): ?>
5272 <select name="ays_mailchimp_list" id="ays_mailchimp_list"
5273 <?php
5274 if($mailchimp_username == "" || $mailchimp_api_key == ""){
5275 echo 'disabled';
5276 }
5277 ?>>
5278 <option value="" disabled selected>Select list</option>
5279 <?php foreach($mailchimp_select as $mlist): ?>
5280 <option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?>
5281 value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option>
5282 <?php endforeach; ?>
5283 </select>
5284 <?php else: ?>
5285 <span><?php echo $mailchimp_select; ?></span>
5286 <?php endif; ?>
5287 </div>
5288 </div>
5289 <?php
5290 endif;
5291 ?>
5292 <?php
5293 else:
5294 ?>
5295 <blockquote class="error_message">
5296 <?php echo (
5297 /* translators: anchor tag */
5298 sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"),
5299 "<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>"
5300 )
5301 );
5302 ?>
5303 </blockquote>
5304 <?php
5305 endif;
5306 ?>
5307 </fieldset><!-- MailChimp Settings -->
5308 <hr/>
5309 <fieldset class="ays_poll_settings_integration_container">
5310 <legend>
5311 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/campaignmonitor_logo.png" alt="">
5312 <h5><?php echo __('Campaign Monitor Settings', "poll-maker") ?></h5>
5313 </legend>
5314 <div class="form-group row" style="margin: 0px;">
5315 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5316 <div class="pro_features" style="justify-content:flex-end;">
5317 </div>
5318 <div class="form-group row">
5319 <div class="col-sm-4">
5320 <label for="ays_enable_monitor">
5321 <?php echo __('Enable Campaign Monitor', "poll-maker") ?>
5322 </label>
5323 </div>
5324 <div class="col-sm-8">
5325 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/>
5326 </div>
5327 </div>
5328 <hr>
5329 <div class="form-group row">
5330 <div class="col-sm-4">
5331 <label for="ays_monitor_list">
5332 <?php echo __('Campaign Monitor list', "poll-maker") ?>
5333 </label>
5334 </div>
5335 <div class="col-sm-8">
5336 <select name="ays_monitor_list" id="ays_monitor_list">
5337 <option value="" disabled selected><?= __("Select List", "poll-maker") ?></option>
5338 </select>
5339 </div>
5340 </div>
5341 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5342 <div class="ays-poll-new-upgrade-button-box">
5343 <div>
5344 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5345 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5346 </div>
5347 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5348 </div>
5349 </a>
5350 </div>
5351 </div>
5352 </fieldset><!-- Campaign Monitor Settings PRO Feature -->
5353 <hr/>
5354 <fieldset class="ays_poll_settings_integration_container">
5355 <legend>
5356 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/zapier_logo.png" alt="">
5357 <h5><?php echo __('Zapier Integration Settings', "poll-maker") ?></h5>
5358 </legend>
5359 <div class="form-group row" style="margin: 0px;">
5360 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5361 <div class="pro_features" style="justify-content:flex-end;">
5362 </div>
5363 <div class="form-group row">
5364 <div class="col-sm-4">
5365 <label for="ays_enable_zapier">
5366 <?php echo __('Enable Zapier Integration', "poll-maker") ?>
5367 </label>
5368 </div>
5369 <div class="col-sm-1">
5370 <input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/>
5371 </div>
5372 <div class="col-sm-3">
5373 <button type="button"
5374 id="testZapier"
5375 class="btn btn-outline-secondary">
5376 <?= __("Send test data", "poll-maker") ?>
5377 </button>
5378 <a class="ays_help" data-toggle="tooltip" style="font-size: 16px;"
5379 title="<?= __('We will send you a test data, and you can catch it in your ZAP for configure it.', "poll-maker") ?>">
5380 <i class="ays_fa ays_fa_info_circle"></i>
5381 </a>
5382 </div>
5383 </div>
5384 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5385 <div class="ays-poll-new-upgrade-button-box">
5386 <div>
5387 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5388 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5389 </div>
5390 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5391 </div>
5392 </a>
5393 </div>
5394 </div>
5395 </fieldset> <!-- Zapier Integration Settings PRO Feature -->
5396 <hr/>
5397 <fieldset class="ays_poll_settings_integration_container">
5398 <legend>
5399 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/activecampaign_logo.png" alt="">
5400 <h5><?php echo __('Active Campaign Settings', "poll-maker") ?></h5>
5401 </legend>
5402 <div class="form-group row" style="margin: 0px;">
5403 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5404 <div class="pro_features" style="justify-content:flex-end;">
5405 </div>
5406 <div class="form-group row">
5407 <div class="col-sm-4">
5408 <label for="ays_enable_active_camp">
5409 <?php echo __('Enable ActiveCampaign', "poll-maker") ?>
5410 </label>
5411 </div>
5412 <div class="col-sm-1">
5413 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/>
5414 </div>
5415 </div>
5416 <hr>
5417 <div class="form-group row">
5418 <div class="col-sm-4">
5419 <label>
5420 <?php echo __('ActiveCampaign list', "poll-maker") ?>
5421 </label>
5422 </div>
5423 <div class="col-sm-8">
5424 <select name="ays_active_camp_list" id="ays_active_camp_list">
5425 <option value="" disabled
5426 selected><?= __("Select List", "poll-maker") ?></option>
5427 <option value=""><?= __("Just create contact", "poll-maker") ?></option>
5428 </select>
5429 </div>
5430 </div>
5431 <hr>
5432 <div class="form-group row">
5433 <div class="col-sm-4">
5434 <label>
5435 <?php echo __('ActiveCampaign automation', "poll-maker") ?>
5436 </label>
5437 </div>
5438 <div class="col-sm-8">
5439 <select name="ays_active_camp_automation" id="ays_active_camp_automation">
5440 <option value="" disabled
5441 selected><?= __("Select List", "poll-maker") ?></option>
5442 <option value=""><?= __("Just create contact", "poll-maker") ?></option>
5443 </select>
5444 </div>
5445 </div>
5446 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5447 <div class="ays-poll-new-upgrade-button-box">
5448 <div>
5449 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5450 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5451 </div>
5452 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5453 </div>
5454 </a>
5455 </div>
5456 </div>
5457 </fieldset><!-- Active Campaign Settings PRO Feature -->
5458 <hr/>
5459 <fieldset class="ays_poll_settings_integration_container">
5460 <legend>
5461 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/slack_logo.png" alt="">
5462 <h5><?php echo __('Slack Settings', "poll-maker") ?></h5>
5463 </legend>
5464 <div class="form-group row" style="margin: 0px;">
5465 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5466 <div class="pro_features" style="justify-content:flex-end;">
5467 </div>
5468 <div class="form-group row">
5469 <div class="col-sm-4">
5470 <label for="ays_enable_slack">
5471 <?php echo __('Enable Slack integration', "poll-maker") ?>
5472 </label>
5473 </div>
5474 <div class="col-sm-1">
5475 <input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/>
5476 </div>
5477 </div>
5478 <hr>
5479 <div class="form-group row">
5480 <div class="col-sm-4">
5481 <label>
5482 <?php echo __('Slack conversation', "poll-maker") ?>
5483 </label>
5484 </div>
5485 <div class="col-sm-8">
5486 <select id="ays_slack_conversation">
5487 <option value="" disabled
5488 selected><?= __("Select Channel", "poll-maker") ?></option>
5489 </select>
5490 </div>
5491 </div>
5492 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5493 <div class="ays-poll-new-upgrade-button-box">
5494 <div>
5495 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5496 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5497 </div>
5498 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5499 </div>
5500 </a>
5501 </div>
5502 </div>
5503 </fieldset> <!-- Slack Settings PRO Feature -->
5504 <hr>
5505 <fieldset class="ays_poll_settings_integration_container">
5506 <legend>
5507 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/sheets_logo.png" alt="">
5508 <h5><?php echo __('Google Sheet Settings', "poll-maker") ?></h5>
5509 </legend>
5510 <div class="form-group row" style="margin: 0px;">
5511 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5512 <div class="pro_features" style="justify-content:flex-end;">
5513 </div>
5514 <div class="form-group row">
5515 <div class="col-sm-4">
5516 <label for="ays_poll_enable_google">
5517 <?php echo __('Enable Google integration', "poll-maker") ?>
5518 </label>
5519 </div>
5520 <div class="col-sm-1">
5521 <input type="checkbox" class="ays-enable-timer1"
5522 value="on">
5523 </div>
5524 </div>
5525 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5526 <div class="ays-poll-new-upgrade-button-box">
5527 <div>
5528 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5529 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5530 </div>
5531 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5532 </div>
5533 </a>
5534 </div>
5535 </div>
5536 </fieldset> <!-- Google Sheet Settings PRO Feature -->
5537 <hr>
5538 <fieldset class="ays_poll_settings_integration_container">
5539 <legend>
5540 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mad-mimi-logo-min.png" alt="">
5541 <h5><?php echo __('Mad Mimi', "poll-maker") ?></h5>
5542 </legend>
5543 <div class="form-group row" style="margin: 0px;">
5544 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5545 <div class="pro_features" style="justify-content:flex-end;">
5546 </div>
5547 <hr/>
5548 <div class="form-group row">
5549 <div class="col-sm-4">
5550 <label for="ays_poll_enable_mad_mimi">
5551 <?php echo __('Enable Mad Mimi', "poll-maker") ?>
5552 </label>
5553 </div>
5554 <div class="col-sm-1">
5555 <input type="checkbox" class="ays-enable-timer1">
5556 </div>
5557 </div>
5558 <hr>
5559 <div class="form-group row">
5560 <div class="col-sm-4">
5561 <label>
5562 <?php echo __('Select List', "poll-maker") ?>
5563 </label>
5564 </div>
5565 <div class="col-sm-8">
5566 <?php
5567 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5568 $mad_mimi_select .= "<option value=''>Select list</option>";
5569 $mad_mimi_select .= "</select>";
5570 echo $mad_mimi_select;
5571
5572 ?>
5573 </div>
5574 </div>
5575 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5576 <div class="ays-poll-new-upgrade-button-box">
5577 <div>
5578 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5579 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5580 </div>
5581 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5582 </div>
5583 </a>
5584 </div>
5585 </div>
5586 </fieldset> <!-- Mad Mimi -->
5587 <hr>
5588 <fieldset class="ays_poll_settings_integration_container">
5589 <legend>
5590 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/get_response.png" alt="">
5591 <h5><?php echo __('GetResponse Settings', "poll-maker") ?></h5>
5592 </legend>
5593 <div class="form-group row" style="margin: 0px;">
5594 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5595 <div class="pro_features" style="justify-content:flex-end;">
5596 </div>
5597 <div class="form-group row">
5598 <div class="col-sm-4">
5599 <label for="ays_poll_enable_getResponse">
5600 <?php echo __('Enable GetResponse', "poll-maker") ?>
5601 </label>
5602 </div>
5603 <div class="col-sm-8">
5604 <input type="checkbox"
5605 class="ays-enable-timer1">
5606 </div>
5607 </div>
5608 <hr>
5609 <div class="form-group row">
5610 <div class="col-sm-4">
5611 <label>
5612 <?php echo __('GetResponse List', "poll-maker") ?>
5613 </label>
5614 </div>
5615 <div class="col-sm-8">
5616 <?php
5617 $mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>";
5618 $mad_mimi_select .= "<option value=''>Select list</option>";
5619 $mad_mimi_select .= "</select>";
5620 echo $mad_mimi_select;
5621
5622 ?>
5623 </div>
5624 </div>
5625 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5626 <div class="ays-poll-new-upgrade-button-box">
5627 <div>
5628 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5629 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5630 </div>
5631 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5632 </div>
5633 </a>
5634 </div>
5635 </div>
5636 </fieldset> <!-- GetResponse Settings -->
5637 <hr>
5638 <fieldset class="ays_poll_settings_integration_container">
5639 <legend>
5640 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/convertkit_logo.png" alt="">
5641 <h5><?php echo __('ConvertKit Settings', "poll-maker")?></h5>
5642 </legend>
5643 <div class="form-group row" style="margin: 0px;">
5644 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5645 <div class="pro_features" style="justify-content:flex-end;">
5646 </div>
5647 <div class="form-group row">
5648 <div class="col-sm-4">
5649 <label for="ays_poll_enable_convertkit">
5650 <?php echo __('Enable ConvertKit', "poll-maker")?>
5651 </label>
5652 </div>
5653 <div class="col-sm-1">
5654 <input type="checkbox" class="ays-enable-timer1"/>
5655 </div>
5656 </div>
5657 <hr>
5658 <div class="form-group row">
5659 <div class="col-sm-4">
5660 <label>
5661 <?php echo __('ConvertKit list', "poll-maker")?>
5662 </label>
5663 </div>
5664 <div class="col-sm-8">
5665 <select id="ays_poll_convertKit_list">
5666 <option value="" disabled selected>Select list</option>
5667 </select>
5668 </div>
5669 </div>
5670 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5671 <div class="ays-poll-new-upgrade-button-box">
5672 <div>
5673 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5674 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5675 </div>
5676 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5677 </div>
5678 </a>
5679 </div>
5680 </div>
5681 </fieldset> <!-- ConvertKit Settings -->
5682 <hr/>
5683 <fieldset class="ays_poll_settings_integration_container">
5684 <legend>
5685 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/klaviyo-logo.png" alt="">
5686 <h5><?php echo __('Klaviyo', "poll-maker") ?></h5>
5687 </legend>
5688 <div class="form-group row" style="margin: 0px;">
5689 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5690 <div class="pro_features" style="justify-content:flex-end;">
5691 </div>
5692 <div class="form-group row">
5693 <div class="col-sm-4">
5694 <label for="ays_poll_enable_klaviyo"><?php echo __('Enable Klaviyo', "poll-maker"); ?></label>
5695 </div>
5696 <div class="col-sm-1">
5697 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled >
5698 </div>
5699 </div>
5700 <hr>
5701 <div class="form-group row">
5702 <div class="col-sm-4">
5703 <label for="ays_poll_klaviyo_list"><?php echo __('Klaviyo list',"poll-maker") ?></label>
5704 </div>
5705 <div class="col-sm-8">
5706 <select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list">
5707 <option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option>
5708 </select>
5709 </div>
5710 </div>
5711 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5712 <div class="ays-poll-new-upgrade-button-box">
5713 <div>
5714 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5715 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5716 </div>
5717 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5718 </div>
5719 </a>
5720 </div>
5721 </div>
5722 </fieldset> <!-- Klaviyo -->
5723 <hr>
5724 <fieldset class="ays_poll_settings_integration_container">
5725 <legend>
5726 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/aweber-logo.png" alt="">
5727 <h5><?php echo __('Aweber', "poll-maker") ?></h5>
5728 </legend>
5729 <div class="form-group row" style="margin: 0px;">
5730 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5731 <div class="pro_features" style="justify-content:flex-end;">
5732 </div>
5733 <div class="form-group row">
5734 <div class="col-sm-4">
5735 <label for="ays_poll_enable_aweber"><?php echo __('Enable Aweber', "poll-maker") ?></label>
5736 </div>
5737 <div class="col-sm-1">
5738 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled />
5739 </div>
5740 </div>
5741 <hr>
5742 <div class="form-group row">
5743 <div class="col-sm-4">
5744 <label for="ays_poll_aweber_list_id"><?php echo __('Aweber Lists', "poll-maker") ?></label>
5745 </div>
5746 <div class="col-sm-8">
5747 <select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'>
5748 <option value='' disabled selected><?php echo __( "Select list", "poll-maker" ) ?></option>
5749 </select>
5750 </div>
5751 </div>
5752 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5753 <div class="ays-poll-new-upgrade-button-box">
5754 <div>
5755 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5756 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5757 </div>
5758 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5759 </div>
5760 </a>
5761 </div>
5762 </div>
5763 </fieldset> <!-- Aweber -->
5764 <hr>
5765 <fieldset class="ays_poll_settings_integration_container">
5766 <legend>
5767 <img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mail_poet.png" alt="">
5768 <h5><?php echo __('MailPoet', "poll-maker") ?></h5>
5769 </legend>
5770 <div class="form-group row" style="margin:0;">
5771 <div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;">
5772 <div class="pro_features" style="justify-content:flex-end;">
5773 </div>
5774 <div class="form-group row">
5775 <div class="col-sm-4">
5776 <label for="ays_poll_enable_mailpoet"><?php echo __('Enable MailPoet',"poll-maker"); ?></label>
5777 </div>
5778 <div class="col-sm-1">
5779 <input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled >
5780 </div>
5781 </div>
5782 <hr>
5783 <div class="form-group row">
5784 <div class="col-sm-4">
5785 <label for="ays_poll_mailpoet_list"><?php echo __('MailPoet list',"poll-maker") ?></label>
5786 </div>
5787 <div class="col-sm-8">
5788 <select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list">
5789 <option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option>
5790 </select>
5791 </div>
5792 </div>
5793 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
5794 <div class="ays-poll-new-upgrade-button-box">
5795 <div>
5796 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
5797 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
5798 </div>
5799 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
5800 </div>
5801 </a>
5802 </div>
5803 </div>
5804 </fieldset> <!-- Mailpoet -->
5805 <hr>
5806 </div>
5807 </div>
5808 </div>
5809 <div id="tab8" class="ays-poll-tab-content <?= $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>">
5810 <div class="ays-poll-accordion-options-main-container">
5811 <div class="ays-poll-accordion-header">
5812 <?php echo $poll_acordion_svg_html; ?>
5813 <p class="ays-subtitle"><?= __('Results Settings', "poll-maker"); ?></p>
5814 </div>
5815 <hr class="ays-poll-bolder-hr"/>
5816 <div class="ays-poll-accordion-body">
5817 <div class="form-group row">
5818 <div class="col-sm-3">
5819 <label for='show-res-percent'>
5820 <?= __('Show answer percent', "poll-maker"); ?>
5821 <a class="ays_help" data-toggle="tooltip"
5822 data-placement="top"
5823 title="<?= __("Enable to show the percentage of each question on the progressbar on the result page of the poll.", "poll-maker"); ?>">
5824 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5825 </a>
5826 </label>
5827 </div>
5828 <div class="col-sm-9">
5829 <input type="checkbox" name="show_res_percent" id="show-res-percent"
5830 value="1" <?= $show_res_percent ? 'checked' : '' ?> >
5831 </div>
5832 </div>
5833 <hr>
5834 <div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent">
5835 <div class="col-sm-3">
5836 <label for='ays-poll-hide-results'>
5837 <?= __('Hide results', "poll-maker"); ?>
5838 <a class="ays_help"
5839 data-toggle="tooltip"
5840 data-placement="top"
5841 title="<?= __("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>">
5842 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5843 </a>
5844 </label>
5845 <p class="ays_poll_small_hint_text_for_message_variables">
5846 <span><?php echo __( "To see all Message Variables " , "poll-maker" ); ?></span>
5847 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here" , "poll-maker" ); ?></a>
5848 </p>
5849 </div>
5850 <div class="col-sm-9 ays_toggle_parent">
5851 <div class="form-group row">
5852
5853 <!-- <div class="col-sm-1"> -->
5854 <div class="col-sm-12">
5855 <input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results"
5856 value="hide" <?= isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>>
5857 </div>
5858 <div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;">
5859 <div class="form-group row">
5860 <div class="col-sm-12">
5861 <div>
5862 <label for='ays-poll-hide-results-text'>
5863 <?= __('Message instead of results', "poll-maker"); ?>
5864 <a class="ays_help"
5865 data-toggle="tooltip"
5866 data-placement="top"
5867 title="<?= __("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>">
5868 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5869 </a>
5870 </label>
5871 </div>
5872 <?php
5873 echo $poll_message_vars_html;
5874 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
5875 $editor_id = 'ays-poll-hide-results-text';
5876 $settings = array(
5877 'editor_height' => $poll_wp_editor_height,
5878 'textarea_name' => 'ays-poll-hide-results-text',
5879 'editor_class' => 'ays-textarea',
5880 'media_elements' => false
5881 );
5882 wp_editor($content, $editor_id, $settings);
5883 ?>
5884 </div>
5885 </div>
5886 </div>
5887 </div>
5888 </div>
5889 </div>
5890 <hr>
5891 <div class="form-group row ays-poll-desc-message-vars-parent">
5892 <div class="col-sm-3">
5893 <label for="ays_poll_result_message">
5894 <?php echo __('Result Message', "poll-maker")?>
5895 <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")?>">
5896 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5897 </a>
5898 </label>
5899 <p class="ays_poll_small_hint_text_for_message_variables">
5900 <span><?php echo __( "To see all Message Variables ", "poll-maker" ); ?></span>
5901 <a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here", "poll-maker" ); ?></a>
5902 </p>
5903 </div>
5904 <div class="col-sm-9 ays_toggle_parent">
5905 <div class="form-group row">
5906 <div class="col-sm-12">
5907 <input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox"
5908 value="hide" <?= isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>>
5909 </div>
5910 <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;'; ?>">
5911 <?php
5912 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'. __("Thank you!", "poll-maker") .'</p>' : '';
5913 echo $poll_message_vars_html;
5914 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
5915 $editor_id = 'ays_result_message';
5916 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
5917 wp_editor($content, $editor_id, $settings);
5918 ?>
5919 </div>
5920 </div>
5921 </div>
5922 </div>
5923 <hr>
5924 <div class="form-group row">
5925 <div class="col-sm-3">
5926 <label for='ays-poll-result-sort-type'>
5927 <?php echo __('Results sorting', "poll-maker"); ?>
5928 <a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php
5929 echo __("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") .
5930 "<ul style='list-style-type: circle;padding-left: 20px;'>".
5931 "<li>". __('Ascending – the smallest to largest', "poll-maker") ."</li>".
5932 "<li>". __('Descending – the largest to smallest', "poll-maker") ."</li>".
5933 "<li>". __('None', "poll-maker") ."</li>".
5934 "</ul>";
5935 ?>">
5936 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5937 </a></label>
5938 </div>
5939 <div class="col-sm-9">
5940 <select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown">
5941 <option value="none" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>>
5942 <?= __("None", "poll-maker"); ?>
5943 </option>
5944 <option value="ASC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>>
5945 <?= __("Ascending", "poll-maker"); ?>
5946 </option>
5947 <option value="DESC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>>
5948 <?= __("Descending", "poll-maker"); ?>
5949 </option>
5950 </select>
5951 </div>
5952 </div>
5953 <hr>
5954 <div class="form-group row">
5955 <div class="col-sm-3">
5956 <label for='show-votes-count'>
5957 <?= __('Show votes count', "poll-maker"); ?>
5958 <a class="ays_help" data-toggle="tooltip"
5959 data-placement="top"
5960 title="<?= __("Enable to show the total number of votes of each answer on the result page of the poll.", "poll-maker"); ?>">
5961 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5962 </a>
5963 </label>
5964 </div>
5965 <div class="col-sm-9">
5966 <input type="checkbox" name="show_votes_count" id="show-votes-count"
5967 value="1" <?= $showvotescount ? 'checked' : '' ?> >
5968 </div>
5969 </div>
5970 <hr>
5971
5972 <!-- Loading effect start -->
5973
5974 <div class="form-group row">
5975 <div class="col-sm-3">
5976 <label for='ays-poll-load-effect'>
5977 <?= __('Loading effect', "poll-maker"); ?>
5978 <a class="ays_help" data-toggle="tooltip"
5979 data-placement="top"
5980 title="<?= __("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>">
5981 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
5982 </a>
5983 </label>
5984 </div>
5985 <div class="col-sm-3">
5986 <select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown">
5987 <option value="load_gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>>
5988 <?= __("Loading GIF", "poll-maker"); ?>
5989 </option>
5990 <option value="opacity" <?= isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>>
5991 <?= __("Opacity", "poll-maker"); ?>
5992 </option>
5993 <option value="blur" <?= isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>>
5994 <?= __("Blur", "poll-maker"); ?>
5995 </option>
5996 <option value="message" <?= isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>>
5997 <?= __("Message", "poll-maker"); ?>
5998 </option>
5999 <option class="apm-pro-feature" disabled
6000 title="<?= __("It is PRO version feature", "poll-maker"); ?>" value="pro">
6001 <?= __("Custom GIF", "poll-maker"); ?>
6002 </option>
6003 </select>
6004 </div>
6005 <div class="if-loading-gif col-sm-6 row">
6006 <div class="apm-loader d-flex justify-content-between align-items-center">
6007 <input type="radio"
6008 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_default' ? 'checked' : ''; ?>
6009 id="plg_default" value="plg_default">
6010 <label for="plg_default" class="apm-loading-gif">
6011 <div class="loader loader--style3">
6012 <svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg"
6013 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6014 height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;"
6015 xml:space="preserve">
6016 <path fill="#000"
6017 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">
6018 <animateTransform attributeType="xml" attributeName="transform"
6019 type="rotate" from="0 25 25" to="360 25 25" dur="0.7s"
6020 repeatCount="indefinite"/>
6021 </path>
6022 </svg>
6023 </div>
6024 </label>
6025 </div>
6026 <div class="apm-loader d-flex justify-content-between align-items-center">
6027 <input type="radio"
6028 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_1' ? 'checked' : ''; ?>
6029 id="plg_1" value="plg_1">
6030 <label for="plg_1" class="apm-loading-gif">
6031 <div class="loader loader--style5">
6032 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6033 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6034 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6035 xml:space="preserve">
6036 <rect x="0" y="0" width="4" height="10" fill="#333">
6037 <animateTransform attributeType="xml" attributeName="transform"
6038 type="translate" values="0 0; 0 20; 0 0" begin="0"
6039 dur="0.8s" repeatCount="indefinite"/>
6040 </rect>
6041 <rect x="10" y="0" width="4" height="10" fill="#333">
6042 <animateTransform attributeType="xml" attributeName="transform"
6043 type="translate" values="0 0; 0 20; 0 0" begin="0.2s"
6044 dur="0.8s" repeatCount="indefinite"/>
6045 </rect>
6046 <rect x="20" y="0" width="4" height="10" fill="#333">
6047 <animateTransform attributeType="xml" attributeName="transform"
6048 type="translate" values="0 0; 0 20; 0 0" begin="0.4s"
6049 dur="0.8s" repeatCount="indefinite"/>
6050 </rect>
6051 </svg>
6052 </div>
6053 </label>
6054 </div>
6055 <div class="apm-loader d-flex justify-content-between align-items-center">
6056 <input type="radio"
6057 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_2' ? 'checked' : ''; ?>
6058 id="plg_2" value="plg_2">
6059 <label for="plg_2" class="apm-loading-gif">
6060 <div class="loader loader--style8">
6061 <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
6062 xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%"
6063 height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;"
6064 xml:space="preserve">
6065 <rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2">
6066 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6067 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6068 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6069 begin="0s" dur="0.7s" repeatCount="indefinite"/>
6070 <animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s"
6071 dur="0.7s" repeatCount="indefinite"/>
6072 </rect>
6073 <rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2">
6074 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6075 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6076 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6077 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6078 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6079 begin="0.15s" dur="0.7s" repeatCount="indefinite"/>
6080 </rect>
6081 <rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2">
6082 <animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2"
6083 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6084 <animate attributeName="height" attributeType="XML" values="10; 20; 10"
6085 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6086 <animate attributeName="y" attributeType="XML" values="10; 5; 10"
6087 begin="0.3s" dur="0.7s" repeatCount="indefinite"/>
6088 </rect>
6089 </svg>
6090 </div>
6091 </label>
6092 </div>
6093 <div class="apm-loader d-flex justify-content-between align-items-center">
6094 <input type="radio"
6095 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_3' ? 'checked' : ''; ?>
6096 id="plg_3" value="plg_3">
6097 <label for="plg_3" class="apm-loading-gif">
6098 <div class="loader loader--style5">
6099 <svg width="100%" height="100%" viewBox="0 0 105 105"
6100 xmlns="http://www.w3.org/2000/svg" fill="#000">
6101 <circle cx="12.5" cy="12.5" r="12.5">
6102 <animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1"
6103 calcMode="linear" repeatCount="indefinite"/>
6104 </circle>
6105 <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5">
6106 <animate attributeName="fill-opacity" begin="100ms" dur="0.9s"
6107 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6108 </circle>
6109 <circle cx="52.5" cy="12.5" r="12.5">
6110 <animate attributeName="fill-opacity" begin="300ms" dur="0.9s"
6111 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6112 </circle>
6113 <circle cx="52.5" cy="52.5" r="12.5">
6114 <animate attributeName="fill-opacity" begin="600ms" dur="0.9s"
6115 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6116 </circle>
6117 <circle cx="92.5" cy="12.5" r="12.5">
6118 <animate attributeName="fill-opacity" begin="800ms" dur="0.9s"
6119 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6120 </circle>
6121 <circle cx="92.5" cy="52.5" r="12.5">
6122 <animate attributeName="fill-opacity" begin="400ms" dur="0.9s"
6123 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6124 </circle>
6125 <circle cx="12.5" cy="92.5" r="12.5">
6126 <animate attributeName="fill-opacity" begin="700ms" dur="0.9s"
6127 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6128 </circle>
6129 <circle cx="52.5" cy="92.5" r="12.5">
6130 <animate attributeName="fill-opacity" begin="500ms" dur="0.9s"
6131 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6132 </circle>
6133 <circle cx="92.5" cy="92.5" r="12.5">
6134 <animate attributeName="fill-opacity" begin="200ms" dur="0.9s"
6135 values="1;.2;1" calcMode="linear" repeatCount="indefinite"/>
6136 </circle>
6137 </svg>
6138 </div>
6139 </label>
6140 </div>
6141 <div class="apm-loader d-flex justify-content-between align-items-center">
6142 <input type="radio"
6143 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_4' ? 'checked' : ''; ?>
6144 id="plg_4" value="plg_4">
6145 <label for="plg_4" class="apm-loading-gif">
6146 <div class="loader loader--style4">
6147 <svg width="100%" height="100%" viewBox="0 0 57 57"
6148 xmlns="http://www.w3.org/2000/svg" stroke="#000">
6149 <g fill="none" fill-rule="evenodd">
6150 <g transform="translate(1 1)" stroke-width="2">
6151 <circle cx="5" cy="50" r="5">
6152 <animate attributeName="cy" begin="0s" dur="2.2s"
6153 values="50;5;50;50" calcMode="linear"
6154 repeatCount="indefinite"/>
6155 <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5"
6156 calcMode="linear" repeatCount="indefinite"/>
6157 </circle>
6158 <circle cx="27" cy="5" r="5">
6159 <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5"
6160 values="5;50;50;5" calcMode="linear"
6161 repeatCount="indefinite"/>
6162 <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27"
6163 values="27;49;5;27" calcMode="linear"
6164 repeatCount="indefinite"/>
6165 </circle>
6166 <circle cx="49" cy="50" r="5">
6167 <animate attributeName="cy" begin="0s" dur="2.2s"
6168 values="50;50;5;50" calcMode="linear"
6169 repeatCount="indefinite"/>
6170 <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s"
6171 values="49;5;27;49" calcMode="linear"
6172 repeatCount="indefinite"/>
6173 </circle>
6174 </g>
6175 </g>
6176 </svg>
6177 </div>
6178 </label>
6179 </div>
6180 <div class="apm-loader d-flex justify-content-between align-items-center">
6181 <input type="radio"
6182 name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_5' ? 'checked' : ''; ?>
6183 id="plg_5" value="plg_5">
6184 <label for="plg_5" class="apm-loading-gif">
6185 <div class="loader loader--style4">
6186 <svg width="100%" height="100%" viewBox="0 0 135 140"
6187 xmlns="http://www.w3.org/2000/svg" fill="#000">
6188 <rect y="10" width="15" height="120" rx="6">
6189 <animate attributeName="height" begin="0.5s" dur="1s"
6190 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6191 repeatCount="indefinite"/>
6192 <animate attributeName="y" begin="0.5s" dur="1s"
6193 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6194 repeatCount="indefinite"/>
6195 </rect>
6196 <rect x="30" y="10" width="15" height="120" rx="6">
6197 <animate attributeName="height" begin="0.25s" dur="1s"
6198 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6199 repeatCount="indefinite"/>
6200 <animate attributeName="y" begin="0.25s" dur="1s"
6201 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6202 repeatCount="indefinite"/>
6203 </rect>
6204 <rect x="60" width="15" height="140" rx="6">
6205 <animate attributeName="height" begin="0s" dur="1s"
6206 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6207 repeatCount="indefinite"/>
6208 <animate attributeName="y" begin="0s" dur="1s"
6209 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6210 repeatCount="indefinite"/>
6211 </rect>
6212 <rect x="90" y="10" width="15" height="120" rx="6">
6213 <animate attributeName="height" begin="0.25s" dur="1s"
6214 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6215 repeatCount="indefinite"/>
6216 <animate attributeName="y" begin="0.25s" dur="1s"
6217 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6218 repeatCount="indefinite"/>
6219 </rect>
6220 <rect x="120" y="10" width="15" height="120" rx="6">
6221 <animate attributeName="height" begin="0.5s" dur="1s"
6222 values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear"
6223 repeatCount="indefinite"/>
6224 <animate attributeName="y" begin="0.5s" dur="1s"
6225 values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear"
6226 repeatCount="indefinite"/>
6227 </rect>
6228 </svg>
6229 </div>
6230 </label>
6231 </div>
6232 </div>
6233 <div class="if-loading-message col-sm-6 row">
6234 <input type="text" class="ays-text-input ays-text-input-short" name="ays_poll_load_effect_message" value="<?php echo $poll_effect_message; ?>">
6235 </div>
6236 </div>
6237 <hr class="<?php echo $poll_loader_size_line_enable; ?> ays_line_changeing">
6238 <div class="form-group row <?php echo $poll_loader_size_enable; ?> ays_load_gif_cont">
6239 <div class="col-sm-3">
6240 <label for="ays_loader_font_size">
6241 <?= __('Loading effect size', "poll-maker") ?>
6242 <a class="ays_help" data-toggle="tooltip"
6243 title="<?= __('Define the size of the loading effect. It will get the default value if you leave it blank.', "poll-maker") ?>">
6244 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6245 </a>
6246 </label>
6247 </div>
6248 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6249 <div>
6250 <input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size"
6251 name="ays_loader_font_size"
6252 value="<?= $poll_loader_font_size; ?>"/>
6253 </div>
6254 <div class="ays_option_default_measurement_unit">
6255 <input type="text" value="px" disabled>
6256 </div>
6257 </div>
6258 </div>
6259 <hr>
6260 <!-- Loading effect end -->
6261 <div class="form-group row">
6262 <div class="col-sm-3">
6263 <label for="ays_enable_restart_button">
6264 <?= __('Enable restart button', "poll-maker") ?>
6265 <a class="ays_help" data-toggle="tooltip"
6266 title="<?= __('Show the restart button on the result page of the poll for restarting the poll and taking it again.', "poll-maker") ?>">
6267 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6268 </a>
6269 </label>
6270 </div>
6271 <div class="col-sm-1">
6272 <input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button"
6273 name="ays_enable_restart_button"
6274 value="on" <?= (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> />
6275 </div>
6276 </div>
6277 <hr>
6278 <div class="form-group row ays_toggle_parent">
6279 <div class="col-sm-3">
6280 <label for='ays-poll-show-social'>
6281 <?= __('Social share buttons', "poll-maker"); ?>
6282 <a class="ays_help"
6283 data-toggle="tooltip"
6284 data-placement="top"
6285 title='<?= __("Enable to show social media share buttons on the result page of the poll. (Facebook, Twitter, LinkedIn, VKontakte)", "poll-maker"); ?>'>
6286 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6287 </a></label>
6288 </div>
6289 <div class="col-sm-1">
6290 <input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social"
6291 value="show" <?= $poll_social_buttons ? 'checked' : ''; ?>>
6292 </div>
6293 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>">
6294 <div class="form-group row">
6295 <div class="col-sm-4">
6296 <label>
6297 <?php echo __('Heading for share buttons', "poll-maker")?>
6298 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over share buttons.', "poll-maker"); ?>">
6299 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6300 </a>
6301 </label>
6302 </div>
6303 <div class="col-sm-8">
6304 <?php
6305 $content = $poll_social_buttons_heading;
6306 $editor_id = 'ays_poll_social_buttons_heading';
6307 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6308 wp_editor($content, $editor_id, $settings);
6309 ?>
6310 </div>
6311 </div>
6312 <hr>
6313 <div class="form-group row">
6314 <div class="col-sm-4">
6315 <label for="ays_poll_enable_linkedin_share_button">
6316 <i class="ays_poll_fas ays_poll-fa-linkedin"></i>
6317 <?php echo __('LinkedIn button', "poll-maker")?>
6318 <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"); ?>">
6319 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6320 </a>
6321 </label>
6322 </div>
6323 <div class="col-sm-8">
6324 <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" : ""; ?>/>
6325 </div>
6326 </div>
6327 <hr/>
6328 <div class="form-group row">
6329 <div class="col-sm-4">
6330 <label for="ays_poll_enable_facebook_share_button">
6331 <i class="ays_poll_fas ays_poll_facebook"></i>
6332 <?php echo __('Facebook button', "poll-maker")?>
6333 <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"); ?>">
6334 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6335 </a>
6336 </label>
6337 </div>
6338 <div class="col-sm-8">
6339 <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" : ""; ?>/>
6340 </div>
6341 </div>
6342 <hr/>
6343 <div class="form-group row">
6344 <div class="col-sm-4">
6345 <label for="ays_poll_enable_twitter_share_button">
6346 <i class="ays_fa ays_fa_twitter_square"></i>
6347 <?php echo __('Twitter button', "poll-maker")?>
6348 <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"); ?>">
6349 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6350 </a>
6351 </label>
6352 </div>
6353 <div class="col-sm-8">
6354 <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" : ""; ?>/>
6355 </div>
6356 </div>
6357 <hr/>
6358 <div class="form-group row">
6359 <div class="col-sm-4">
6360 <label for="ays_poll_enable_vkontakte_share_button">
6361 <i class="ays_fa ays_fa_vk"></i>
6362 <?php echo __('VKontakte button', "poll-maker")?>
6363 <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"); ?>">
6364 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6365 </a>
6366 </label>
6367 </div>
6368 <div class="col-sm-8">
6369 <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" : ""; ?>/>
6370 </div>
6371 </div>
6372 </div>
6373 </div>
6374 <hr>
6375 <div class="form-group row ays_toggle_parent">
6376 <div class="col-sm-3">
6377 <label for="ays_enable_social_links">
6378 <?php echo __('Enable Social Media links', "poll-maker")?>
6379 <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")?>">
6380 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6381 </a>
6382 </label>
6383 </div>
6384 <div class="col-sm-1">
6385 <input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links"
6386 name="ays_poll_enable_social_links"
6387 value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/>
6388 </div>
6389 <div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>">
6390 <div class="form-group row">
6391 <div class="col-sm-4">
6392 <label>
6393 <?php echo __('Heading for social links', "poll-maker")?>
6394 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over social links.', "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 <?php
6401 $content = $poll_social_links_heading;
6402 $editor_id = 'ays_poll_social_links_heading';
6403 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6404 wp_editor($content, $editor_id, $settings);
6405 ?>
6406 </div>
6407 </div>
6408 <hr>
6409 <div class="form-group row">
6410 <div class="col-sm-4">
6411 <label for="ays_linkedin_link">
6412 <i class="ays_fa ays_fa_linkedin_square"></i>
6413 <?php echo __('LinkedIn link', "poll-maker")?>
6414 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>">
6415 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6416 </a>
6417 </label>
6418 </div>
6419 <div class="col-sm-8">
6420 <input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]"
6421 value="<?php echo $linkedin_link; ?>" />
6422 </div>
6423 </div>
6424 <hr/>
6425 <div class="form-group row">
6426 <div class="col-sm-4">
6427 <label for="ays_facebook_link">
6428 <i class="ays_fa ays_fa_facebook_square"></i>
6429 <?php echo __('Facebook link', "poll-maker")?>
6430 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Facebook profile or page link for showing after poll finish.', "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-8">
6436 <input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]"
6437 value="<?php echo $facebook_link; ?>" />
6438 </div>
6439 </div>
6440 <hr/>
6441 <div class="form-group row">
6442 <div class="col-sm-4">
6443 <label for="ays_twitter_link">
6444 <i class="ays_fa ays_fa_twitter_square"></i>
6445 <?php echo __('Twitter link', "poll-maker")?>
6446 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('Twitter profile or page link for showing after poll finish.', "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-8">
6452 <input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]"
6453 value="<?php echo $twitter_link; ?>" />
6454 </div>
6455 </div>
6456 <hr/>
6457 <div class="form-group row">
6458 <div class="col-sm-4">
6459 <label for="ays_vkontakte_link">
6460 <i class="ays_fa ays_fa_vk"></i>
6461 <?php echo __('VKontakte link', "poll-maker")?>
6462 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6463 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6464 </a>
6465 </label>
6466 </div>
6467 <div class="col-sm-8">
6468 <input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]"
6469 value="<?php echo $vkontakte_link; ?>" />
6470 </div>
6471 </div>
6472 <hr>
6473 <div class="form-group row">
6474 <div class="col-sm-4">
6475 <label for="ays_youtube_link">
6476 <i class="ays_fa ays_fa_vk"></i>
6477 <?php echo __('YouTube link', "poll-maker")?>
6478 <a class="ays_help" data-toggle="tooltip" title="<?php echo __('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6479 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6480 </a>
6481 </label>
6482 </div>
6483 <div class="col-sm-8">
6484 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6485 value="<?php echo $youtube_link; ?>" />
6486 </div>
6487 </div>
6488 </div>
6489 </div>
6490 <hr>
6491 <div class="form-group row">
6492 <div class="col-sm-3">
6493 <label for='ays-poll-res-rgba'>
6494 <?= __('Results bar in RGBA', "poll-maker"); ?>
6495 <a class="ays_help" data-toggle="tooltip"
6496 data-placement="top"
6497 title="<?= __("If the option is enabled, the opacity of the result bar color will depend on the number of votes.", "poll-maker"); ?>">
6498 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6499 </a>
6500 </label>
6501 </div>
6502 <div class="col-sm-9">
6503 <input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba"
6504 value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>>
6505 </div>
6506 </div>
6507 <hr>
6508 <div class="form-group row ays_toggle_parent">
6509 <div class="col-sm-3">
6510 <label for='ays_poll_show_users'>
6511 <?= __('Show passed users avatars', "poll-maker"); ?>
6512 <a class="ays_help" data-toggle="tooltip"
6513 data-placement="top"
6514 title="<?= __("If this option is enabled, you will see users' avatars(profile pictures) who have already voted on the result page.", "poll-maker"); ?>">
6515 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6516 </a>
6517 </label>
6518 </div>
6519 <div class="col-sm-1">
6520 <input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox"
6521 value="on" <?php echo $poll_show_passed_users_checked; ?>>
6522 </div>
6523 <div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>">
6524 <div class="row">
6525 <div class="col-sm-3 ays_divider_left">
6526 <label for='ays_poll_show_users_count'>
6527 <?= __('Users count', "poll-maker"); ?>
6528 <a class="ays_help" data-toggle="tooltip"
6529 data-placement="top"
6530 title="<?= __("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>">
6531 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6532 </a>
6533 </label>
6534 </div>
6535 <div class="col-sm-9">
6536 <input type="number"
6537 name="ays_poll_show_users_count"
6538 id="ays_poll_show_users_count"
6539 class="ays-text-input ays-poll-answer-results-short-input"
6540 value="<?php echo $poll_show_passed_users_count; ?>">
6541 </div>
6542 </div>
6543 </div>
6544 </div>
6545 <hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6546 <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>">
6547 <div class="col-sm-3">
6548 <label for="ays_poll_enable_answer_redirect_delay">
6549 <?= __('Option Redirect Delay', "poll-maker") ?>
6550 <a class="ays_help" data-toggle="tooltip"
6551 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") ?>">
6552 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6553 </a>
6554 </label>
6555 </div>
6556 <div class="col-sm-1">
6557 <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" : ""; ?>>
6558 </div>
6559 <div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>">
6560 <input type="number"
6561 class="ays-text-input ays-poll-answer-results-short-input"
6562 id="ays_poll_answer_redirect_delay"
6563 name="ays_poll_answer_redirect_delay"
6564 value="<?= $poll_every_answer_redirect_delay; ?>"/>
6565 <span class="ays_poll_small_hint_text">Seconds</span>
6566 </div>
6567 </div>
6568 <hr>
6569 <div class="form-group row">
6570 <div class="col-sm-3">
6571 <label for="ays_poll_enable_answer_image_after_voting">
6572 <?= __('Show answers image', "poll-maker") ?>
6573 <a class="ays_help" data-toggle="tooltip"
6574 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") ?>">
6575 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6576 </a>
6577 </label>
6578 </div>
6579 <div class="col-sm-1">
6580 <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" : ""; ?>>
6581 </div>
6582 </div>
6583 <hr>
6584 <div class="ays_poll_block_with_hidden_row ays_poll_result_view_type">
6585 <div class="form-group row">
6586 <div class="col-sm-3">
6587 <label for="apm_allow_add_answers">
6588 <?= __('Show results by', "poll-maker"); ?>
6589 <a class="ays_help" data-toggle="tooltip" data-placement="top"
6590 title="<?= __("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>">
6591 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6592 </a>
6593 </label>
6594 </div>
6595 <div class="col-sm-9">
6596 <div class="form-group row" style="align-items:center">
6597 <div class="col-sm-4">
6598 <div style="display: flex;">
6599 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6600 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block">
6601 <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' : '' ?>/>
6602 <span><?= __('Bar chart(Google)', "poll-maker"); ?></span>
6603 </label>
6604 </div>
6605 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6606 <label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block">
6607 <input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/>
6608 <span><?= __('Bar chart', "poll-maker"); ?></span>
6609 </label>
6610 </div>
6611 </div>
6612 </div>
6613 <div class="col-sm-8" style="padding-left: 0">
6614 <div class="col-sm-12 only_pro" style="padding:24px 10px;">
6615 <div class="pro_features pro_features_popup">
6616 <div class="pro-features-popup-conteiner">
6617 <div class="pro-features-popup-title">
6618 <?php echo __("Show Results by", "poll-maker"); ?>
6619 </div>
6620 <div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko">
6621 <p>
6622 <?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"); ?>
6623 </p>
6624 </div>
6625 <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">
6626 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6627 </div>
6628 </div>
6629 </div>
6630 <div class="pro_features" style="justify-content:flex-end;">
6631 </div>
6632 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6633 <input type="radio"/>
6634 <label class="form-check-label ays_poll_check_label">
6635 <?= __('Pie Chart', "poll-maker"); ?>
6636 </label>
6637 </div>
6638 <div class="form-check form-check-inline ays_poll_loader_show_results_by">
6639 <input type="radio"/>
6640 <label class="form-check-label ays_poll_check_label">
6641 <?= __('Column Chart', "poll-maker"); ?>
6642 </label>
6643 </div>
6644 <div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type">
6645 <input type="radio"/>
6646 <label class="form-check-label ays_poll_check_label">
6647 <?= __('Versus Chart', "poll-maker"); ?>
6648 </label>
6649 </div>
6650 <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'?>">
6651 <input type="radio"/>
6652 <label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart">
6653 <?= __('Rating Chart', "poll-maker"); ?>
6654 </label>
6655 </div>
6656 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6657 <div class="ays-poll-new-upgrade-button-box">
6658 <div>
6659 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6660 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6661 </div>
6662 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6663 </div>
6664 </a>
6665 <div class="ays-poll-new-watch-video-button-box">
6666 <div>
6667 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6668 <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">
6669 </div>
6670 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
6671 </div>
6672 </div>
6673 </div>
6674 </div>
6675 <hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
6676 <div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>">
6677 <div class="form-group row" style="align-items: center; margin-left: 0;">
6678 <div class="col-sm-2">
6679 <label for="ays_poll_show_result_chart_google_height" style="margin: 0">
6680 <?= __('Chart height', "poll-maker") ?>
6681 <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"); ?>">
6682 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6683 </a>
6684 </label>
6685 </div>
6686 <div class="col-sm-9 ays_option_with_default_measurement_unit">
6687 <div>
6688 <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; ?>"/>
6689 </div>
6690 <div class="ays_option_default_measurement_unit">
6691 <input type="text" value="px" disabled>
6692 </div>
6693 </div>
6694 </div>
6695 </div>
6696 </div>
6697 </div>
6698 </div>
6699 <hr/>
6700 <div class="form-group row">
6701 <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
6702 <div class="pro_features pro_features_popup">
6703 <div class="pro-features-popup-conteiner">
6704 <div class="pro-features-popup-title">
6705 <?php echo __("Results Message Based on the Answer", "poll-maker"); ?>
6706 </div>
6707 <div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g">
6708 <p>
6709 <?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"); ?>
6710 </p>
6711 </div>
6712 <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">
6713 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6714 </div>
6715 </div>
6716 </div>
6717 <div class="pro_features" style="justify-content:flex-end;">
6718 </div>
6719 <p class="ays-subtitle ays-poll-subtitle-button"><?php echo __("Result message based on the answer", "poll-maker"); ?></p>
6720 <hr>
6721 <div class="form-group row">
6722 <div class="col-sm-3">
6723 <label for="ays_show_answer_message">
6724 <?php echo __('Show Answer message', "poll-maker")?>
6725 <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip"
6726 data-placement="top"
6727 title="<?= __("Show different messages based on the answer.", "poll-maker"); ?>">
6728 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6729 </a>
6730 </label>
6731 </div>
6732 <div class="col-sm-9">
6733 <input type="checkbox" class="ays-enable-timer1"
6734 name=""
6735 value="on">
6736 </div>
6737 </div>
6738 <hr/>
6739 <!--Result message -->
6740 <div class='form-group row'>
6741 <div class="ays_reset_answers_div">
6742 <input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers">
6743 </div>
6744 <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"); ?>">
6745 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6746 </a>
6747 </div>
6748 <hr>
6749 <?php
6750 $content = '<div class="ays-field-dashboard ays-table-wrap">
6751 <table class="ays-answers-table ">
6752 <thead>
6753 <tr class="ui-state-default">
6754 <th>'.__('Answers', "poll-maker").'</th>
6755 <th>'.__('Text', "poll-maker").'</th>
6756 <th>'.__('Image', "poll-maker").'</th>
6757 </tr>
6758 </thead>
6759 <tbody>';
6760 $content .= '<tr class="ays-interval-row">
6761 <td>
6762 <span>'.__("Answer 1", "poll-maker").'</span>
6763 <input type="hidden" name="ays_answer_id[]">
6764 </td>
6765 <td>
6766 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
6767 </td>
6768 <td class="ays-answer-image-td">
6769 <label class="ays-label" for="ays-answer">
6770 <a href="javascript:void(0)" class="add-answer-image" >
6771 '.__("Add", "poll-maker").'
6772 </a>
6773 </label>
6774 <div class="ays-answer-image-container ays-interval-image-container">
6775 <span class="ays-remove-answer-img"></span>
6776 <img src="" class="ays-answer-img">
6777 <input type="hidden" name="interval_image[]" class="ays-answer-image"
6778 >
6779 </div>
6780 </td>
6781 </tr>
6782 <tr class="ays-interval-row">
6783 <td>
6784 <span>'.__("Answer 2", "poll-maker").'</span>
6785 <input type="hidden" name="ays_answer_id[]">
6786 </td>
6787 <td>
6788 <textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea>
6789 </td>
6790 <td class="ays-answer-image-td">
6791 <label class="ays-label" for="ays-answer">
6792 <a href="javascript:void(0)" class="add-answer-image" >
6793 '.__("Add", "poll-maker").'
6794 </a>
6795 </label>
6796 <div class="ays-answer-image-container ays-interval-image-container">
6797 <span class="ays-remove-answer-img"></span>
6798 <img src="" class="ays-answer-img">
6799 <input type="hidden" name="interval_image[]" class="ays-answer-image"
6800 >
6801 </div>
6802 </td>
6803 </tr>';
6804 $content .= '</tbody></table></div>';
6805 echo $content;
6806 ?>
6807 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6808 <div class="ays-poll-new-upgrade-button-box">
6809 <div>
6810 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>">
6811 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6812 </div>
6813 <div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div>
6814 </div>
6815 </a>
6816 <div class="ays-poll-new-watch-video-button-box">
6817 <div>
6818 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>">
6819 <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">
6820 </div>
6821 <div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div>
6822 </div>
6823 <div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex">
6824 <div class="ays-poll-center-big-watch-video-button-box">
6825 <div class="ays-poll-center-new-watch-video-demo-button">
6826 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6827 <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">
6828 <?php echo __("Watch Video", "poll-maker"); ?>
6829 </div>
6830 </div>
6831 <div class="ays-poll-center-big-upgrade-button-box">
6832 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
6833 <div class="ays-poll-center-new-big-upgrade-button">
6834 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide">
6835 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
6836 <?php echo __("Upgrade", "poll-maker"); ?>
6837 </div>
6838 </a>
6839 </div>
6840 </div>
6841 </div>
6842 <hr/>
6843 </div>
6844 </div>
6845 </div>
6846 </div>
6847 <div class="bottom-buttons-container">
6848 <div class="ays_save_default_button_box">
6849 <?php
6850 if ( $prev_poll_id != "" && !is_null( $prev_poll_id ) ) {
6851
6852 $other_attributes = array(
6853 'id' => 'ays-polls-prev-button',
6854 'data-message' => __( 'Are you sure you want to go to the previous poll page?', "poll-maker"),
6855 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $prev_poll_id ) )
6856 );
6857 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);
6858 }
6859
6860 if ( $next_poll_id != "" && !is_null( $next_poll_id ) ) {
6861
6862 $other_attributes = array(
6863 'id' => 'ays-polls-next-button',
6864 'data-message' => __( 'Are you sure you want to go to the next poll page?', "poll-maker"),
6865 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $next_poll_id ) )
6866 );
6867 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);
6868 }
6869 ?>
6870 <div class="only_pro" style="position: relative; display: inline-block">
6871 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
6872 <div class="pro-features-popup-conteiner">
6873 <div class="pro-features-popup-title">
6874 <?php echo __("Save as Default feature of Poll", "poll-maker"); ?>
6875 </div>
6876 <div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI">
6877 <p>
6878 <?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"); ?>
6879 </p>
6880 <p>
6881 <?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"); ?>
6882 </p>
6883 </div>
6884 <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">
6885 <?php echo __("Upgrade PRO NOW", "poll-maker"); ?>
6886 </div>
6887 </div>
6888 </div>
6889 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px">
6890 <span class="ays_save_as_default_content_for_mobile">
6891 <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none">
6892 <input type="button" class="button ays_default_btn ays-loader-banner" value="Save as default">
6893 </a>
6894 <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" ); ?>">
6895 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6896 </a>
6897 </span>
6898 </div>
6899 </div>
6900 </div>
6901 <div class='bottom-save-buttons-container'>
6902 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
6903 <?php
6904 echo $loader_iamge;
6905 wp_nonce_field('poll_action', 'poll_action');
6906 $save_bottom_attributes = array(
6907 'id' => 'ays-button-apply',
6908 'title' => 'Ctrl + s',
6909 'data-toggle' => 'tooltip',
6910 'data-delay'=> '{"show":"1000"}'
6911 );
6912 submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes);
6913 $save_close_bottom_attributes = array('id' => 'ays-button');
6914 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);
6915 submit_button(__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array());
6916 ?>
6917 </div>
6918 </div>
6919 </div>
6920 </div>
6921 <div>
6922 <hr>
6923 <!-- <div class="form-group row ays-poll-general-bundle-container">
6924 <div class="col-sm-12 ays-poll-general-bundle-box">
6925 <div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row">
6926 <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>
6927 </div>
6928 <div class="ays-poll-general-bundle-row">
6929 <div class="ays-poll-general-bundle-text">
6930 <?php //echo __( "Do not miss", $this->plugin_name ); ?>
6931 <span><?php //echo __( "20% Christmas gift SALE", $this->plugin_name ); ?></span>
6932 <?php //echo __( "on Poll Maker plugin!", $this->plugin_name ); ?>
6933 <span class="ays-poll-general-bundle-color">
6934 <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>
6935 </span> <?php //echo __( "plugin!", $this->plugin_name ); ?>
6936 </div>
6937 <p><?php //echo __( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p>
6938 <div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color">
6939 <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>
6940 </div>
6941 </div>
6942 <div class="ays-poll-general-bundle-row">
6943 <a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a>
6944 </div>
6945 </div>
6946 </div> -->
6947 <?php if($id === null): ?>
6948 <div class="ays_poll_layer_container">
6949 <div class="ays_poll_layer_content">
6950 <div class="ays-poll-close-type">
6951 <a href="?page=poll-maker-ays">
6952 <img src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/icons/cross.png">
6953 </a>
6954 </div>
6955 <div class="ays_poll_layer_box">
6956 <div class="ays-poll-close-layer">
6957 <div class="ays-poll-choose-type">
6958 <p style="margin: 0;">Choose Your Poll Type</p>
6959 </div>
6960 </div>
6961 <div class="ays_poll_layer_box_blocks">
6962 <label class='ays-poll-dblclick-layer'>
6963 <input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'choosing') ? 'checked' : '' ?> >
6964 <div class="ays_poll_layer_item" >
6965 <div class="ays_poll_layer_item_logo" >
6966 <div class="ays_poll_layer_item_logo_overlay
6967 ays_poll_layer_item_logo_overlay_choosing" >
6968 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/choosing.png' ?>"
6969 alt="<?= __('Choosing', "poll-maker") ?>">
6970 </div>
6971 </div>
6972 <div class="ays_poll_layer_item_title">
6973 <p style="margin:0px;"><?php echo __('Choosing', "poll-maker") ?><p>
6974 <a class="ays_poll_view_demo_link" href="https://poll-plugin.com/image-choosing/" style="font-size:14px;" target="_blank">View demo</a>
6975 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6976 </div>
6977 <div class="ays_poll_layer_item_description"></div>
6978 </div>
6979 </label>
6980 <label class='ays-poll-dblclick-layer'>
6981 <input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'rating') ? 'checked' : '' ?> >
6982 <div class="ays_poll_layer_item">
6983 <div class="ays_poll_layer_item_logo">
6984 <div class="ays_poll_layer_item_logo_overlay
6985 ays_poll_layer_item_logo_overlay_rating">
6986 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/rating.png' ?>"
6987 alt="<?= __('Rating', "poll-maker") ?>">
6988 </div>
6989 </div>
6990 <div class="ays_poll_layer_item_title">
6991 <p style="margin:0px;"><?php echo __('Rating', "poll-maker") ?><p>
6992 <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>
6993 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
6994 </div>
6995 <div class="ays_poll_layer_item_description"></div>
6996 </div>
6997 </label>
6998 <label class='ays-poll-dblclick-layer'>
6999 <input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'text') ? 'checked' : '' ?> >
7000 <div class="ays_poll_layer_item">
7001 <div class="ays_poll_layer_item_logo">
7002 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_text" >
7003
7004 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Text.png' ?>"
7005 alt="<?= __('Text', "poll-maker") ?>">
7006 </div>
7007 </div>
7008 <div class="ays_poll_layer_item_title">
7009 <p style="margin:0px;"><?php echo __('Text', "poll-maker") ?><p>
7010 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7011 <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>
7012 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7013 </div>
7014 <div class="ays_poll_layer_item_description"></div>
7015 </div>
7016 </label>
7017 <label class='ays-poll-dblclick-layer'>
7018 <input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'voting') ? 'checked' : '' ?> >
7019 <div class="ays_poll_layer_item">
7020 <div class="ays_poll_layer_item_logo">
7021 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" >
7022 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/voting.png' ?>" alt="<?= __('Voting', "poll-maker") ?>">
7023 </div>
7024 </div>
7025 <div class="ays_poll_layer_item_title">
7026 <p style="margin:0px;"><?php echo __('Voting', "poll-maker") ?><p>
7027 <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>
7028 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7029 </div>
7030 <div class="ays_poll_layer_item_description"></div>
7031 </div>
7032 </label>
7033 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7034 <!-- <input type="radio" value="select" > -->
7035 <div class="ays_poll_layer_item">
7036 <span class="ays_poll_layer_item_pro_version">
7037 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7038 PRO
7039 </a>
7040 </span>
7041 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7042 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" >
7043
7044 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Dropdown.png' ?>"
7045 alt="<?= __('Dropdown', "poll-maker") ?>">
7046 </div>
7047 </div>
7048 <div class="ays_poll_layer_item_title">
7049 <p style="margin:0px;">
7050 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7051 <?php echo __('Dropdown', "poll-maker") ?>
7052 </a>
7053 <p>
7054 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7055 <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>
7056 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7057 </div>
7058 <div class="ays_poll_layer_item_description"></div>
7059 </div>
7060 </label>
7061 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7062 <!-- <input value="range" type="radio"> -->
7063 <div class="ays_poll_layer_item">
7064 <span class="ays_poll_layer_item_pro_version">
7065 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7066 PRO
7067 </a>
7068 </span>
7069 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7070 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" >
7071
7072 <img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/range.png' ?>"
7073 alt="<?= __('Range', "poll-maker") ?>">
7074 </div>
7075 </div>
7076 <div class="ays_poll_layer_item_title">
7077 <p style="margin:0px;">
7078 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7079 <?php echo __('Range', "poll-maker") ?>
7080 </a>
7081 <p>
7082 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7083 <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>
7084 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7085 </div>
7086 <div class="ays_poll_layer_item_description"></div>
7087 </div>
7088 </label>
7089 <label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'>
7090 <!-- <input value="versus" type="radio"> -->
7091 <div class="ays_poll_layer_item">
7092 <span class="ays_poll_layer_item_pro_version">
7093 <a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7094 PRO
7095 </a>
7096 </span>
7097 <div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro">
7098 <div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" >
7099
7100 <span>VS</span>
7101 </div>
7102 </div>
7103 <div class="ays_poll_layer_item_title">
7104 <p style="margin:0px;">
7105 <a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank">
7106 <?php echo __('Versus', "poll-maker") ?>
7107 </a>
7108 <p>
7109 <!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> -->
7110 <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>
7111 <i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i>
7112 </div>
7113 <div class="ays_poll_layer_item_description"></div>
7114 </div>
7115 </label>
7116 </div>
7117 <div class="ays_poll_select_button_layer">
7118 <div class="ays_poll_select_button_item">
7119 <input type="button" class="ays_poll_layer_button" name="" value="Next" data-type="<?php echo $poll['type']; ?>">
7120 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7121 </div>
7122 </div>
7123 </div>
7124 </div>
7125 </div>
7126 <?php else: ?>
7127 <input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" >
7128 <?php endif; ?>
7129 </form>
7130 <div class="ays-modal" id="pro-features-popup-modal">
7131 <div class="ays-modal-content">
7132 <!-- Modal Header -->
7133 <div class="ays-modal-header">
7134 <span class="ays-close-pro-popup">&times;</span>
7135 <!-- <h2></h2> -->
7136 </div>
7137
7138 <!-- Modal body -->
7139 <div class="ays-modal-body">
7140 <div class="row">
7141 <div class="col-sm-6 pro-features-popup-modal-left-section">
7142 </div>
7143 <div class="col-sm-6 pro-features-popup-modal-right-section">
7144 <div class="pro-features-popup-modal-right-box">
7145 <div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div>
7146
7147 <div class="pro-features-popup-modal-right-box-title"></div>
7148
7149 <div class="pro-features-popup-modal-right-box-content"></div>
7150
7151 <div class="pro-features-popup-modal-right-box-button">
7152 <a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a>
7153 </div>
7154 </div>
7155 </div>
7156 </div>
7157 </div>
7158
7159 <!-- Modal footer -->
7160 <div class="ays-modal-footer" style="display:none">
7161 </div>
7162 </div>
7163 </div>
7164 </div>
7165 </div>