| 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, $poll['styles']); |
| 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 |
$poll_button_selected = isset($options['poll_buttons_size']) && $options['poll_buttons_size'] != "" ? esc_attr($options['poll_buttons_size']) : ""; |
| 603 |
// ==== BUTTON STYLES END ==== |
| 604 |
|
| 605 |
// ==== Allow Answer options ==== |
| 606 |
// Allow custom answer |
| 607 |
$poll_allow_answer = (isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") ? "checked" : ""; |
| 608 |
// Require admin approval |
| 609 |
$poll_allow_answer_require = (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on") ? "checked" : ""; |
| 610 |
|
| 611 |
// ==== ==== |
| 612 |
|
| 613 |
// Poll answer view type |
| 614 |
$poll_answer_view_type = (isset($options['poll_answer_view_type']) && $options['poll_answer_view_type'] != "") ? esc_attr($options['poll_answer_view_type']) : "list"; |
| 615 |
|
| 616 |
// Poll answer image height |
| 617 |
$poll_answer_image_height = (isset($options['poll_answer_image_height']) && $options['poll_answer_image_height'] != "") ? esc_attr($options['poll_answer_image_height']) : "150"; |
| 618 |
|
| 619 |
// Poll answer image height for mobile |
| 620 |
$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"; |
| 621 |
|
| 622 |
// Poll answer image border radius |
| 623 |
$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; |
| 624 |
|
| 625 |
// Poll question image object fit |
| 626 |
$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"; |
| 627 |
|
| 628 |
// Poll answer image object fit |
| 629 |
$poll_answer_object_fit = (isset($options['poll_answer_object_fit']) && $options['poll_answer_object_fit'] != "") ? esc_attr($options['poll_answer_object_fit']) : "cover"; |
| 630 |
|
| 631 |
// Poll answer padding |
| 632 |
$poll_answer_padding = (isset($options['poll_answer_padding']) && $options['poll_answer_padding'] != "") ? esc_attr($options['poll_answer_padding']) : "10"; |
| 633 |
|
| 634 |
// Poll 1 column in mobile |
| 635 |
$options['answers_grid_column_mobile'] = isset($options['answers_grid_column_mobile']) ? $options['answers_grid_column_mobile'] : 'on'; |
| 636 |
$answers_grid_column_mobile = (isset($options['answers_grid_column_mobile']) && $options['answers_grid_column_mobile'] == 'on') ? true : false; |
| 637 |
|
| 638 |
// Poll answer gap |
| 639 |
$poll_answer_margin = (isset($options['poll_answer_margin']) && $options['poll_answer_margin'] != "") ? esc_attr($options['poll_answer_margin']) : "10"; |
| 640 |
|
| 641 |
// Poll title font size |
| 642 |
$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"; |
| 643 |
|
| 644 |
// Poll title font size for mobile |
| 645 |
$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"; |
| 646 |
|
| 647 |
// Poll title alignment |
| 648 |
$poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center"; |
| 649 |
|
| 650 |
// Poll title alignment mobile |
| 651 |
$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; |
| 652 |
|
| 653 |
// Poll view type |
| 654 |
$poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text"; |
| 655 |
|
| 656 |
// ===== Poll text type options start ===== |
| 657 |
$poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false; |
| 658 |
$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"; |
| 659 |
$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']) : ""; |
| 660 |
$poll_text_type_limit_message = ( isset($options['poll_text_type_limit_message']) && $options['poll_text_type_limit_message'] == "on" ) ? true : false; |
| 661 |
$poll_text_type_placeholder = ( isset($options['poll_text_type_placeholder']) && $options['poll_text_type_placeholder'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_placeholder'])) : ""; |
| 662 |
$poll_text_type_width = ( isset($options['poll_text_type_width']) && $options['poll_text_type_width'] != "" ) ? stripslashes(esc_attr($options['poll_text_type_width'])) : ""; |
| 663 |
$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"; |
| 664 |
// ===== Poll text type options end ===== |
| 665 |
|
| 666 |
$poll_enable_password = ( isset($options['poll_enable_password']) && $options['poll_enable_password'] == "on" ) ? true : false; |
| 667 |
// Enable toggle password visibility |
| 668 |
$options['poll_enable_password_visibility'] = isset($options['poll_enable_password_visibility']) ? $options['poll_enable_password_visibility'] : 'off'; |
| 669 |
$poll_enable_password_visibility = (isset($options['poll_enable_password_visibility']) && $options['poll_enable_password_visibility'] == 'on') ? true : false; |
| 670 |
$poll_password = ( isset($options['poll_password']) && $options['poll_password'] != "" ) ? stripslashes(esc_attr($options['poll_password'])) : ""; |
| 671 |
$poll_password_message = ( isset($options['poll_password_message']) && $options['poll_password_message'] != "" ) ? stripslashes($options['poll_password_message']) : "Please enter password"; |
| 672 |
|
| 673 |
// == Poll answer box shadow == |
| 674 |
// Poll answer box shadow enable |
| 675 |
$poll_answer_enable_box_shadow = (isset($options['poll_answer_enable_box_shadow']) && $options['poll_answer_enable_box_shadow'] == "on") ? true : false; |
| 676 |
// Poll answer box shadow color |
| 677 |
$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"; |
| 678 |
// answer hover color |
| 679 |
$answer_hover_color = (isset($options['answer_hover_color']) && $options['answer_hover_color'] != "") ? esc_attr($options['answer_hover_color']) : $options['text_color']; |
| 680 |
// answer bg color |
| 681 |
$answer_bg_color = (isset($options['answer_bg_color']) && $options['answer_bg_color'] != "") ? esc_attr($options['answer_bg_color']) : "rgba(255,255,255,0)"; |
| 682 |
// Poll answer box shadow parameters |
| 683 |
$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; |
| 684 |
|
| 685 |
$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; |
| 686 |
|
| 687 |
$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; |
| 688 |
|
| 689 |
// Poll answer box shadow color |
| 690 |
$poll_answer_border_radius = (isset($options['poll_answer_border_radius']) && $options['poll_answer_border_radius'] != "") ? esc_attr($options['poll_answer_border_radius']) : 0; |
| 691 |
|
| 692 |
$poll_social_buttons = isset($options['show_social']) && $options['show_social'] ? true : false; |
| 693 |
$poll_social_buttons_heading = ( isset( $options[ 'poll_social_buttons_heading' ] ) && $options[ 'poll_social_buttons_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_buttons_heading' ] ) ) : ''; |
| 694 |
$poll_show_social_ln = isset($options['poll_show_social_ln']) && $options['poll_show_social_ln'] == "on" ? true : false; |
| 695 |
$poll_show_social_fb = isset($options['poll_show_social_fb']) && $options['poll_show_social_fb'] == "on" ? true : false; |
| 696 |
$poll_show_social_tr = isset($options['poll_show_social_tr']) && $options['poll_show_social_tr'] == "on" ? true : false; |
| 697 |
$poll_show_social_vk = isset($options['poll_show_social_vk']) && $options['poll_show_social_vk'] == "on" ? true : false; |
| 698 |
|
| 699 |
// Title text shadow |
| 700 |
$options['enable_poll_title_text_shadow'] = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? 'on' : 'off'; |
| 701 |
|
| 702 |
$enable_poll_title_text_shadow = (isset($options['enable_poll_title_text_shadow']) && $options['enable_poll_title_text_shadow'] == 'on') ? true : false; |
| 703 |
|
| 704 |
$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)'; |
| 705 |
|
| 706 |
$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; |
| 707 |
|
| 708 |
$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; |
| 709 |
|
| 710 |
$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; |
| 711 |
|
| 712 |
// Display form fields labels |
| 713 |
$options['display_fields_labels'] = isset($options['display_fields_labels']) ? sanitize_text_field($options['display_fields_labels']) : 'off'; |
| 714 |
$display_fields_labels = (isset($options['display_fields_labels']) && $options['display_fields_labels'] == 'on') ? true : false; |
| 715 |
|
| 716 |
// Autofill user data |
| 717 |
$options['autofill_user_data'] = isset($options['autofill_user_data']) ? sanitize_text_field($options['autofill_user_data']) : 'off'; |
| 718 |
$autofill_user_data = (isset($options['autofill_user_data']) && $options['autofill_user_data'] == 'on') ? true : false; |
| 719 |
|
| 720 |
// Change the author of the current poll |
| 721 |
$change_poll_create_author = (isset($options['poll_create_author']) && $options['poll_create_author'] != '') ? absint( sanitize_text_field( $options['poll_create_author'] ) ) : $user_id; |
| 722 |
$get_current_poll_author_data = get_userdata($change_poll_create_author); |
| 723 |
|
| 724 |
// Poll main url |
| 725 |
$poll_main_url = (isset($options['poll_main_url']) && $options['poll_main_url'] != '') ? stripslashes( esc_url($options['poll_main_url']) ) : ''; |
| 726 |
|
| 727 |
//Open logo URL in new tab |
| 728 |
$poll_logo_image_url_check_new_tab = (isset($options['poll_logo_url_new_tab' ]) && $options['poll_logo_url_new_tab' ] == 'on') ? "checked" : ""; |
| 729 |
|
| 730 |
//Poll Logo title |
| 731 |
$poll_logo_title = (isset( $options['poll_logo_title' ] ) && $options['poll_logo_title' ] != '') ? esc_attr( $options['poll_logo_title' ] ) : ''; |
| 732 |
|
| 733 |
//Poll mobile width |
| 734 |
$width_for_mobile = (isset($options['width_for_mobile' ]) && $options['width_for_mobile' ] != '') ? $options['width_for_mobile' ] : ''; |
| 735 |
|
| 736 |
// Social Media links |
| 737 |
$enable_social_links = (isset($options['enable_social_links']) && $options['enable_social_links'] == "on") ? true : false; |
| 738 |
$social_links = (isset($options['social_links'])) ? $options['social_links'] : array( |
| 739 |
'linkedin_link' => '', |
| 740 |
'facebook_link' => '', |
| 741 |
'twitter_link' => '', |
| 742 |
'vkontakte_link' => '', |
| 743 |
'instagram_link' => '', |
| 744 |
'youtube_link' => '', |
| 745 |
); |
| 746 |
$linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : ''; |
| 747 |
$facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : ''; |
| 748 |
$twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : ''; |
| 749 |
$vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : ''; |
| 750 |
$youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : ''; |
| 751 |
$poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : ''; |
| 752 |
|
| 753 |
$show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart'; |
| 754 |
$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; |
| 755 |
|
| 756 |
$next_poll_id = ""; |
| 757 |
$prev_poll_id = ''; |
| 758 |
if ( isset( $id ) && !is_null( $id ) ) { |
| 759 |
$next_poll = $this->get_next_or_prev_row_by_id( $id, "next", "ayspoll_polls" ); |
| 760 |
$next_poll_id = (isset( $next_poll['id'] ) && $next_poll['id'] != "") ? absint( $next_poll['id'] ) : null; |
| 761 |
|
| 762 |
$prev_poll = $this->get_next_or_prev_row_by_id( $id, "prev", "ayspoll_polls" ); |
| 763 |
$prev_poll_id = (isset( $prev_poll['id'] ) && $prev_poll['id'] != "") ? absint( $prev_poll['id'] ) : null; |
| 764 |
|
| 765 |
} |
| 766 |
|
| 767 |
$get_all_polls = Poll_Maker_Data::get_all_polls(); |
| 768 |
|
| 769 |
?> |
| 770 |
<!--LIVE PREVIEW STYLES--> |
| 771 |
<?php |
| 772 |
$emoji = array( |
| 773 |
"<i class='ays_poll_far ays_poll_fa-dizzy'></i>", |
| 774 |
"<i class='ays_poll_far ays_poll_fa-smile'></i>", |
| 775 |
"<i class='ays_poll_far ays_poll_fa-meh'></i>", |
| 776 |
"<i class='ays_poll_far ays_poll_fa-frown'></i>", |
| 777 |
"<i class='ays_poll_far ays_poll_fa-tired'></i>", |
| 778 |
); ?> |
| 779 |
<style> |
| 780 |
/*save changing properties of poll in the css-variables*/ |
| 781 |
:root { |
| 782 |
/*colors*/ |
| 783 |
--theme-main-color: <?php echo $options['main_color']; ?>; |
| 784 |
--theme-bg-color: <?php echo $options['bg_color']; ?>; |
| 785 |
--theme-answer-bg-color: <?php echo (isset($options['answer_bg_color']) && !empty($options['answer_bg_color'])) ? $options['answer_bg_color'] : $options['bg_color']; ?>; |
| 786 |
--theme-answer-hover-color: <?php echo (isset($options['answer_hover_color']) && !empty($options['answer_hover_color'])) ? $options['answer_hover_color'] : $options['text_color']; ?>; |
| 787 |
--theme-title-bg-color: <?php echo (isset($options['title_bg_color']) && !empty($options['title_bg_color'])) ? $options['title_bg_color'] : $options['bg_color']; ?>; |
| 788 |
--theme-text-color: <?php echo $options['text_color']; ?>; |
| 789 |
--theme-button-text-color: <?php echo $options['bg_color']; ?>; |
| 790 |
--theme-icon-color: <?php echo $options['icon_color']; ?>; |
| 791 |
/*options*/ |
| 792 |
--poll-width: <?php echo ((int)$options['width'] > 0) ? (int)$options['width'] . "px" : "100%"; ?>; |
| 793 |
--poll-border-style: <?php echo $options['border_style']; ?>; |
| 794 |
--poll-border-radius: <?php echo absint($options['border_radius']); ?>px; |
| 795 |
--poll-border-width: <?php echo absint($options['border_width']); ?>px; |
| 796 |
--poll-box-shadow: <?php echo (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] . ' 0px 0px 10px 0px' : ''; ?>; |
| 797 |
--poll-bagckround-image: <?php echo !empty($options['bg_image']) ? "url(" . $options['bg_image'] . ")" : "unset"; ?>; |
| 798 |
--poll-icons-size: <?php echo absint($options['icon_size']) >= 10 ? absint($options['icon_size']) : 24; ?>px; |
| 799 |
--poll-display-title: <?php echo $poll['show_title'] ? "block" : "none"; ?>; |
| 800 |
--poll-display-image-box: <?php echo !empty($poll['image']) ? "block" : "none"; ?>; |
| 801 |
|
| 802 |
} |
| 803 |
|
| 804 |
|
| 805 |
input[type='button'].ays-poll-btn{ |
| 806 |
font-size: <?php echo $poll_buttons_font_size; ?>px; |
| 807 |
padding: <?php echo $poll_buttons_top_bottom_padding."px ".$poll_buttons_left_right_padding."px"; ?>; |
| 808 |
border-radius: <?php echo $poll_buttons_border_radius; ?>px; |
| 809 |
width: <?php echo $poll_buttons_width; ?>px; |
| 810 |
} |
| 811 |
</style> |
| 812 |
<!--LIVE PREVIEW STYLES END--> |
| 813 |
<div class="wrap"> |
| 814 |
<div class="ays-poll-heading-box"> |
| 815 |
<div class="ays-poll-wordpress-user-manual-box"> |
| 816 |
<a href="https://ays-pro.com/wordpress-poll-maker-user-manual" target="_blank" style="text-decoration: none;font-size: 13px;"> |
| 817 |
<i class="ays_poll_fas ays_fa_file_text"></i> |
| 818 |
<span style="margin-left: 3px;text-decoration: underline;"><?php echo __("View Documentation", "poll-maker"); ?></span> |
| 819 |
</a> |
| 820 |
</div> |
| 821 |
</div> |
| 822 |
<div class="container-fluid"> |
| 823 |
<form class="ays-poll-form" id="ays-poll-form" method="post"> |
| 824 |
<input type="hidden" name="ays_poll_active_tab" id="ays_poll_active_tab" value="<?php echo htmlentities($active_tab); ?>"/> |
| 825 |
<input type="hidden" name="ays_poll_ctrate_date" value="<?php //echo $poll_create_date; ?>"> |
| 826 |
<input type="hidden" name="ays_poll_author" value="<?php echo htmlentities(json_encode($poll_author)); ?>"> |
| 827 |
<input type="hidden" id="poll_choose_type_first" value="<?php echo $poll['type']; ?>" > |
| 828 |
<h1 class="wp-heading-inline"> |
| 829 |
<?php |
| 830 |
echo "$heading"; |
| 831 |
?> |
| 832 |
</h1> |
| 833 |
<div> |
| 834 |
<div class="ays-poll-subtitle-main-box"> |
| 835 |
<p class="ays-subtitle"> |
| 836 |
<?php if(isset($id) && count($get_all_polls) > 1):?> |
| 837 |
<i class="ays_poll_fas ays_fa_arrow_down ays-poll-open-polls-list" style="font-size: 15px;"></i> |
| 838 |
<?php endif; ?> |
| 839 |
<strong class="ays_poll_title_in_top"><?php echo $poll['title']; ?></strong> |
| 840 |
</p> |
| 841 |
<?php if(isset($id) && count($get_all_polls) > 1):?> |
| 842 |
<div class="ays-poll-polls-data"> |
| 843 |
<?php $var_counter = 0; foreach($get_all_polls as $var => $var_name): if( intval($var_name['id']) == $id ){continue;} $var_counter++; ?> |
| 844 |
<?php ?> |
| 845 |
<label class="ays-poll-message-vars-each-data-label"> |
| 846 |
<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"> |
| 847 |
<div class="ays-poll-polls-each-data"> |
| 848 |
<input type="hidden" class="ays-poll-polls-each-var" value="<?php echo $var; ?>"> |
| 849 |
<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> |
| 850 |
</div> |
| 851 |
</label> |
| 852 |
<?php endforeach ?> |
| 853 |
</div> |
| 854 |
<?php endif; ?> |
| 855 |
</div> |
| 856 |
<?php if($id !== null): ?> |
| 857 |
<div class="row"> |
| 858 |
<div class="col-sm-3"> |
| 859 |
<label> <?php echo __( "Shortcode text for editor", "poll-maker" ); ?> </label> |
| 860 |
</div> |
| 861 |
<div class="col-sm-9"> |
| 862 |
<p style="font-size:14px; font-style:italic;"> |
| 863 |
<?php echo __("To insert the Poll into a page, post or text widget, copy shortcode", "poll-maker"); ?> |
| 864 |
<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> |
| 865 |
<?php echo " " . __( "and paste it at the desired place in the editor.", "poll-maker"); ?> |
| 866 |
</p> |
| 867 |
</div> |
| 868 |
</div> |
| 869 |
<?php endif;?> |
| 870 |
</div> |
| 871 |
<hr> |
| 872 |
<div class='ays-all-container'> |
| 873 |
<div class='ays-all-sub-container'> |
| 874 |
<div class="ays-top-menu-wrapper"> |
| 875 |
<div class="ays_menu_left" data-scroll="0"><i class="ays_poll_fas ays_poll_fa-left"></i></div> |
| 876 |
<div class="ays-top-menu"> |
| 877 |
<div class="nav-tab-wrapper ays-top-tab-wrapper"> |
| 878 |
<a href="#tab1" data-title="General" |
| 879 |
class="nav-tab <?= $active_tab == 'General' ? 'nav-tab-active' : ''; ?>"> |
| 880 |
<?= __('General', "poll-maker"); ?> |
| 881 |
</a> |
| 882 |
<a href="#tab2" data-title="Styles" |
| 883 |
class="nav-tab <?= $active_tab == 'Styles' ? 'nav-tab-active' : ''; ?>"> |
| 884 |
<?= __('Styles', "poll-maker"); ?> |
| 885 |
</a> |
| 886 |
<a href="#tab3" data-title="Settings" |
| 887 |
class="nav-tab <?= $active_tab == 'Settings' ? 'nav-tab-active' : ''; ?>"> |
| 888 |
<?= __('Settings', "poll-maker"); ?> |
| 889 |
</a> |
| 890 |
<a href="#tab8" data-title="Results Settings" |
| 891 |
class="nav-tab <?= $active_tab == 'Results Settings' ? 'nav-tab-active' : ''; ?>"> |
| 892 |
<?= __('Results Settings', "poll-maker"); ?> |
| 893 |
</a> |
| 894 |
<a href="#tab4" data-title="Limitations" |
| 895 |
class="nav-tab <?= $active_tab == 'Limitations' ? 'nav-tab-active' : ''; ?>"> |
| 896 |
<?= __("Limitations", "poll-maker"); ?> |
| 897 |
</a> |
| 898 |
<a href="#tab5" data-title="Userdata" |
| 899 |
class="nav-tab <?= $active_tab == 'Userdata' ? 'nav-tab-active' : ''; ?>"> |
| 900 |
<?= __('User Data', "poll-maker"); ?> |
| 901 |
</a> |
| 902 |
<a href="#tab6" data-title="Email" |
| 903 |
class="nav-tab <?= $active_tab == 'Email' ? 'nav-tab-active' : ''; ?>"> |
| 904 |
<?= __('Email', "poll-maker"); ?> |
| 905 |
</a> |
| 906 |
<a href="#tab7" data-title="Integrations" |
| 907 |
class="nav-tab <?= $active_tab == 'Integrations' ? 'nav-tab-active' : ''; ?>"> |
| 908 |
<?= __('Integrations', "poll-maker"); ?> |
| 909 |
</a> |
| 910 |
</div> |
| 911 |
<div class='top-menu-buttons-container'> |
| 912 |
<?php |
| 913 |
echo $loader_iamge; |
| 914 |
$save_attributes = array( |
| 915 |
'id' => 'ays-button-top-apply', |
| 916 |
'title' => 'Ctrl + s', |
| 917 |
'data-toggle' => 'tooltip', |
| 918 |
'data-delay'=> '{"show":"1000"}' |
| 919 |
); |
| 920 |
submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply_top', false, $save_attributes); |
| 921 |
$save_close_attributes = array('id' => 'ays-button-top'); |
| 922 |
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); |
| 923 |
submit_button(__('Cancel', "poll-maker"), 'ays-button ays-top-menu-cancel ays-bottom-menu-buttons', 'ays_poll_cancel_top', false, array()); |
| 924 |
?> |
| 925 |
</div> |
| 926 |
</div> |
| 927 |
<div class="ays_menu_right" data-scroll="-1"><i class="ays_poll_fas ays_poll_fa-right"></i></div> |
| 928 |
</div> |
| 929 |
<div id="tab1" class="ays-poll-tab-content <?= $active_tab == 'General' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 930 |
<div class="col-sm-12" style="padding-left:0;display:flex;justify-content:space-between;"> |
| 931 |
<p class="ays-subtitle" style="margin-bottom:0;"> |
| 932 |
<?= __('General options', "poll-maker"); ?> |
| 933 |
</p> |
| 934 |
<?php if ($poll_main_url != ''): ?> |
| 935 |
<div class="d-flex align-items-end justify-content-end" style="margin-top: 15px;"> |
| 936 |
<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;"> |
| 937 |
<i class="fa fa-eye" aria-hidden="true"></i> |
| 938 |
<span style="margin-left: 5px;"><?php echo __( 'View', "easy-form" ); ?></span> |
| 939 |
</a> |
| 940 |
</div> |
| 941 |
<?php endif; ?> |
| 942 |
</div> |
| 943 |
<hr> |
| 944 |
<div class="form-group row"> |
| 945 |
<div class="col-sm-3"> |
| 946 |
<label for='ays-poll-title'> |
| 947 |
<?= __('Title', "poll-maker"); ?> |
| 948 |
<a class="ays_help" data-toggle="tooltip" |
| 949 |
data-placement="top" |
| 950 |
title="<?= __("Define a name for your poll which will be shown as a headline inside the poll.", "poll-maker"); ?>"> |
| 951 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 952 |
</a> |
| 953 |
</label> |
| 954 |
</div> |
| 955 |
<div class="col-sm-9 ays_divider_left"> |
| 956 |
<input type="text" class="ays-text-input" id='ays-poll-title' name='ays-poll-title' |
| 957 |
data-required="false" value="<?= $poll_title ?>"/> |
| 958 |
</div> |
| 959 |
</div> |
| 960 |
<hr> |
| 961 |
<div class="form-group row" style="display: flex;"> |
| 962 |
<div class="col-sm-3"> |
| 963 |
<label for='ays-poll-question'> |
| 964 |
<?= __('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"); ?>"> |
| 965 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 966 |
</a> |
| 967 |
<a href="javascript:void(0)" class="add-question-image button"> |
| 968 |
<?= $image_text; ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Add an image to the question.", "poll-maker"); ?>"> |
| 969 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 970 |
</a></a> |
| 971 |
</label> |
| 972 |
<div class="ays-poll-question-image-container" style="<?= $style; ?>"> |
| 973 |
<span class="ays-remove-question-img"></span> |
| 974 |
<img src="<?= $poll['image']; ?>" id="ays-poll-img"/> |
| 975 |
<input type="hidden" name="ays_poll_image" id="ays-poll-image" value="<?= $poll['image']; ?>"/> |
| 976 |
</div> |
| 977 |
</div> |
| 978 |
<div class="col-sm-9"> |
| 979 |
<?php |
| 980 |
$content = stripslashes($poll["question"]); |
| 981 |
$editor_id = 'ays-poll-question'; |
| 982 |
$settings = array( |
| 983 |
'editor_height' => $poll_wp_editor_height, |
| 984 |
'textarea_name' => 'ays_poll_question', |
| 985 |
'editor_class' => 'ays-textarea', |
| 986 |
'media_buttons' => true, |
| 987 |
'tinymce' => array( |
| 988 |
"init_instance_callback" => "function(editor) { |
| 989 |
editor.on('Change', function(e) { |
| 990 |
document.querySelector('.box-apm .ays_question').innerHTML = e.level.content; |
| 991 |
}); |
| 992 |
}", |
| 993 |
) |
| 994 |
); |
| 995 |
wp_editor($content, $editor_id, $settings); |
| 996 |
?> |
| 997 |
</div> |
| 998 |
</div> |
| 999 |
<hr> |
| 1000 |
|
| 1001 |
<?php if ($poll['type'] == 'choosing') : ?> |
| 1002 |
<div class="form-group row if-not-choosing-hide ays_poll_option_only_for_choosing_type" style="display: flex;"> |
| 1003 |
<div class="col-sm-3"> |
| 1004 |
<label for="ays-poll-answer" > |
| 1005 |
<?php echo __('Options', "poll-maker")?> |
| 1006 |
</label> |
| 1007 |
</div> |
| 1008 |
<div class="col-sm-9 poll-type-block ays-poll-type-block ays-poll-answers-table-scroll-mobile" > |
| 1009 |
<div> |
| 1010 |
<div class='add-option-top-container'> |
| 1011 |
<a class="ays-add-answer ays-click-once" id='add-answer'> |
| 1012 |
<img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'> |
| 1013 |
<span>Add Option</span> |
| 1014 |
</a> |
| 1015 |
</div> |
| 1016 |
<table class="ays-answers-table" id="ays-answers-table" ays_default_count="<?php echo 2; ?>"> |
| 1017 |
<thead> |
| 1018 |
<tr class="ui-state-default"> |
| 1019 |
<th class="th-150"><?php echo __('Ordering', "poll-maker"); ?></th> |
| 1020 |
<th style="width: 100vw;"><?php echo __('Option', "poll-maker"); ?></th> |
| 1021 |
<th class="th-350 ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"><?php echo __('Redirect URL', "poll-maker"); ?></th> |
| 1022 |
<th class="th-150 only_pro"><?php echo __('Image', "poll-maker"); ?></th> |
| 1023 |
<th class="th-150"><?php echo __('Delete', "poll-maker"); ?></th> |
| 1024 |
</tr> |
| 1025 |
</thead> |
| 1026 |
<tbody class=""> |
| 1027 |
<?php |
| 1028 |
$answers = $poll['answers']; |
| 1029 |
$answers_count = (! empty($answers) ) ? count($answers) : $answer_default_count; |
| 1030 |
$loop_iteration = 0; |
| 1031 |
$rows_count = count($answers); |
| 1032 |
$ays_key_enter = ""; |
| 1033 |
$user_add_html = ''; |
| 1034 |
if (count($answers) > 0 && $poll['type'] == 'choosing') : |
| 1035 |
foreach ($answers as $index => $answer) { |
| 1036 |
$user_add_html = ''; |
| 1037 |
$class = (($index + 1) % 2 == 0) ? "even" : ""; |
| 1038 |
$answer_val = stripslashes(htmlentities($answer["answer"])); |
| 1039 |
$answer_id = $answer["id"]; |
| 1040 |
$answer_img_class = (isset($answer['answer_img']) && $answer['answer_img'] != '') ? 'display:block' : 'display:none;'; |
| 1041 |
$answer_img = (isset($answer['answer_img']) && $answer['answer_img'] == '') ? '' : $answer['answer_img']; |
| 1042 |
$answer_redirect = (isset($answer['redirect']) && $answer['redirect'] != '') ? esc_url($answer['redirect']) : ''; |
| 1043 |
$user_added = (isset($answer['user_added']) && $answer['user_added'] == 1) ? true : false; |
| 1044 |
$show_user_added = (isset($answer['show_user_added']) && $answer['show_user_added'] == 1) ? true : false; |
| 1045 |
|
| 1046 |
if ((isset($options['poll_allow_answer']) && $options['poll_allow_answer'] == "on") |
| 1047 |
&& (isset($options['poll_allow_answer_require']) && $options['poll_allow_answer_require'] == "on")) { |
| 1048 |
$disable_show_user_added = ''; |
| 1049 |
}else{ |
| 1050 |
$disable_show_user_added = 'display: none;'; |
| 1051 |
} |
| 1052 |
|
| 1053 |
$show_user_added_checkbox = ''; |
| 1054 |
if ($show_user_added == 1) { |
| 1055 |
$show_user_added_checkbox = 'checked'; |
| 1056 |
} |
| 1057 |
if ( $user_added ) { |
| 1058 |
$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 .' />'; |
| 1059 |
} |
| 1060 |
|
| 1061 |
if(isset($answer['show_user_added']) && $answer['show_user_added'] == 1){ |
| 1062 |
$check_show_user_added = "1"; |
| 1063 |
}elseif (isset($answer['show_user_added']) && $answer['show_user_added'] == 0) { |
| 1064 |
$check_show_user_added = "0"; |
| 1065 |
}else{ |
| 1066 |
$check_show_user_added = "1"; |
| 1067 |
} |
| 1068 |
|
| 1069 |
if($loop_iteration == $rows_count - 1){ |
| 1070 |
$ays_key_enter = "ays_poll_enter_key"; |
| 1071 |
} |
| 1072 |
$loop_iteration++; |
| 1073 |
?> |
| 1074 |
<tr class="ays-answer-row ui-state-default <?php echo $class; ?>"> |
| 1075 |
<td class="ays-sort"> |
| 1076 |
<div class='ays_poll_move_arrows'></div> |
| 1077 |
<td> |
| 1078 |
<div class="ays_poll_display_flex"> |
| 1079 |
<input type="hidden" class="<?php echo ( $user_added ) ? 'ays_show_user_added_hid' : ''; ?>" name="ays_poll_show_user_added[]" value="<?= $check_show_user_added ?>" /> |
| 1080 |
<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); ?>"> |
| 1081 |
<?php echo $user_add_html; ?> |
| 1082 |
<input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $index;?>" value="<?php echo $answer_id; ?>"> |
| 1083 |
</div> |
| 1084 |
</td> |
| 1085 |
<td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"> |
| 1086 |
<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"; ?>"/> |
| 1087 |
</td> |
| 1088 |
<td> |
| 1089 |
<label class='ays-label' for='ays-answer' style="<?php echo ($answer_img == '') ? 'display:inline-block;' : 'display:none'; ?>"> |
| 1090 |
<a class="ays-poll-add-answer-image add-answer-image-icon" style="<?php echo ($answer_img == '') ? 'display:block;' : 'display:none'; ?>"></a> |
| 1091 |
</label> |
| 1092 |
<div class="ays-poll-answer-image-container" style="<?php echo $answer_img_class; ?>"> |
| 1093 |
<span class="ays-poll-remove-answer-img"></span> |
| 1094 |
<img src="<?php echo $answer_img; ?>" class="ays-poll-answer-img"/> |
| 1095 |
<input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value="<?php echo $answer_img; ?>"> |
| 1096 |
</div> |
| 1097 |
</td> |
| 1098 |
<td> |
| 1099 |
<a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $index;?>" data-lid="<?php echo $index;?>"> |
| 1100 |
</a> |
| 1101 |
</td> |
| 1102 |
</tr> |
| 1103 |
<?php |
| 1104 |
} |
| 1105 |
?> |
| 1106 |
<?php |
| 1107 |
else: |
| 1108 |
for ($dac_i=0; $dac_i < intval($answer_default_count); $dac_i++) : |
| 1109 |
if($loop_iteration == intval($answer_default_count) - 1){ |
| 1110 |
$ays_key_enter = "ays_poll_enter_key"; |
| 1111 |
} |
| 1112 |
$loop_iteration++; |
| 1113 |
$ays_even_or_not = ($dac_i%2 !=0) ? 'even' : ''; |
| 1114 |
?> |
| 1115 |
<tr class="ays-answer-row ui-state-default <?php echo $ays_even_or_not; ?>"> |
| 1116 |
<td class="ays-sort"> |
| 1117 |
<div class='ays_poll_move_arrows'></div> |
| 1118 |
</td> |
| 1119 |
<td class="ays-choosing-answer-container"> |
| 1120 |
<div class="ays_poll_display_flex"> |
| 1121 |
<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); ?>"> |
| 1122 |
<?php echo $user_add_html; ?> |
| 1123 |
<input type="hidden" name="ays-poll-answers-ids[]" data-id="<?php echo $dac_i;?>" value="0"> |
| 1124 |
</div> |
| 1125 |
</td> |
| 1126 |
<td class="ays-answer-redirect-row <?php echo ($redirect_after_submit) ? '' : 'ays_poll_display_none'; ?>"> |
| 1127 |
<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=""/> |
| 1128 |
</td> |
| 1129 |
<td> |
| 1130 |
<label class='ays-label' for='ays-answer'> |
| 1131 |
<a class="ays-poll-add-answer-image add-answer-image-icon"></a> |
| 1132 |
</label> |
| 1133 |
<div class="ays-poll-answer-image-container" style="display:none;"> |
| 1134 |
<span class="ays-poll-remove-answer-img"></span> |
| 1135 |
<img src="" class="ays-poll-answer-img"/> |
| 1136 |
<input type="hidden" name="ays-poll-answers-images[]" class="ays-poll-answer-image-path" value=""/> |
| 1137 |
</div> |
| 1138 |
</td> |
| 1139 |
|
| 1140 |
<td> |
| 1141 |
<a href="javascript:void(0)" class="ays-delete-answer" data-id="<?php echo $dac_i;?>" data-lid="<?php echo $dac_i;?>"> |
| 1142 |
</a> |
| 1143 |
</td> |
| 1144 |
</tr> |
| 1145 |
<?php |
| 1146 |
endfor; |
| 1147 |
endif; |
| 1148 |
?> |
| 1149 |
</tbody> |
| 1150 |
</table> |
| 1151 |
<div class='add-option-top-container'> |
| 1152 |
<a class="ays-add-answer" id='add-answer'> |
| 1153 |
<img src= "<?php echo (POLL_MAKER_AYS_ADMIN_URL . '/images/icons/plus.svg') ?>" class='plus-sign'> |
| 1154 |
<span>Add Option</span> |
| 1155 |
</a> |
| 1156 |
</div> |
| 1157 |
<input type="hidden" id="ays_poll_answers_count" value="<?php echo $answers_count ?>"> |
| 1158 |
<input type="hidden" id="ays_answer_checker" value="<?php echo $checking_answer_hover_live ?>"> |
| 1159 |
</div> |
| 1160 |
|
| 1161 |
</div> |
| 1162 |
</div> |
| 1163 |
<?php endif; ?> |
| 1164 |
<hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>"> |
| 1165 |
<div class="form-group row" style="display: flex;"> |
| 1166 |
<div class="col-sm-3"> |
| 1167 |
<label for="ays-poll-answer" > |
| 1168 |
<?php echo __('Option Settings', "poll-maker")?> |
| 1169 |
</label> |
| 1170 |
</div> |
| 1171 |
<div class="col-sm-9"> |
| 1172 |
<div class="if-choosing apm-poll-type poll-type-block form-group row ays-poll-type-block" > |
| 1173 |
<div class="col-sm-12"> |
| 1174 |
<div class="form-group row"> |
| 1175 |
<div class="col-1"> |
| 1176 |
<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' : '' ?>/> |
| 1177 |
</div> |
| 1178 |
<div class="col-4 unset-padding-left"> |
| 1179 |
<label for="ays_redirect_after_submit" > |
| 1180 |
<?php echo __('Answer Redirection', "poll-maker")?> |
| 1181 |
<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")?>"> |
| 1182 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1183 |
</a> |
| 1184 |
</label> |
| 1185 |
</div> |
| 1186 |
</div> |
| 1187 |
</div> |
| 1188 |
</div> |
| 1189 |
<hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>"> |
| 1190 |
<div class="if-choosing apm-poll-type poll-type-block form-group ays-poll-type-block row ays_toggle_parent"> |
| 1191 |
<div class="col-sm-12"> |
| 1192 |
<div class="form-group row ays_poll_allow_add_answers_flex_container"> |
| 1193 |
<div class="col-1"> |
| 1194 |
<input type="checkbox" name="ays_poll_allow_add_answers" id="ays_poll_allow_add_answers" class="ays_toggle_checkbox" |
| 1195 |
value="on" <?= $poll_allow_answer ?>> |
| 1196 |
</div> |
| 1197 |
<div class="col-4 unset-padding-left"> |
| 1198 |
<label for="ays_poll_allow_add_answers"> |
| 1199 |
<?= __('Allow custom answer', "poll-maker"); ?> |
| 1200 |
<a class="ays_help" data-toggle="tooltip" |
| 1201 |
data-placement="top" |
| 1202 |
title="<?= __("Allow users to add their custom answer.", "poll-maker"); ?>"> |
| 1203 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1204 |
</a> |
| 1205 |
</label> |
| 1206 |
</div> |
| 1207 |
<div class="col-7 allow_add_answers_not_show_up_container"> |
| 1208 |
<div class="ays_toggle_target" <?= $poll_allow_answer ? '' : 'style="display:none;"'; ?>> |
| 1209 |
<div class="form-group row allow_add_answers_not_show_up ays_toggle_parent"> |
| 1210 |
<div class="col-2 ays_divider_left"> |
| 1211 |
<input type="checkbox" class="ays_toggle_checkbox" name="ays_poll_allow_answer_require" id="ays_poll_allow_answer_require" |
| 1212 |
value="on" <?= $poll_allow_answer_require ?> /> |
| 1213 |
</div> |
| 1214 |
<div class="col-10"> |
| 1215 |
<label for="ays_poll_allow_answer_require"> |
| 1216 |
<?= __('Require admin approval', "poll-maker"); ?> |
| 1217 |
<a class="ays_help" data-toggle="tooltip" |
| 1218 |
data-placement="top" |
| 1219 |
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"); ?>"> |
| 1220 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1221 |
</a> |
| 1222 |
</label> |
| 1223 |
</div> |
| 1224 |
<?php |
| 1225 |
$poll_answers = $poll['answers']; |
| 1226 |
$is_user_added_exist = 0; |
| 1227 |
foreach ($poll_answers as $index => $answer) { |
| 1228 |
if($answer['user_added'] == 1) { |
| 1229 |
$is_user_added_exist++; |
| 1230 |
} |
| 1231 |
} |
| 1232 |
if($is_user_added_exist > 0): |
| 1233 |
?> |
| 1234 |
<div class="col-12 row ays_toggle_target" <?= ($poll_allow_answer_require) == '' ? 'style="display:none;"' : '' ; ?>> |
| 1235 |
<div class="col-2 ays_divider_left" style="align-items: center;"> |
| 1236 |
<input type="checkbox" id="ays_poll_require_approve_select_all"/> |
| 1237 |
</div> |
| 1238 |
<div class="col-10"> |
| 1239 |
<label for="ays_poll_require_approve_select_all"> |
| 1240 |
<?= __('Select all', "poll-maker"); ?> |
| 1241 |
<a class="ays_help" data-toggle="tooltip" |
| 1242 |
data-placement="top" |
| 1243 |
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"); ?>"> |
| 1244 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1245 |
</a> |
| 1246 |
</label> |
| 1247 |
</div> |
| 1248 |
</div> |
| 1249 |
<?php |
| 1250 |
endif; |
| 1251 |
?> |
| 1252 |
</div> |
| 1253 |
</div> |
| 1254 |
</div> |
| 1255 |
</div> |
| 1256 |
</div> |
| 1257 |
</div> <!-- Allow custom answer --> |
| 1258 |
<hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>"> |
| 1259 |
<div class="if-voting poll-type-block form-group row"> |
| 1260 |
<div class="col-sm-3"> |
| 1261 |
<label for="ays-poll-vote-type"> |
| 1262 |
<?= __('Appearance', "poll-maker"); ?><a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select the appearance of the poll.", "poll-maker"); ?>"> |
| 1263 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1264 |
</a></label> |
| 1265 |
</div> |
| 1266 |
<div class="col-sm-9 answers-col"> |
| 1267 |
<select class="ays-select" id="ays-poll-vote-type" name="ays-poll-vote-type"> |
| 1268 |
<option value='hand' <?= $poll['view_type'] == 'hand' ? "selected" : ""; ?>> |
| 1269 |
<?= __('Hand', "poll-maker"); ?> |
| 1270 |
</option> |
| 1271 |
<option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>> |
| 1272 |
<?= __('Emoji', "poll-maker"); ?> |
| 1273 |
</option> |
| 1274 |
</select> |
| 1275 |
<?php |
| 1276 |
switch ($poll['view_type']) { |
| 1277 |
case 'hand': |
| 1278 |
$vote_res = 'ays_poll_far ays_poll_fa-thumbs-up'; |
| 1279 |
$rate_res = 'ays_poll_fas ays_poll_fa-star'; |
| 1280 |
break; |
| 1281 |
|
| 1282 |
case 'emoji': |
| 1283 |
$vote_res = 'ays_poll_fas ays_poll_fa-smile'; |
| 1284 |
$rate_res = 'ays_poll_fas ays_poll_fa-smile'; |
| 1285 |
break; |
| 1286 |
|
| 1287 |
case 'star': |
| 1288 |
$rate_res = 'ays_poll_fas ays_poll_fa-star'; |
| 1289 |
$vote_res = 'ays_poll_far ays_poll_fa-thumbs-up'; |
| 1290 |
break; |
| 1291 |
|
| 1292 |
default: |
| 1293 |
$vote_res = 'ays_poll_far ays_poll_fa-thumbs-up'; |
| 1294 |
$rate_res = 'ays_poll_fas ays_poll_fa-star'; |
| 1295 |
break; |
| 1296 |
} |
| 1297 |
?> |
| 1298 |
<i id="vote-res" class="<?php echo $vote_res; ?>"></i> |
| 1299 |
</div> |
| 1300 |
</div> |
| 1301 |
<div class="if-rating poll-type-block form-group row"> |
| 1302 |
<div class="col-sm-3"> |
| 1303 |
<label for="ays-poll-rate-type"> |
| 1304 |
<?= __('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"); ?>"> |
| 1305 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1306 |
</a></label> |
| 1307 |
</div> |
| 1308 |
<div class="col-sm-9 answers-col"> |
| 1309 |
<select class="ays-select" id="ays-poll-rate-type" name="ays-poll-rate-type"> |
| 1310 |
<option value='star' <?= $poll['view_type'] == 'star' ? "selected" : ""; ?>> |
| 1311 |
<?= __('Stars', "poll-maker"); ?> |
| 1312 |
</option> |
| 1313 |
<option value="emoji" <?= $poll['view_type'] == 'emoji' ? "selected" : ""; ?>> |
| 1314 |
<?= __('Emoji', "poll-maker"); ?> |
| 1315 |
</option> |
| 1316 |
</select> |
| 1317 |
<select class="ays-select" id="ays-poll-rate-value" name="ays-poll-rate-value"> |
| 1318 |
<option value="<?= count($poll['answers']); ?>" selected> |
| 1319 |
<?= count($poll['answers']); ?> |
| 1320 |
</option> |
| 1321 |
</select> |
| 1322 |
<i id="rate-res" class="<?php echo $rate_res; ?>"></i> |
| 1323 |
</div> |
| 1324 |
</div> |
| 1325 |
<hr class="if-voting if-rating"> |
| 1326 |
<div class="form-group row"> |
| 1327 |
<div class="col-sm-12 only_pro" style="padding:15px;"> |
| 1328 |
<div class="pro_features pro_features_popup"> |
| 1329 |
<div class="pro-features-popup-conteiner"> |
| 1330 |
<div class="pro-features-popup-title"> |
| 1331 |
<?php echo __("Add Fake Votes", "poll-maker"); ?> |
| 1332 |
</div> |
| 1333 |
<div class="pro-features-popup-content" data-link="https://youtu.be/5eEyF5VS43c"> |
| 1334 |
<p> |
| 1335 |
<?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"); ?> |
| 1336 |
</p> |
| 1337 |
</div> |
| 1338 |
<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"> |
| 1339 |
<?php echo __("Upgrade PRO NOW", "poll-maker"); ?> |
| 1340 |
</div> |
| 1341 |
</div> |
| 1342 |
</div> |
| 1343 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 1344 |
</div> |
| 1345 |
<div class="form-group row"> |
| 1346 |
<div class="col-1"> |
| 1347 |
<input type="checkbox" name="ays_add_f_votes" |
| 1348 |
value="on"> |
| 1349 |
</div> |
| 1350 |
<div class="col-11 unset-padding-left"> |
| 1351 |
<label for="ays_add_f_votes"> |
| 1352 |
<?= __('Add fake votes', "poll-maker"); ?> |
| 1353 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Allow users to add their fake votes to each option.", "poll-maker"); ?>"> |
| 1354 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1355 |
</a> |
| 1356 |
</label> |
| 1357 |
</div> |
| 1358 |
</div> |
| 1359 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 1360 |
<div class="ays-poll-new-upgrade-button-box"> |
| 1361 |
<div> |
| 1362 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 1363 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 1364 |
</div> |
| 1365 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 1366 |
</div> |
| 1367 |
</a> |
| 1368 |
<div class="ays-poll-new-watch-video-button-box"> |
| 1369 |
<div> |
| 1370 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>"> |
| 1371 |
<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"> |
| 1372 |
</div> |
| 1373 |
<div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div> |
| 1374 |
</div> |
| 1375 |
</div> |
| 1376 |
</div> |
| 1377 |
<hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>> |
| 1378 |
<div class="if-text poll-type-block form-group row"> |
| 1379 |
<div class="col-sm-3"> |
| 1380 |
<label for=""> |
| 1381 |
<?= __('Choose text type', "poll-maker"); ?> |
| 1382 |
<a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<p style='margin-bottom:3px;'> |
| 1383 |
<?php echo __( 'Choose the type of the question:' , "poll-maker" ); ?> |
| 1384 |
<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> |
| 1385 |
<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>"> |
| 1386 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1387 |
</a> |
| 1388 |
</label> |
| 1389 |
</div> |
| 1390 |
<div class="col-sm-9 answers-col row"> |
| 1391 |
<div class="d-flex" style="padding: 0 15px;"> |
| 1392 |
<div class="form-check-inline"> |
| 1393 |
<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" : ""; ?>> |
| 1394 |
<label for="ays_poll_text_type_short"><?php echo __("Short text", "poll-maker");?> |
| 1395 |
</label> |
| 1396 |
</div> |
| 1397 |
<div class="form-check-inline"> |
| 1398 |
<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" : ""; ?>> |
| 1399 |
<label for="ays_poll_text_type_paragraph"><?php echo __("Paragraph", "poll-maker");?> |
| 1400 |
</label> |
| 1401 |
</div> |
| 1402 |
</div> |
| 1403 |
</div> |
| 1404 |
</div> |
| 1405 |
<hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>> |
| 1406 |
<div class="if-text poll-type-block form-group row"> |
| 1407 |
<div class="col-sm-3"> |
| 1408 |
<label for='ays_poll_text_type_placeholder'> |
| 1409 |
<?= __("Placeholder", "poll-maker"); ?> |
| 1410 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 1411 |
title="<?= __("Write your preferred word to show in the placeholder field.", "poll-maker"); ?>"> |
| 1412 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1413 |
</a> |
| 1414 |
</label> |
| 1415 |
</div> |
| 1416 |
<div class="col-sm-3 ays_divider_left"> |
| 1417 |
<input type="text" name="ays_poll_text_type_placeholder" id="ays_poll_text_type_placeholder" value="<?php echo $poll_text_type_placeholder?>"> |
| 1418 |
</div> |
| 1419 |
</div> |
| 1420 |
<hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>> |
| 1421 |
<div class="if-text poll-type-block form-group row"> |
| 1422 |
<div class="col-sm-3"> |
| 1423 |
<label for='ays_poll_text_type_width'> |
| 1424 |
<?= __("Width", "poll-maker"); ?> |
| 1425 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 1426 |
title="<?= __("Specify the width of the text field.", "poll-maker"); ?>"> |
| 1427 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1428 |
</a> |
| 1429 |
</label> |
| 1430 |
</div> |
| 1431 |
<div class="col-sm-3 ays_divider_left"> |
| 1432 |
<input type="number" name="ays_poll_text_type_width" id="ays_poll_text_type_width" value="<?php echo $poll_text_type_width; ?>"> |
| 1433 |
</div> |
| 1434 |
<div class="col-sm-6"> |
| 1435 |
<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"> |
| 1436 |
<option value="percent" <?php echo ($poll_text_type_width_type == "percent") ? "selected" : ""; ?>>%</option> |
| 1437 |
<option value="pixel" <?php echo ($poll_text_type_width_type == "pixel") ? "selected" : ""; ?>>px</option> |
| 1438 |
</select> |
| 1439 |
</div> |
| 1440 |
</div> |
| 1441 |
<hr class="ays_hr_on_text" <?php echo $poll['type'] == 'text' ? "" : "style='display: none;'"?>> |
| 1442 |
<div class="if-text poll-type-block form-group row ays_toggle_parent"> |
| 1443 |
<div class="col-sm-3"> |
| 1444 |
<label for="ays_poll_enable_question_length"> |
| 1445 |
<?= __('Maximum length of a text field', "poll-maker"); ?> |
| 1446 |
<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" ); ?>"> |
| 1447 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1448 |
</a> |
| 1449 |
</label> |
| 1450 |
</div> |
| 1451 |
<div class="col-sm-1 ays_divider_left"> |
| 1452 |
<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' : ''; ?>> |
| 1453 |
</div> |
| 1454 |
<div class="col-sm-7 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_text_type_length_enable) ? '' : 'display: none'; ?>"> |
| 1455 |
<div class="form-group row"> |
| 1456 |
<div class="col-sm-4"> |
| 1457 |
<label for="ays_poll_question_limit_text_type"> |
| 1458 |
<?php echo __('Limit by', "poll-maker"); ?> |
| 1459 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred type of limitation.', "poll-maker"); ?>"> |
| 1460 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1461 |
</a> |
| 1462 |
</label> |
| 1463 |
</div> |
| 1464 |
<div class="col-sm-8"> |
| 1465 |
<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%;"> |
| 1466 |
<option value='characters' <?php echo ($poll_text_type_limit_type == 'characters') ? 'selected' : '' ?> ><?php echo __( 'Characters' , "poll-maker" ); ?></option> |
| 1467 |
<option value='words' <?php echo ($poll_text_type_limit_type == 'words') ? 'selected' : '' ?> ><?php echo __( 'Words' , "poll-maker" ); ?></option> |
| 1468 |
</select> |
| 1469 |
</div> |
| 1470 |
</div> |
| 1471 |
<hr> |
| 1472 |
<div class="form-group row"> |
| 1473 |
<div class="col-sm-4"> |
| 1474 |
<label for="ays_poll_question_text_max_length"> |
| 1475 |
<?php echo __('Length', "poll-maker"); ?> |
| 1476 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Indicate the length of the characters/words.', "poll-maker"); ?>"> |
| 1477 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1478 |
</a> |
| 1479 |
</label> |
| 1480 |
</div> |
| 1481 |
<div class="col-sm-8"> |
| 1482 |
<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%;"> |
| 1483 |
</div> |
| 1484 |
</div> |
| 1485 |
<hr> |
| 1486 |
<div class="form-group row"> |
| 1487 |
<div class="col-sm-4"> |
| 1488 |
<label for="ays_poll_question_enable_text_message"> |
| 1489 |
<?php echo __('Show word/character counter', "poll-maker"); ?> |
| 1490 |
<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"); ?>"> |
| 1491 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1492 |
</a> |
| 1493 |
</label> |
| 1494 |
</div> |
| 1495 |
<div class="col-sm-8"> |
| 1496 |
<div class="form-check form-check-inline"> |
| 1497 |
<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" : ""; ?> /> |
| 1498 |
</div> |
| 1499 |
</div> |
| 1500 |
</div> |
| 1501 |
</div> |
| 1502 |
</div> |
| 1503 |
</div> |
| 1504 |
</div> |
| 1505 |
</div> |
| 1506 |
<div id="tab2" class="ays-poll-tab-content <?= $active_tab == 'Styles' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 1507 |
<p class="ays-subtitle"> |
| 1508 |
<?= __('Styling options', "poll-maker"); ?> |
| 1509 |
</p> |
| 1510 |
<hr> |
| 1511 |
<div class="form-group row ays-poll-all-themes-container"> |
| 1512 |
<div class="col-sm-1"> |
| 1513 |
<label for='ays-poll-theme' class="ays_label_flex"> |
| 1514 |
<?= __('Theme', "poll-maker"); ?> |
| 1515 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 1516 |
title="<?= __("Choose your preferred, ready to use template and customize it with the options below.", "poll-maker"); ?>"> |
| 1517 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1518 |
</a> |
| 1519 |
</label> |
| 1520 |
</div> |
| 1521 |
<div class="col-sm-11 apm-themes-row d-flex apm-pro-feature-block" data-themeid="<?php echo $poll['theme_id']; ?>"> |
| 1522 |
<div class="ays_poll_theme_image_div col"> |
| 1523 |
<label for="theme_minimal" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 3) ? 'apm_active_theme"' : ''; ?>"> |
| 1524 |
<p><?= __('Minimal', "poll-maker") ?></p> |
| 1525 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/minimal.png' ?>" |
| 1526 |
alt="<?= __('Minimal', "poll-maker") ?>"> |
| 1527 |
</label> |
| 1528 |
<input type="radio" name="ays_poll_theme" id="theme_minimal" |
| 1529 |
value="3" <?= ($poll['theme_id'] == 3) ? 'checked' : '' ?>> |
| 1530 |
</div> |
| 1531 |
<div class="ays_poll_theme_image_div col"> |
| 1532 |
<label for="theme_classic_light" class="ays-poll-theme-item <?php echo ($poll['theme_id'] <= 1) ? 'apm_active_theme"' : ''; ?>"> |
| 1533 |
<p><?= __('Classic Light', "poll-maker") ?></p> |
| 1534 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicLight.png' ?>" |
| 1535 |
alt="<?= __('Classic Light', "poll-maker") ?>"> |
| 1536 |
</label> |
| 1537 |
<input type="radio" name="ays_poll_theme" id="theme_classic_light" |
| 1538 |
value="1" <?= ($poll['theme_id'] <= 1) ? 'checked' : '' ?>> |
| 1539 |
</div> |
| 1540 |
<div class="ays_poll_theme_image_div col"> |
| 1541 |
<label for="theme_classic_dark" class="ays-poll-theme-item <?php echo ($poll['theme_id'] == 2) ? 'apm_active_theme"' : ''; ?>"> |
| 1542 |
<p><?= __('Classic Dark', "poll-maker") ?></p> |
| 1543 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/ClassicDark.png' ?>" |
| 1544 |
alt="<?= __('Classic Dark', "poll-maker") ?>"> |
| 1545 |
</label> |
| 1546 |
<input type="radio" name="ays_poll_theme" id="theme_classic_dark" |
| 1547 |
value="2" <?= ($poll['theme_id'] == 2) ? 'checked' : '' ?>> |
| 1548 |
</div> |
| 1549 |
<div class="col"> |
| 1550 |
<div class="form-group row" style="margin: 0px;"> |
| 1551 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 1552 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 1553 |
</div> |
| 1554 |
<div class="ays_poll_theme_image_div_pro"> |
| 1555 |
<div class="ays_poll_theme_image_div col apm-pro-feature"> |
| 1556 |
<label class="ays-poll-theme-item"> |
| 1557 |
<p>Light Shape</p> |
| 1558 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/LightShape.png' ?>" |
| 1559 |
alt="Light Shape" |
| 1560 |
title="<?= __("It is PRO version feature", "poll-maker"); ?>"> |
| 1561 |
</label> |
| 1562 |
</div> |
| 1563 |
<div class="ays_poll_theme_image_div col apm-pro-feature"> |
| 1564 |
<label class="ays-poll-theme-item"> |
| 1565 |
<p>Dark Shape</p> |
| 1566 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/DarkShape.png' ?>" |
| 1567 |
alt="Light Shape" |
| 1568 |
title="<?= __("It is PRO version feature", "poll-maker"); ?>"> |
| 1569 |
</label> |
| 1570 |
</div> |
| 1571 |
<div class="ays_poll_theme_image_div col apm-pro-feature"> |
| 1572 |
<label class="ays-poll-theme-item"> |
| 1573 |
<p>Coffee Fluid</p> |
| 1574 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/CoffeeFluid.png' ?>" |
| 1575 |
alt="Coffee Fluid" |
| 1576 |
title="<?= __("It is PRO version feature", "poll-maker"); ?>"> |
| 1577 |
</label> |
| 1578 |
</div> |
| 1579 |
<div class="ays_poll_theme_image_div col apm-pro-feature"> |
| 1580 |
<label class="ays-poll-theme-item"> |
| 1581 |
<p><?= __("Aquamarine", "poll-maker") ?></p> |
| 1582 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/themes/Aquamarine.png' ?>" |
| 1583 |
alt="Aquamarine" |
| 1584 |
title="<?= __("It is PRO version feature", "poll-maker"); ?>"> |
| 1585 |
</label> |
| 1586 |
</div> |
| 1587 |
</div> |
| 1588 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 1589 |
<div class="ays-poll-new-upgrade-button-box"> |
| 1590 |
<div> |
| 1591 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 1592 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 1593 |
</div> |
| 1594 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 1595 |
</div> |
| 1596 |
</a> |
| 1597 |
</div> |
| 1598 |
</div> |
| 1599 |
</div> |
| 1600 |
</div> |
| 1601 |
</div> |
| 1602 |
<hr> |
| 1603 |
<div class="col ays-poll-styles-page-main-container"> |
| 1604 |
<div class="row"> |
| 1605 |
<div class="col-lg-6 col-sm-12"> |
| 1606 |
<div class="ays-poll-accordion-options-main-container"> |
| 1607 |
<div class="ays-poll-accordion-header"> |
| 1608 |
<?php echo $poll_acordion_svg_html; ?> |
| 1609 |
<p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Poll styles', "poll-maker"); ?></p> |
| 1610 |
</div> |
| 1611 |
<hr class="ays-poll-bolder-hr"/> |
| 1612 |
<div class="ays-poll-accordion-body"> |
| 1613 |
<div class="form-group row"> |
| 1614 |
<div class="col-sm-4"> |
| 1615 |
<label for='ays-poll-main-color'> |
| 1616 |
<?= __('Main Color', "poll-maker"); ?> |
| 1617 |
<a class="ays_help" |
| 1618 |
data-toggle="tooltip" |
| 1619 |
data-placement="top" |
| 1620 |
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"); ?>"> |
| 1621 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1622 |
</a> |
| 1623 |
</label> |
| 1624 |
</div> |
| 1625 |
<div class="col-sm-8 ays_divider_left"> |
| 1626 |
<input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-main-color' |
| 1627 |
name='ays_poll_main_color' |
| 1628 |
value="<?= !empty($options['main_color']) ? $options['main_color'] : $default_colors['main_color']; ?>"/> |
| 1629 |
</div> |
| 1630 |
</div> |
| 1631 |
<hr> |
| 1632 |
<div class="form-group row"> |
| 1633 |
<div class="col-sm-4"> |
| 1634 |
<label for='ays-poll-text-color'> |
| 1635 |
<?= __('Text Color', "poll-maker"); ?> |
| 1636 |
<a class="ays_help" |
| 1637 |
data-toggle="tooltip" |
| 1638 |
data-placement="top" |
| 1639 |
title="<?= __("Specify the color of the text written inside the poll.", "poll-maker"); ?>"> |
| 1640 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1641 |
</a> |
| 1642 |
</label> |
| 1643 |
</div> |
| 1644 |
<div class="col-sm-8 ays_divider_left"> |
| 1645 |
<input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-text-color' |
| 1646 |
name='ays_poll_text_color' |
| 1647 |
value="<?= !empty($options['text_color']) ? $options['text_color'] : $default_colors['text_color']; ?>"/> |
| 1648 |
</div> |
| 1649 |
</div> |
| 1650 |
<hr> |
| 1651 |
<div class="form-group row"> |
| 1652 |
<div class="col-sm-4"> |
| 1653 |
<label for='ays-poll-icon-color'> |
| 1654 |
<?= __('Icons Color', "poll-maker"); ?> |
| 1655 |
<a class="ays_help" |
| 1656 |
data-toggle="tooltip" |
| 1657 |
data-placement="top" |
| 1658 |
title="<?= __("Specify the icon color in voting and rating types.", "poll-maker"); ?>"> |
| 1659 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1660 |
</a> |
| 1661 |
</label> |
| 1662 |
</div> |
| 1663 |
<div class="col-sm-8 ays_divider_left"> |
| 1664 |
<input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-icon-color' |
| 1665 |
name='ays_poll_icon_color' |
| 1666 |
value="<?= !empty($options['icon_color']) ? $options['icon_color'] : $default_colors['icon_color']; ?>"/> |
| 1667 |
</div> |
| 1668 |
</div> |
| 1669 |
<hr> |
| 1670 |
<div class="form-group row"> |
| 1671 |
<div class="col-sm-4"> |
| 1672 |
<label for='ays-poll-bg-color'> |
| 1673 |
<?= __('Background Color', "poll-maker"); ?> |
| 1674 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Specify the background color of the poll.", "poll-maker"); ?>"> |
| 1675 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1676 |
</a> |
| 1677 |
</label> |
| 1678 |
</div> |
| 1679 |
<div class="col-sm-8 ays_divider_left"> |
| 1680 |
<input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-bg-color' |
| 1681 |
name='ays_poll_bg_color' |
| 1682 |
value="<?= !empty($options['bg_color']) ? $options['bg_color'] : $default_colors['bg_color']; ?>"/> |
| 1683 |
</div> |
| 1684 |
</div> |
| 1685 |
<hr> |
| 1686 |
<div class="form-group row"> |
| 1687 |
<div class="col-sm-4"> |
| 1688 |
<label for='ays-poll-bg-image'> |
| 1689 |
<?= __('Background Image', "poll-maker"); ?> |
| 1690 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 1691 |
title="<?= __("Add a background image to the poll. If you add a background image, the background color will not be applied.", "poll-maker"); ?>"> |
| 1692 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1693 |
</a> |
| 1694 |
</label> |
| 1695 |
</div> |
| 1696 |
<div class="col-sm-8 ays_divider_left"> |
| 1697 |
<a href="javascript:void(0)" class="add-bg-image button"> |
| 1698 |
<?= $image_text_bg; ?> |
| 1699 |
</a> |
| 1700 |
<div class="form-group row" style="<?= $style_bg; ?>"> |
| 1701 |
<div class="ays-poll-bg-image-container"> |
| 1702 |
<span class="ays-remove-bg-img"></span> |
| 1703 |
<img src="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>" |
| 1704 |
id="ays-poll-bg-img"/> |
| 1705 |
<input type="hidden" name="ays_poll_bg_image" id="ays-poll-bg-image" |
| 1706 |
value="<?= isset($options['bg_image']) ? $options['bg_image'] : ""; ?>"/> |
| 1707 |
<input type="hidden" name="ays_poll_bg_image-pos" id="ays-poll-bg-image-pos" |
| 1708 |
value="<?= isset($options['poll_bg_image_position']) ? $options['poll_bg_image_position'] : ""; ?>"/> |
| 1709 |
</div> |
| 1710 |
</div> |
| 1711 |
<div style="<?= $style_bg_options; ?>" id="ays-poll-background-image-options"> |
| 1712 |
<hr> |
| 1713 |
<div class="form-group row"> |
| 1714 |
<div class="col-sm-12"> |
| 1715 |
<label for="ays_poll_bg_image_position"> |
| 1716 |
<?php echo __( "Background image position", "poll-maker" ); ?> |
| 1717 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('The position of background image of the polls',"poll-maker")?>"> |
| 1718 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1719 |
</a> |
| 1720 |
</label> |
| 1721 |
<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;"> |
| 1722 |
<option value="left top" <?php echo $poll_bg_image_position == "left top" ? "selected" : ""; ?>><?php echo __( "Left Top", "poll-maker" ); ?></option> |
| 1723 |
<option value="left center" <?php echo $poll_bg_image_position == "left center" ? "selected" : ""; ?>><?php echo __( "Left Center", "poll-maker" ); ?></option> |
| 1724 |
<option value="left bottom" <?php echo $poll_bg_image_position == "left bottom" ? "selected" : ""; ?>><?php echo __( "Left Bottom", "poll-maker" ); ?></option> |
| 1725 |
<option value="center top" <?php echo $poll_bg_image_position == "center top" ? "selected" : ""; ?>><?php echo __( "Center Top", "poll-maker" ); ?></option> |
| 1726 |
<option value="center center" <?php echo $poll_bg_image_position == "center center" ? "selected" : ""; ?>><?php echo __( "Center Center", "poll-maker" ); ?></option> |
| 1727 |
<option value="center bottom" <?php echo $poll_bg_image_position == "center bottom" ? "selected" : ""; ?>><?php echo __( "Center Bottom", "poll-maker" ); ?></option> |
| 1728 |
<option value="right top" <?php echo $poll_bg_image_position == "right top" ? "selected" : ""; ?>><?php echo __( "Right Top", "poll-maker" ); ?></option> |
| 1729 |
<option value="right center" <?php echo $poll_bg_image_position == "right center" ? "selected" : ""; ?>><?php echo __( "Right Center", "poll-maker" ); ?></option> |
| 1730 |
<option value="right bottom" <?php echo $poll_bg_image_position == "right bottom" ? "selected" : ""; ?>><?php echo __( "Right Bottom", "poll-maker" ); ?></option> |
| 1731 |
</select> |
| 1732 |
</div> |
| 1733 |
</div> |
| 1734 |
<hr> |
| 1735 |
<div class="form-group row"> |
| 1736 |
<div class="col-sm-8"> |
| 1737 |
<label for="ays_poll_bg_img_in_finish_page"> |
| 1738 |
<?php echo __( "Hide background image on result page", "poll-maker" ); ?> |
| 1739 |
<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")?>"> |
| 1740 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1741 |
</a> |
| 1742 |
</label> |
| 1743 |
</div> |
| 1744 |
<div class="col-sm-4"> |
| 1745 |
<input type="checkbox" class="ays_toggle ays_toggle_slide" |
| 1746 |
id="ays_poll_bg_img_in_finish_page" |
| 1747 |
name="ays_poll_bg_img_in_finish_page" |
| 1748 |
<?php echo ($poll_bg_img_in_finish_page) ? 'checked' : ''; ?>/> |
| 1749 |
<label for="ays_poll_bg_img_in_finish_page" style="display:inline-block;margin-left:10px;" class="ays_switch_toggle">Toggle</label> |
| 1750 |
</div> |
| 1751 |
</div> |
| 1752 |
</div> |
| 1753 |
</div> |
| 1754 |
</div> |
| 1755 |
<hr> |
| 1756 |
<div class="form-group row"> |
| 1757 |
<div class="col-sm-4"> |
| 1758 |
<label for='ays_poll_enable_box_shadow'><?= __('Box shadow', "poll-maker"); ?> |
| 1759 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 1760 |
title="<?= __("Add a shadow to your poll container. Moreover, you can choose the color of it.", "poll-maker"); ?>"> |
| 1761 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1762 |
</a> |
| 1763 |
</label> |
| 1764 |
</div> |
| 1765 |
<div class="col-sm-8 ays_divider_left"> |
| 1766 |
<input type="checkbox" class="ays_toggle ays_toggle_slide" |
| 1767 |
id="ays_poll_enable_box_shadow" |
| 1768 |
name="ays_poll_enable_box_shadow" <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == 'on') ? 'checked' : ''; ?>> |
| 1769 |
<label for="ays_poll_enable_box_shadow" class="ays_switch_toggle">Toggle</label> |
| 1770 |
<div class="col-sm-12 ays_toggle_target ays_divider_top" |
| 1771 |
style="margin-top: 10px; padding-top: 10px; <?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on") ? '' : 'display:none;' ?>"> |
| 1772 |
<label for="ays-poll-box-shadow-color"> |
| 1773 |
<?= __('Box shadow color', "poll-maker") ?> |
| 1774 |
<a class="ays_help" data-toggle="tooltip" |
| 1775 |
title="--><?= __('The shadow color of Poll container', "poll-maker") ?>"> |
| 1776 |
<i class="ays_fa ays_fa_info_circle"></i> |
| 1777 |
</a> |
| 1778 |
</label> |
| 1779 |
<input type="text" class="ays-shadow-input" data-alpha="true" id='ays-poll-box-shadow-color' |
| 1780 |
name='ays_poll_box_shadow_color' |
| 1781 |
value="<?= (isset($options['box_shadow_color']) && !empty($options['box_shadow_color'])) ? $options['box_shadow_color'] : '#000000'; ?>"/> |
| 1782 |
</div> |
| 1783 |
<!----> |
| 1784 |
<hr class="ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>"> |
| 1785 |
<div class="form-group row ays_toggle_target" style="<?= (isset($options['enable_box_shadow']) && $options['enable_box_shadow'] == "on" ) ? '' : 'display:none' ?>"> |
| 1786 |
<div class="col-sm-12"> |
| 1787 |
<div class="col-sm-3" style="display: inline-block;"> |
| 1788 |
<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; ?>" /> |
| 1789 |
<span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span> |
| 1790 |
</div> |
| 1791 |
<div class="col-sm-3 ays_divider_left" style="display: inline-block;"> |
| 1792 |
<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; ?>" /> |
| 1793 |
<span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span> |
| 1794 |
</div> |
| 1795 |
<div class="col-sm-3 ays_divider_left" style="display: inline-block;"> |
| 1796 |
<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; ?>" /> |
| 1797 |
<span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span> |
| 1798 |
</div> |
| 1799 |
</div> |
| 1800 |
</div> |
| 1801 |
<!----> |
| 1802 |
</div> |
| 1803 |
</div> |
| 1804 |
<hr> |
| 1805 |
<!-- ---------Aro start gradient --> |
| 1806 |
<div class="form-group row"> |
| 1807 |
<div class="col-sm-4"> |
| 1808 |
<label for="ays-enable-background-gradient"> |
| 1809 |
<?php echo __('Background Gradient', "poll-maker")?> |
| 1810 |
<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")?>"> |
| 1811 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1812 |
</a> |
| 1813 |
</label> |
| 1814 |
</div> |
| 1815 |
<div class="col-sm-8 ays_divider_left"> |
| 1816 |
<input type="checkbox" class="ays_toggle ays_toggle_slide" |
| 1817 |
id="ays-enable-background-gradient" |
| 1818 |
name="ays_enable_background_gradient" |
| 1819 |
<?php echo ($enable_background_gradient) ? 'checked' : ''; ?>/> |
| 1820 |
<label for="ays-enable-background-gradient" class="ays_switch_toggle">Toggle</label> |
| 1821 |
<div class="row ays_toggle_target" style="margin: 10px 0 0 0; padding-top: 10px; <?php echo ($enable_background_gradient) ? '' : 'display:none;' ?>"> |
| 1822 |
<div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;"> |
| 1823 |
<label for='ays-background-gradient-color-1'> |
| 1824 |
<?php echo __('Color 1', "poll-maker"); ?> |
| 1825 |
</label> |
| 1826 |
<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; ?>"/> |
| 1827 |
</div> |
| 1828 |
<div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;"> |
| 1829 |
<label for='ays-background-gradient-color-2'> |
| 1830 |
<?php echo __('Color 2', "poll-maker"); ?> |
| 1831 |
</label> |
| 1832 |
<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; ?>"/> |
| 1833 |
</div> |
| 1834 |
<div class="col-sm-12 ays_divider_top" style="margin-top: 10px; padding-top: 10px;"> |
| 1835 |
<label for="ays_poll_gradient_direction"> |
| 1836 |
<?php echo __('Gradient direction',"poll-maker")?> |
| 1837 |
</label> |
| 1838 |
<select id="ays_poll_gradient_direction" name="ays_poll_gradient_direction" class="ays-text-input"> |
| 1839 |
<option <?php echo ($poll_gradient_direction == 'vertical') ? 'selected' : ''; ?> value="vertical"><?php echo __( 'Vertical', "poll-maker"); ?></option> |
| 1840 |
<option <?php echo ($poll_gradient_direction == 'horizontal') ? 'selected' : ''; ?> value="horizontal"><?php echo __( 'Horizontal', "poll-maker"); ?></option> |
| 1841 |
<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> |
| 1842 |
<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> |
| 1843 |
</select> |
| 1844 |
</div> |
| 1845 |
</div> |
| 1846 |
</div> |
| 1847 |
</div> |
| 1848 |
<hr> |
| 1849 |
<div class="form-group row ays_toggle_parent"> |
| 1850 |
<div class="col-sm-4"> |
| 1851 |
<label for="ays_poll_image_text_logo"> |
| 1852 |
<?= __('Poll Logo', "poll-maker"); ?> |
| 1853 |
<a class="ays_help" data-toggle="tooltip" |
| 1854 |
data-placement="top" |
| 1855 |
title="<?= __("Add logo image for poll. Advisable size for image is 50x50", "poll-maker"); ?>"> |
| 1856 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1857 |
</a> |
| 1858 |
</label> |
| 1859 |
</div> |
| 1860 |
<div class="col-sm-8 ays_logo_container ays_divider_left"> |
| 1861 |
<div class="form-group row"> |
| 1862 |
<div class="col-sm-4"> |
| 1863 |
<a href="javascript:void(0)" class="add-logo-image button"><?= $image_text_logo; ?></a> |
| 1864 |
</div> |
| 1865 |
<div class="col-sm-8 ays_logo_image_remove ays_divider_left" style="<?= $style_logo; ?>"> |
| 1866 |
<div class="ays-poll-logo-image-container"> |
| 1867 |
<div class="col-sm-3" style="padding:0;"> |
| 1868 |
<img src="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>" |
| 1869 |
id="ays-poll-logo-img" class="ays_poll_logo_image_main" width="55" height="55"/> |
| 1870 |
<input type="hidden" name="ays_poll_logo_image" id="ays-poll-logo-image" |
| 1871 |
value="<?= isset($options['logo_image']) ? $options['logo_image'] : ""; ?>"/> |
| 1872 |
</div> |
| 1873 |
<div class="col-sm-9"> |
| 1874 |
<a href="javascript:void(0)" class="add-logo-remove-image button"><?= __("Remove", "poll-maker"); ?></a> |
| 1875 |
</div> |
| 1876 |
</div> |
| 1877 |
</div> |
| 1878 |
</div> |
| 1879 |
<hr class="ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>"> |
| 1880 |
<div class="form-group row ays-poll-toggle-image-url-box <?php echo !$style_logo_check ? "display_none" : "";?>"> |
| 1881 |
<div class="col-sm-4 "> |
| 1882 |
<label for="ays_disable_answer_hover"> |
| 1883 |
<?= __('Logo URL', "poll-maker"); ?> |
| 1884 |
<a class="ays_help" data-toggle="tooltip" |
| 1885 |
data-placement="top" |
| 1886 |
title="<?= __("Add a URL link to the poll's logo image.", "poll-maker"); ?>"> |
| 1887 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1888 |
</a> |
| 1889 |
</label> |
| 1890 |
</div> |
| 1891 |
<div class="col-sm-8 ays_divider_left"> |
| 1892 |
<input type="checkbox" |
| 1893 |
name="ays_poll_logo_enable_image_url" |
| 1894 |
id="ays_poll_logo_enable_image_url" |
| 1895 |
value="on" class="ays_toggle ays_toggle_slide" <?php echo $poll_logo_image_url_check ? "checked" : ""; ?>> |
| 1896 |
<label for="ays_poll_logo_enable_image_url" class="ays_switch_toggle"></label> |
| 1897 |
<hr class="ays_toggle_target" style="<?php echo $poll_logo_image_url_check ? "" : "display:none"; ?>"> |
| 1898 |
<div class="row ays_toggle_target" style="padding:0 15px; <?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>" > |
| 1899 |
<input type="text" |
| 1900 |
name="ays_poll_logo_image_url" |
| 1901 |
id="ays_poll_logo_image_url" |
| 1902 |
value="<?php echo $poll_logo_image_url; ?>" style="width: 100%;" class="ays-text-input" placeholder="URL"> |
| 1903 |
</div> |
| 1904 |
<hr class="ays_toggle_target <?php echo $poll_logo_image_url_check ? "" : "display_none"; ?>"> |
| 1905 |
<div class="row ays_toggle_target ays-poll-logo-open-close" style="<?php echo $poll_logo_image_url_check ? "" : "display: none;"; ?>"> |
| 1906 |
<div class="col-sm-6"> |
| 1907 |
<label for="ays_poll_logo_enable_image_url_new_tab"> |
| 1908 |
<?= __('Open in a new tab', "poll-maker"); ?> |
| 1909 |
<a class="ays_help" data-toggle="tooltip" |
| 1910 |
data-placement="top" |
| 1911 |
title="<?= __("Activate this option, if you want to open the URL in a new tab.", "poll-maker"); ?>"> |
| 1912 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1913 |
</a> |
| 1914 |
</label> |
| 1915 |
</div> |
| 1916 |
<div class="col-sm-6"> |
| 1917 |
<input type="checkbox" |
| 1918 |
name="ays_poll_logo_enable_image_url_new_tab" |
| 1919 |
id="ays_poll_logo_enable_image_url_new_tab" |
| 1920 |
value="on" class="ays_toggle ays_toggle_slide " <?php echo $poll_logo_image_url_check_new_tab; ?>> |
| 1921 |
<label for="ays_poll_logo_enable_image_url_new_tab" class="ays_switch_toggle"></label> |
| 1922 |
</div> |
| 1923 |
</div> |
| 1924 |
</div> |
| 1925 |
</div> |
| 1926 |
<hr class="ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>"> |
| 1927 |
<div class="form-group row ays-poll-toggle-image-title-box <?php echo !$style_logo_check ? "display_none" : "";?>"> |
| 1928 |
<div class="col-sm-4"> |
| 1929 |
<label for="ays_poll_logo_title"> |
| 1930 |
<?= __('Logo title', "poll-maker"); ?> |
| 1931 |
<a class="ays_help" data-toggle="tooltip" |
| 1932 |
data-placement="top" |
| 1933 |
title="<?php echo __("Specify the title of the Logo image.", "poll-maker"); ?>"> |
| 1934 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1935 |
</a> |
| 1936 |
</label> |
| 1937 |
</div> |
| 1938 |
<div class="col-sm-8 ays_divider_left"> |
| 1939 |
<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); ?>"> |
| 1940 |
</div> |
| 1941 |
</div> |
| 1942 |
</div> |
| 1943 |
</div> |
| 1944 |
<!-- Poll logo start --> |
| 1945 |
<hr> |
| 1946 |
<div class="form-group row"> |
| 1947 |
<div class="col-sm-4"> |
| 1948 |
<label for='ays-poll-title-bg-color'> |
| 1949 |
<?= __('Title Background Color', "poll-maker"); ?> |
| 1950 |
<a class="ays_help" |
| 1951 |
data-toggle="tooltip" |
| 1952 |
data-placement="top" |
| 1953 |
title="<?= __("Specify the background color of the title.", "poll-maker"); ?>"> |
| 1954 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1955 |
</a> |
| 1956 |
</label> |
| 1957 |
</div> |
| 1958 |
<div class="col-sm-8 ays_divider_left"> |
| 1959 |
<input type="text" class="ays-text-input" data-alpha="true" |
| 1960 |
id='ays-poll-title-bg-color' |
| 1961 |
name='ays_poll_title_bg_color' |
| 1962 |
value="<?= !empty($options['title_bg_color']) ? $options['title_bg_color'] : 'rgba(255,255,255,0)' ?>"/> |
| 1963 |
</div> |
| 1964 |
</div> |
| 1965 |
<hr> |
| 1966 |
<div class="form-group row"> |
| 1967 |
<div class="col-sm-4"> |
| 1968 |
<label for='ays_poll_title_font_size'> |
| 1969 |
<?= __('Title font size', "poll-maker"); ?> |
| 1970 |
<a class="ays_help" |
| 1971 |
data-toggle="tooltip" |
| 1972 |
data-placement="top" |
| 1973 |
title="<?= __("Specify the font size of the title.", "poll-maker"); ?>"> |
| 1974 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1975 |
</a> |
| 1976 |
</label> |
| 1977 |
</div> |
| 1978 |
<div class="col-sm-8 ays_divider_left"> |
| 1979 |
<div> |
| 1980 |
<div> |
| 1981 |
<label for='ays_poll_title_font_size'> |
| 1982 |
<?php echo __('On desktop', "poll-maker"); ?> |
| 1983 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC devices.', "poll-maker")?>"> |
| 1984 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1985 |
</a> |
| 1986 |
</label> |
| 1987 |
</div> |
| 1988 |
<div> |
| 1989 |
<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 ?>"/> |
| 1990 |
</div> |
| 1991 |
</div> |
| 1992 |
<hr> |
| 1993 |
<div> |
| 1994 |
<div> |
| 1995 |
<label for='ays_poll_title_font_size_mobile'> |
| 1996 |
<?php echo __('On mobile', "poll-maker"); ?> |
| 1997 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>"> |
| 1998 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 1999 |
</a> |
| 2000 |
</label> |
| 2001 |
</div> |
| 2002 |
<div> |
| 2003 |
<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;?>"> |
| 2004 |
</div> |
| 2005 |
</div> |
| 2006 |
</div> |
| 2007 |
</div> |
| 2008 |
<hr> |
| 2009 |
<div class="form-group row"> |
| 2010 |
<div class="col-sm-4"> |
| 2011 |
<label for='ays_poll_title_alignment'> |
| 2012 |
<?= __('Title alignment', "poll-maker"); ?> |
| 2013 |
<a class="ays_help" |
| 2014 |
data-toggle="tooltip" |
| 2015 |
data-placement="top" |
| 2016 |
title="<?= __("Specify the alignment of the title.", "poll-maker"); ?>"> |
| 2017 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2018 |
</a> |
| 2019 |
</label> |
| 2020 |
</div> |
| 2021 |
<div class="col-sm-8 ays_divider_left"> |
| 2022 |
<div> |
| 2023 |
<div> |
| 2024 |
<label for='ays_poll_title_alignment'> |
| 2025 |
<?php echo __('On desktop', "poll-maker"); ?> |
| 2026 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for PC devices.', "poll-maker")?>"> |
| 2027 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2028 |
</a> |
| 2029 |
</label> |
| 2030 |
</div> |
| 2031 |
<div> |
| 2032 |
<select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment" name="ays_poll_title_alignment"> |
| 2033 |
<option value="left" <?php echo ($poll_title_alignment == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option> |
| 2034 |
<option value="center" <?php echo ($poll_title_alignment == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option> |
| 2035 |
<option value="right" <?php echo ($poll_title_alignment == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option> |
| 2036 |
</select> |
| 2037 |
</div> |
| 2038 |
</div> |
| 2039 |
<hr> |
| 2040 |
<div> |
| 2041 |
<div> |
| 2042 |
<label for='ays_poll_title_alignment_mobile'> |
| 2043 |
<?php echo __('On mobile', "poll-maker"); ?> |
| 2044 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the alignment of the title for mobile devices.', "poll-maker")?>"> |
| 2045 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2046 |
</a> |
| 2047 |
</label> |
| 2048 |
</div> |
| 2049 |
<div> |
| 2050 |
<select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_alignment_mobile" name="ays_poll_title_alignment_mobile"> |
| 2051 |
<option value="left" <?php echo ($poll_title_alignment_mobile == "left") ? "selected" : "";?>><?php echo __("Left", "poll-maker"); ?></option> |
| 2052 |
<option value="center" <?php echo ($poll_title_alignment_mobile == "center") ? "selected" : "";?>><?php echo __("Center", "poll-maker"); ?></option> |
| 2053 |
<option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo __("Right", "poll-maker"); ?></option> |
| 2054 |
</select> |
| 2055 |
</div> |
| 2056 |
</div> |
| 2057 |
</div> |
| 2058 |
</div> |
| 2059 |
<hr> |
| 2060 |
<!-- title text shadow start --> |
| 2061 |
<div class="form-group row"> |
| 2062 |
<div class="col-sm-4"> |
| 2063 |
<label for="ays_poll_enable_title_text_shadow"> |
| 2064 |
<?php echo __('Title text shadow', "poll-maker")?> |
| 2065 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Add text shadow for the poll title.', "poll-maker")?>"> |
| 2066 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2067 |
</a> |
| 2068 |
</label> |
| 2069 |
</div> |
| 2070 |
<div class="col-sm-8 ays_divider_left"> |
| 2071 |
<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' : ''; ?>/> |
| 2072 |
<label for="ays_poll_enable_title_text_shadow" class="ays_switch_toggle">Toggle</label> |
| 2073 |
<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;' ?>"> |
| 2074 |
<label for='ays_poll_title_text_shadow_color'> |
| 2075 |
<?php echo __('Color', "poll-maker"); ?> |
| 2076 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify text shadow color.', "poll-maker")?>"> |
| 2077 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2078 |
</a> |
| 2079 |
</label> |
| 2080 |
<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; ?>"/> |
| 2081 |
</div> |
| 2082 |
<!----> |
| 2083 |
<hr class="ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none'; ?>"> |
| 2084 |
<div class="form-group row ays_toggle_target" style="<?= $enable_poll_title_text_shadow ? '' : 'display:none' ?>"> |
| 2085 |
<div class="col-sm-12"> |
| 2086 |
<div class="col-sm-3" style="display: inline-block;"> |
| 2087 |
<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; ?>" /> |
| 2088 |
<span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span> |
| 2089 |
</div> |
| 2090 |
<div class="col-sm-3 ays_divider_left" style="display: inline-block;"> |
| 2091 |
<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; ?>" /> |
| 2092 |
<span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span> |
| 2093 |
</div> |
| 2094 |
<div class="col-sm-3 ays_divider_left" style="display: inline-block;"> |
| 2095 |
<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; ?>" /> |
| 2096 |
<span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span> |
| 2097 |
</div> |
| 2098 |
</div> |
| 2099 |
</div> |
| 2100 |
<!----> |
| 2101 |
</div> |
| 2102 |
</div> |
| 2103 |
<!-- title text shadow end --> |
| 2104 |
<div class="ays_poll_option_only_for_rating_voting_types" style="display: <?php echo ($poll['type'] == 'voting' || $poll['type'] == 'rating') ? 'block' : 'none' ?>"> |
| 2105 |
<hr> |
| 2106 |
<div class="form-group row"> |
| 2107 |
<div class="col-sm-4"> |
| 2108 |
<label for='ays-poll-icon-size'> |
| 2109 |
<?= __('Icon size (px)', "poll-maker"); ?> |
| 2110 |
<a class="ays_help" |
| 2111 |
data-toggle="tooltip" |
| 2112 |
data-placement="top" |
| 2113 |
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"); ?>"> |
| 2114 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2115 |
</a> |
| 2116 |
</label> |
| 2117 |
</div> |
| 2118 |
<div class="col-sm-8 ays_divider_left"> |
| 2119 |
<input type="number" class="ays-text-input ays-text-input-short" |
| 2120 |
id='ays-poll-icon-size' name='ays_poll_icon_size' |
| 2121 |
value="<?= (isset($options['icon_size'])) ? $options['icon_size'] : '24'; ?>"/> |
| 2122 |
</div> |
| 2123 |
</div> |
| 2124 |
</div> |
| 2125 |
<hr> |
| 2126 |
<div class="form-group row"> |
| 2127 |
<div class="col-sm-4"> |
| 2128 |
<label for='ays-poll-width'> |
| 2129 |
<?= __('Width (px)', "poll-maker"); ?> |
| 2130 |
<a class="ays_help" |
| 2131 |
data-toggle="tooltip" |
| 2132 |
data-placement="top" |
| 2133 |
title="<?= __("Specify the width of the poll in pixels. If you put 0, the width will be 100%.", "poll-maker"); ?>"> |
| 2134 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2135 |
</a> |
| 2136 |
</label> |
| 2137 |
</div> |
| 2138 |
<div class="col-sm-8 ays_divider_left"> |
| 2139 |
<div> |
| 2140 |
<div> |
| 2141 |
<label for='ays-poll-width'> |
| 2142 |
<?php echo __('On desktop', "poll-maker"); ?> |
| 2143 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for PC devices.', "poll-maker")?>"> |
| 2144 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2145 |
</a> |
| 2146 |
</label> |
| 2147 |
</div> |
| 2148 |
<div> |
| 2149 |
<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'] ?>"/> |
| 2150 |
</div> |
| 2151 |
</div> |
| 2152 |
<hr> |
| 2153 |
<div> |
| 2154 |
<div> |
| 2155 |
<label for='ays_poll_width_for_mobile'> |
| 2156 |
<?php echo __('On mobile', "poll-maker"); ?> |
| 2157 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the width for mobile devices.', "poll-maker")?>"> |
| 2158 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2159 |
</a> |
| 2160 |
</label> |
| 2161 |
</div> |
| 2162 |
<div> |
| 2163 |
<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 ?>"/> |
| 2164 |
<p class="ays_poll_small_hint_text_for_message_variables"> |
| 2165 |
<span><?php echo __( "For 100% leave blank" , "poll-maker" ); ?></span> |
| 2166 |
</p> |
| 2167 |
</div> |
| 2168 |
</div> |
| 2169 |
</div> |
| 2170 |
</div> |
| 2171 |
<hr/> |
| 2172 |
<div class="form-group row"> |
| 2173 |
<div class="col-sm-4"> |
| 2174 |
<label for='ays_poll_min_height'> |
| 2175 |
<?php echo __('Min-height', "poll-maker"); ?> |
| 2176 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Set the poll minimum height by entering a numeric value.', "poll-maker")?>"> |
| 2177 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2178 |
</a> |
| 2179 |
</label> |
| 2180 |
</div> |
| 2181 |
<div class="col-sm-8 ays_divider_left"> |
| 2182 |
<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; ?>"/> |
| 2183 |
</div> |
| 2184 |
</div> |
| 2185 |
<hr> |
| 2186 |
<div class="form-group row"> |
| 2187 |
<div class="col-sm-4"> |
| 2188 |
<label for='ays_poll_mobile_max_width'> |
| 2189 |
<?php echo __('Poll max-width for mobile', "poll-maker"); ?> |
| 2190 |
<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")?>"> |
| 2191 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2192 |
</a> |
| 2193 |
</label> |
| 2194 |
</div> |
| 2195 |
<div class="col-sm-8 ays_divider_left"> |
| 2196 |
<input type="number" class="ays-text-input ays-text-input-short" id='ays_poll_mobile_max_width' |
| 2197 |
name='ays_poll_mobile_max_width' style="display: inline-block;" |
| 2198 |
value="<?php echo $poll_mobile_max_width; ?>"/> % |
| 2199 |
<span class="ays_poll_small_hint_text"><?php echo __("For 100% leave blank", "poll-maker");?></span> |
| 2200 |
</div> |
| 2201 |
</div> <!-- Poll max-width for mobile --> |
| 2202 |
<hr> |
| 2203 |
</div> |
| 2204 |
</div> |
| 2205 |
<div class="ays-poll-accordion-options-main-container"> |
| 2206 |
<div class="ays-poll-accordion-header"> |
| 2207 |
<?php echo $poll_acordion_svg_html; ?> |
| 2208 |
<p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Question styles', "poll-maker"); ?></p> |
| 2209 |
</div> |
| 2210 |
<hr class="ays-poll-bolder-hr"/> |
| 2211 |
<div class="ays-poll-accordion-body"> |
| 2212 |
<div class="form-group row"> |
| 2213 |
<div class="col-sm-4"> |
| 2214 |
<label for='ays_questions_font_size'> |
| 2215 |
<?php echo __('Question font size', "poll-maker"); ?> (px) |
| 2216 |
<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")?>"> |
| 2217 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2218 |
</a> |
| 2219 |
</label> |
| 2220 |
</div> |
| 2221 |
<div class="col-sm-8 ays_divider_left"> |
| 2222 |
<div> |
| 2223 |
<div> |
| 2224 |
<label for='ays_questions_font_size'> |
| 2225 |
<?php echo __('On desktop', "poll-maker"); ?> |
| 2226 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for PC devices.', "poll-maker")?>"> |
| 2227 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2228 |
</a> |
| 2229 |
</label> |
| 2230 |
</div> |
| 2231 |
<div> |
| 2232 |
<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;?>"> |
| 2233 |
</div> |
| 2234 |
</div> |
| 2235 |
<hr> |
| 2236 |
<div> |
| 2237 |
<div> |
| 2238 |
<label for='ays_poll_answers_font_size_mobile'> |
| 2239 |
<?php echo __('On mobile', "poll-maker"); ?> |
| 2240 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the font size for mobile devices.', "poll-maker")?>"> |
| 2241 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2242 |
</a> |
| 2243 |
</label> |
| 2244 |
</div> |
| 2245 |
<div> |
| 2246 |
<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;?>"> |
| 2247 |
</div> |
| 2248 |
</div> |
| 2249 |
</div> |
| 2250 |
</div><!-- Question font size --> |
| 2251 |
<hr> |
| 2252 |
<div class="form-group row"> |
| 2253 |
<div class="col-sm-4"> |
| 2254 |
<label for='ays_poll_question_image_height'><?= __('Question image height', "poll-maker"); ?> |
| 2255 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 2256 |
title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>"> |
| 2257 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2258 |
</a> |
| 2259 |
</label> |
| 2260 |
</div> |
| 2261 |
<div class="col-sm-8 ays_divider_left"> |
| 2262 |
<input type="number" |
| 2263 |
class="ays-text-input ays-text-input-short" |
| 2264 |
id='ays_poll_question_image_height' name='ays_poll_question_image_height' |
| 2265 |
value="<?php echo $poll_question_image_height; ?>"/> |
| 2266 |
</div> |
| 2267 |
</div><!-- Question image height --> |
| 2268 |
<hr> |
| 2269 |
<div class="form-group row"> |
| 2270 |
<div class="col-sm-4"> |
| 2271 |
<label for='ays_poll_question_image_object_fit'><?= __('Question object fit', "poll-maker"); ?> |
| 2272 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 2273 |
title="<?= __("Specify the height of question image of the Poll.", "poll-maker"); ?>"> |
| 2274 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2275 |
</a> |
| 2276 |
</label> |
| 2277 |
</div> |
| 2278 |
<div class="col-sm-8 ays_divider_left"> |
| 2279 |
<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"> |
| 2280 |
<option value="cover" <?php echo ($poll_question_image_object_fit == "cover") ? "selected" : ""; ?>><?php echo __("Cover", "poll-maker"); ?></option> |
| 2281 |
<option value="fill" <?php echo ($poll_question_image_object_fit == "fill") ? "selected" : ""; ?>><?php echo __("Fill", "poll-maker"); ?></option> |
| 2282 |
<option value="contain" <?php echo ($poll_question_image_object_fit == "contain") ? "selected" : ""; ?>><?php echo __("Contain", "poll-maker"); ?></option> |
| 2283 |
<option value="scale-down" <?php echo ($poll_question_image_object_fit == "scale-down") ? "selected" : ""; ?>><?php echo __("Scale-down", "poll-maker"); ?></option> |
| 2284 |
<option value="none" <?php echo ($poll_question_image_object_fit == "none") ? "selected" : ""; ?>><?php echo __("None", "poll-maker"); ?></option> |
| 2285 |
</select> |
| 2286 |
</div> |
| 2287 |
</div><!-- Question image object fit --> |
| 2288 |
<hr> |
| 2289 |
</div> |
| 2290 |
</div> |
| 2291 |
<div class="ays-poll-accordion-options-main-container"> |
| 2292 |
<div class="ays-poll-accordion-header"> |
| 2293 |
<?php echo $poll_acordion_svg_html; ?> |
| 2294 |
<p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Answer Styles', "poll-maker"); ?></p> |
| 2295 |
</div> |
| 2296 |
<hr class="ays-poll-bolder-hr"/> |
| 2297 |
<div class="ays-poll-accordion-body"> |
| 2298 |
<div class="form-group row"> |
| 2299 |
<div class="col-sm-4"> |
| 2300 |
<label for='ays-poll-box-shadow-color'><?= __('Enable answer styles', "poll-maker"); ?> |
| 2301 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 2302 |
title="<?= __("Highlight the background of the answers' boxes. The option works only with choosing type.", "poll-maker"); ?>"> |
| 2303 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2304 |
</a> |
| 2305 |
</label> |
| 2306 |
</div> |
| 2307 |
<div class="col-sm-8 ays_divider_left"> |
| 2308 |
<input type="checkbox" class="ays_toggle ays_toggle_slide" |
| 2309 |
id="ays_poll_enable_answer_style" |
| 2310 |
name="ays_poll_enable_answer_style" <?= ($options['enable_answer_style'] == 'on') ? 'checked' : ''; ?>> |
| 2311 |
<label for="ays_poll_enable_answer_style" class="ays_switch_toggle">Toggle</label> |
| 2312 |
<div class="ays_toggle_target ays_divider_top ays_answer_style" |
| 2313 |
style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>"> |
| 2314 |
<label for="ays-poll-box-shadow-color"> |
| 2315 |
<?php echo __('Answers Background Color', "poll-maker"); ?> |
| 2316 |
<a class="ays_help" data-toggle="tooltip" |
| 2317 |
title="<?php echo __("Specify the background color of the answers' boxes.", "poll-maker"); ?>"> |
| 2318 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2319 |
</a> |
| 2320 |
</label> |
| 2321 |
<input type="text" class="ays-text-input" data-alpha="true" |
| 2322 |
id='ays-poll-answer-bg-color' |
| 2323 |
name='ays_poll_answer_bg_color' |
| 2324 |
value="<?php echo $answer_bg_color; ?>"/> |
| 2325 |
</div> |
| 2326 |
<div class="ays_toggle_target ays_divider_top ays_answer_style" |
| 2327 |
style="margin-top: 10px; padding-top: 10px; <?php echo ($options['enable_answer_style'] == 'on') ? '' : 'display:none;' ?>"> |
| 2328 |
<label for="ays-poll-answer-hover-color"> |
| 2329 |
<?php echo __('Answer Hover Color', "poll-maker"); ?> |
| 2330 |
<a class="ays_help" data-toggle="tooltip" |
| 2331 |
title="<?php echo __('Specify the hover color of the answers when mouse is over them.', 'poll-maker'); ?>"> |
| 2332 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2333 |
</a> |
| 2334 |
</label> |
| 2335 |
<input type="text" class="ays-text-input" data-alpha="true" |
| 2336 |
id='ays-poll-answer-hover-color' |
| 2337 |
name='ays_poll_answer_hover_color' |
| 2338 |
value="<?php echo $answer_hover_color; ?>"/> |
| 2339 |
</div> |
| 2340 |
<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;' ?>"> |
| 2341 |
<div> |
| 2342 |
<label for='ays-poll-border-side'> |
| 2343 |
<?= __('Border side', "poll-maker"); ?> |
| 2344 |
<a class="ays_help" |
| 2345 |
data-toggle="tooltip" |
| 2346 |
data-placement="top" |
| 2347 |
title="<?= __("Choose your preferred style for the border of the answers' boxes.", "poll-maker"); ?>"> |
| 2348 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2349 |
</a> |
| 2350 |
</label> |
| 2351 |
</div> |
| 2352 |
<div id="ays-poll-border-side-box"> |
| 2353 |
<select name="ays_poll_border_side" id="ays-poll-border-side" |
| 2354 |
class="ays-select ays-select-short ays_poll_aysDropdown"> |
| 2355 |
<option value="all_sides" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "all_sides" ? 'selected' : ''; ?>> |
| 2356 |
<?= __("All sides", "poll-maker"); ?> |
| 2357 |
</option> |
| 2358 |
<option value="none" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "none" ? 'selected' : ''; ?>> |
| 2359 |
<?= __("None", "poll-maker"); ?> |
| 2360 |
</option> |
| 2361 |
<option value="top" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "top" ? 'selected' : ''; ?>> |
| 2362 |
<?= __("Top", "poll-maker"); ?> |
| 2363 |
</option> |
| 2364 |
<option value="bottom" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "bottom" ? 'selected' : ''; ?>> |
| 2365 |
<?= __("Bottom", "poll-maker"); ?> |
| 2366 |
</option> |
| 2367 |
<option value="left" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "left" ? 'selected' : ''; ?>> |
| 2368 |
<?= __("Left", "poll-maker"); ?> |
| 2369 |
</option> |
| 2370 |
<option value="right" <?= isset($options['answer_border_side']) && $options['answer_border_side'] == "right" ? 'selected' : ''; ?>> |
| 2371 |
<?= __("Right", "poll-maker"); ?> |
| 2372 |
</option> |
| 2373 |
</select> |
| 2374 |
</div> |
| 2375 |
</div> |
| 2376 |
<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;' ?>"> |
| 2377 |
<div> |
| 2378 |
<label for='ays_answer_font_size'> |
| 2379 |
<?= __('Answer font size', "poll-maker"); ?> |
| 2380 |
<a class="ays_help" |
| 2381 |
data-toggle="tooltip" |
| 2382 |
data-placement="top" |
| 2383 |
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"); ?>"> |
| 2384 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2385 |
</a> |
| 2386 |
</label> |
| 2387 |
</div> |
| 2388 |
<div class="ays_answer_font_size_box"> |
| 2389 |
<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;?>"> |
| 2390 |
</div> |
| 2391 |
</div> |
| 2392 |
<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;' ?>"> |
| 2393 |
<div> |
| 2394 |
<label for='ays_poll_answer_font_size_mobile'> |
| 2395 |
<?= __('Answer font size for mobile', "poll-maker"); ?> |
| 2396 |
<a class="ays_help" |
| 2397 |
data-toggle="tooltip" |
| 2398 |
data-placement="top" |
| 2399 |
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"); ?>"> |
| 2400 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2401 |
</a> |
| 2402 |
</label> |
| 2403 |
</div> |
| 2404 |
<div class="ays_answer_font_size_box"> |
| 2405 |
<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;?>"> |
| 2406 |
</div> |
| 2407 |
</div> |
| 2408 |
<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;' ?>"> |
| 2409 |
<div> |
| 2410 |
<label for="ays_poll_answer_img_height" class="ays_enable_answer_style"> |
| 2411 |
<?php echo __('Answer image height (px)', "poll-maker")?> |
| 2412 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>"> |
| 2413 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2414 |
</a> |
| 2415 |
</label> |
| 2416 |
</div> |
| 2417 |
<div> |
| 2418 |
<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; ?>" /> |
| 2419 |
</div> |
| 2420 |
</div> <!-- Answers image height --> |
| 2421 |
<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;' ?>"> |
| 2422 |
<div> |
| 2423 |
<label for="ays_poll_answer_image_height_for_mobile" class="ays_enable_answer_style"> |
| 2424 |
<?php echo __('Answer image height for mobile (px)', "poll-maker")?> |
| 2425 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Height of answers images on the mobile devices.', "poll-maker")?>"> |
| 2426 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2427 |
</a> |
| 2428 |
</label> |
| 2429 |
</div> |
| 2430 |
<div> |
| 2431 |
<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; ?>" /> |
| 2432 |
</div> |
| 2433 |
</div> <!-- Answers image height for mobile--> |
| 2434 |
<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;' ?>"> |
| 2435 |
<div> |
| 2436 |
<label for="ays_poll_answer_image_border_radius" class="ays_enable_answer_style"> |
| 2437 |
<?php echo __('Answer image border radius (px)', "poll-maker")?> |
| 2438 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Border radius of answers images.', "poll-maker")?>"> |
| 2439 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2440 |
</a> |
| 2441 |
</label> |
| 2442 |
</div> |
| 2443 |
<div> |
| 2444 |
<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; ?>" /> |
| 2445 |
</div> |
| 2446 |
</div> <!-- Answers image border radius --> |
| 2447 |
<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;' ?>"> |
| 2448 |
<div > |
| 2449 |
<label for="ays_poll_background_size"> |
| 2450 |
<?php echo __('Answer image object fit', "poll-maker"); ?> |
| 2451 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify how an answers’ images should be resized to fit its container.', "poll-maker"); ?>"> |
| 2452 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2453 |
</a> |
| 2454 |
</label> |
| 2455 |
</div> |
| 2456 |
<div id="ays_poll_image_background_size_box"> |
| 2457 |
<select id="ays_poll_image_background_size" name="ays_poll_image_background_size" class="ays-select ays-select-short ays_poll_aysDropdown"> |
| 2458 |
<option value="cover" <?php echo ($poll_answer_object_fit == 'cover') ? 'selected' : ''; ?>> |
| 2459 |
<?php echo __('Cover', "poll-maker")?> |
| 2460 |
</option> |
| 2461 |
<option value="fill" <?php echo ($poll_answer_object_fit == 'fill') ? 'selected' : ''; ?>> |
| 2462 |
<?php echo __('Fill', "poll-maker")?> |
| 2463 |
</option> |
| 2464 |
<option value="contain" <?php echo ($poll_answer_object_fit == 'contain') ? 'selected' : ''; ?>> |
| 2465 |
<?php echo __('Contain', "poll-maker")?> |
| 2466 |
</option> |
| 2467 |
<option value="scale-down" <?php echo ($poll_answer_object_fit == 'scale-down') ? 'selected' : ''; ?>> |
| 2468 |
<?php echo __('Scale-down', "poll-maker")?> |
| 2469 |
</option> |
| 2470 |
<option value="none" <?php echo ($poll_answer_object_fit == 'none') ? 'selected' : ''; ?>> |
| 2471 |
<?php echo __('None', "poll-maker")?> |
| 2472 |
</option> |
| 2473 |
</select> |
| 2474 |
</div> |
| 2475 |
</div> <!-- Answer image object fit --> |
| 2476 |
<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;' ?>"> |
| 2477 |
<div> |
| 2478 |
<label for="ays_poll_answers_padding" class="ays_enable_answer_style"> |
| 2479 |
<?php echo __('Answer padding (px)', "poll-maker")?> |
| 2480 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Padding of answers.', "poll-maker")?>"> |
| 2481 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2482 |
</a> |
| 2483 |
</label> |
| 2484 |
</div> |
| 2485 |
<div> |
| 2486 |
<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; ?>"/> |
| 2487 |
</div> |
| 2488 |
</div> <!-- Answers padding --> |
| 2489 |
<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;' ?>"> |
| 2490 |
<div > |
| 2491 |
<label for="ays_poll_answers_margin" class="ays_enable_answer_style"> |
| 2492 |
<?php echo __('Answer gap (px)', "poll-maker")?> |
| 2493 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Gap between answers.', "poll-maker")?>"> |
| 2494 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2495 |
</a> |
| 2496 |
</label> |
| 2497 |
</div> |
| 2498 |
<div> |
| 2499 |
<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; ?>" /> |
| 2500 |
</div> |
| 2501 |
</div> <!-- Answers gap --> |
| 2502 |
<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;' ?>"> |
| 2503 |
<div> |
| 2504 |
<label for="ays_poll_answer_border_radius"> |
| 2505 |
<?php echo __('Answer border radius', "poll-maker")?> |
| 2506 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the radius of the answers container.', "poll-maker")?>"> |
| 2507 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2508 |
</a> |
| 2509 |
</label> |
| 2510 |
</div> |
| 2511 |
<div> |
| 2512 |
<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; ?>"/> |
| 2513 |
</div> |
| 2514 |
</div> <!-- Answers border radius --> |
| 2515 |
</div> |
| 2516 |
</div> |
| 2517 |
<hr> |
| 2518 |
<div class="form-group row"> |
| 2519 |
<div class="col-sm-4"> |
| 2520 |
<label for="ays_poll_show_answers_icon"> |
| 2521 |
<?php echo __('Answer icon', "poll-maker"); ?> |
| 2522 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose your preferred icon for the answers.', "poll-maker"); ?>"> |
| 2523 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2524 |
</a> |
| 2525 |
</label> |
| 2526 |
</div> |
| 2527 |
<div class="col-sm-8 ays_divider_left"> |
| 2528 |
<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' : ''; ?> /> |
| 2529 |
<label for="ays_poll_show_answers_icon" class="ays_switch_toggle" style="margin-bottom: 15px;">Toggle</label> |
| 2530 |
<div class="col-sm-12 ays_toggle_target ays_divider_top" style="padding-top: 10px; <?php echo ($poll_answer_icon_check) ? '' : 'display: none;'; ?>"> |
| 2531 |
<div class="form-check form-check-inline"> |
| 2532 |
<label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_radio"> |
| 2533 |
<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' : ''; ?> /> |
| 2534 |
</label> |
| 2535 |
</div> |
| 2536 |
<div class="form-check form-check-inline"> |
| 2537 |
<label class="form-check-label ays_poll_answer_icon" for="poll_answer_icon_checkbox"> |
| 2538 |
<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' : ''; ?> /> |
| 2539 |
</label> |
| 2540 |
</div> |
| 2541 |
</div> |
| 2542 |
</div> |
| 2543 |
</div> <!-- Answer icon --> |
| 2544 |
<hr> |
| 2545 |
<div class="form-group row"> |
| 2546 |
<div class="col-sm-4"> |
| 2547 |
<label for="ays_answers_view" class="ays_enable_answer_style"> |
| 2548 |
<?php echo __('Answer view', "poll-maker")?> |
| 2549 |
<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")?>"> |
| 2550 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2551 |
</a> |
| 2552 |
</label> |
| 2553 |
</div> |
| 2554 |
<div class="col-sm-8"> |
| 2555 |
<div class="form-group row"> |
| 2556 |
<div class="col-sm-8 ays_divider_left" style="margin-bottom: 15px;"> |
| 2557 |
<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"> |
| 2558 |
<option value="list" <?php echo ($poll_answer_view_type == 'list') ? 'selected' : ''; ?>> |
| 2559 |
<?php echo __('List', "poll-maker")?> |
| 2560 |
</option> |
| 2561 |
<option value="grid" <?php echo ($poll_answer_view_type == 'grid') ? 'selected' : ''; ?>> |
| 2562 |
<?php echo __('Grid', "poll-maker")?> |
| 2563 |
</option> |
| 2564 |
</select> |
| 2565 |
</div> |
| 2566 |
<div class="col-sm-4 grid_column_count" style="display:<?#php echo $dispaly_prop_grid; ?>"> |
| 2567 |
<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;"> |
| 2568 |
<option value='2' selected> |
| 2569 |
2 |
| 2570 |
</option> |
| 2571 |
<option value='3' class="ays-poll-grid-type-columns"> |
| 2572 |
3 |
| 2573 |
</option> |
| 2574 |
<option value='4' class="ays-poll-grid-type-columns"> |
| 2575 |
4 |
| 2576 |
</option> |
| 2577 |
</select> |
| 2578 |
</div> |
| 2579 |
<div class="col-sm-8 grid_column_count" style="margin-top: 15px; display:flex;align-items:center;gap: 60px;" > |
| 2580 |
<div class="col-sm-8" style="display:flex;align-items:center;"> |
| 2581 |
<label for="ays_answers_grid_column_mobile"> |
| 2582 |
<?php echo __('Mobile Single Column View',"poll-maker")?> |
| 2583 |
</label> |
| 2584 |
<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")?>"> |
| 2585 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2586 |
</a> |
| 2587 |
</div> |
| 2588 |
<div class="col-sm-1 ays_divider_left"> |
| 2589 |
<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'/> |
| 2590 |
<label for="ays_answers_grid_column_mobile" class="ays_switch_toggle">Toggle</label> |
| 2591 |
</div> |
| 2592 |
</div> |
| 2593 |
</div> |
| 2594 |
</div> |
| 2595 |
</div> <!-- Answers view --> |
| 2596 |
<hr> |
| 2597 |
<div class="form-group row"> |
| 2598 |
<div class="col-sm-4"> |
| 2599 |
<label for="ays_poll_answers_box_shadow_enable"> |
| 2600 |
<?php echo __('Answer box shadow', "poll-maker")?> |
| 2601 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Allow answer container box shadow', "poll-maker")?>"> |
| 2602 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2603 |
</a> |
| 2604 |
</label> |
| 2605 |
</div> |
| 2606 |
<div class="col-sm-8 ays_divider_left"> |
| 2607 |
<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" : ""; ?>> |
| 2608 |
<label for="ays_poll_answers_box_shadow_enable" class="ays_switch_toggle">Toggle</label> |
| 2609 |
<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;"; ?>"> |
| 2610 |
<label for="ays_poll_answers_box_shadow_color"> |
| 2611 |
<?php echo __('Answer shadow color', "poll-maker")?> |
| 2612 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('The shadow color of answers container', "poll-maker")?>"> |
| 2613 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2614 |
</a> |
| 2615 |
</label> |
| 2616 |
<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"> |
| 2617 |
</div> |
| 2618 |
<!----> |
| 2619 |
<hr class="ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none'; ?>"> |
| 2620 |
<div class="form-group row ays_toggle_target" style="<?= $poll_answer_enable_box_shadow ? '' : 'display:none' ?>"> |
| 2621 |
<div class="col-sm-12"> |
| 2622 |
<div class="col-sm-3" style="display: inline-block;"> |
| 2623 |
<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; ?>" /> |
| 2624 |
<span class="ays_poll_small_hint_text"><?php echo __('X', "poll-maker"); ?></span> |
| 2625 |
</div> |
| 2626 |
<div class="col-sm-3 ays_divider_left" style="display: inline-block;"> |
| 2627 |
<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; ?>" /> |
| 2628 |
<span class="ays_poll_small_hint_text"><?php echo __('Y', "poll-maker"); ?></span> |
| 2629 |
</div> |
| 2630 |
<div class="col-sm-3 ays_divider_left" style="display: inline-block;"> |
| 2631 |
<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; ?>" /> |
| 2632 |
<span class="ays_poll_small_hint_text"><?php echo __('Z', "poll-maker"); ?></span> |
| 2633 |
</div> |
| 2634 |
</div> |
| 2635 |
</div> |
| 2636 |
<!----> |
| 2637 |
</div> |
| 2638 |
</div> <!-- Answers box shadow --> |
| 2639 |
<hr> |
| 2640 |
<div class="form-group row"> |
| 2641 |
<div class="col-sm-4"> |
| 2642 |
<label for="ays_disable_answer_hover"> |
| 2643 |
<?= __('Disable answers hover', "poll-maker"); ?> |
| 2644 |
<a class="ays_help" data-toggle="tooltip" |
| 2645 |
data-placement="top" |
| 2646 |
title="<?= __("Disable the hover effect for answers.", "poll-maker"); ?>"> |
| 2647 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2648 |
</a> |
| 2649 |
</label> |
| 2650 |
</div> |
| 2651 |
<div class="col-sm-8 ays_divider_left"> |
| 2652 |
<input type="checkbox" |
| 2653 |
name="ays_disable_answer_hover" |
| 2654 |
id="ays_disable_answer_hover" |
| 2655 |
value="on" <?php echo ($options['disable_answer_hover'] == 1) ? 'checked' : ''; ?> |
| 2656 |
> |
| 2657 |
</div> |
| 2658 |
</div> |
| 2659 |
<hr> |
| 2660 |
<!--PRO ANSWER STYLEs--> |
| 2661 |
<div class="form-group row"> |
| 2662 |
<div class="col-sm-12 only_pro"> |
| 2663 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 2664 |
</div> |
| 2665 |
<div class="form-group row" style="padding: 15px 15px 0"> |
| 2666 |
<div class="" style="width: 100%;"> |
| 2667 |
<div class="form-group row"> |
| 2668 |
<div class="col-sm-5"> |
| 2669 |
<label for="ays_answers_border"> |
| 2670 |
<?php echo __('Answer border', "poll-maker")?> |
| 2671 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Allow answer border', "poll-maker")?>"> |
| 2672 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2673 |
</a> |
| 2674 |
</label> |
| 2675 |
</div> |
| 2676 |
<div class="col-sm-7 ays_divider_left"> |
| 2677 |
<input type="checkbox" class="ays_toggle" name="ays_answers_border" value="on" |
| 2678 |
checked/> |
| 2679 |
<label for="ays_answers_border" class="ays_switch_toggle">Toggle</label> |
| 2680 |
<div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;"> |
| 2681 |
<label for="ays_answers_border_width"> |
| 2682 |
<?php echo __('Border width', "poll-maker")?> (px) |
| 2683 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The width of answers border', "poll-maker")?>"> |
| 2684 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2685 |
</a> |
| 2686 |
</label> |
| 2687 |
<input type="number" class="ays-text-input" id='ays_answers_border_width' name='ays_answers_border_width' |
| 2688 |
value="" min="0"/> |
| 2689 |
</div> |
| 2690 |
<div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;"> |
| 2691 |
<label for="ays_answers_border_style"> |
| 2692 |
<?php echo __('Border style', "poll-maker")?> |
| 2693 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The style of answers border', "poll-maker")?>"> |
| 2694 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2695 |
</a> |
| 2696 |
</label> |
| 2697 |
<select id="ays_answers_border_style" name="ays_answers_border_style" class="ays-text-input ays-select-short"> |
| 2698 |
<option>Solid</option> |
| 2699 |
</select> |
| 2700 |
</div> |
| 2701 |
<div class="col-sm-12 ays_toggle_target ays_divider_top" style="margin-top: 10px; padding-top: 10px;"> |
| 2702 |
<label for="ays_answers_border_color"> |
| 2703 |
<?php echo __('Border color', "poll-maker")?> |
| 2704 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('The color of the answers border', "poll-maker")?>"> |
| 2705 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2706 |
</a> |
| 2707 |
</label> |
| 2708 |
<input class="ays-text-input wp-color-picker" id="ays_answers_border_color" type="text" data-alpha="true" data-default-color="#000000" value="#000000"> |
| 2709 |
</div> |
| 2710 |
</div> |
| 2711 |
</div> <!-- Answers border --> |
| 2712 |
<hr/> |
| 2713 |
<div class="form-group row ays_grid_show"> |
| 2714 |
<div class="col-sm-5"> |
| 2715 |
<label for="ays_poll_show_answers_caption"> |
| 2716 |
<?php echo __('Show answers caption', "poll-maker")?> |
| 2717 |
<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"); ?>"> |
| 2718 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2719 |
</a> |
| 2720 |
</label> |
| 2721 |
</div> |
| 2722 |
<div class="col-sm-7 ays_divider_left"> |
| 2723 |
<input type="checkbox" class="ays_toggle ays_toggle_slide" value='on'/> |
| 2724 |
<label for="ays_poll_show_answers_caption" class="ays_switch_toggle">Toggle</label> |
| 2725 |
</div> |
| 2726 |
</div> <!-- Show answers caption --> |
| 2727 |
<hr/> |
| 2728 |
<div class="form-group row"> |
| 2729 |
<div class="col-sm-5"> |
| 2730 |
<label for="ays_ans_img_caption_style"> |
| 2731 |
<?php echo __('Answers image caption style', "poll-maker")?> |
| 2732 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>"> |
| 2733 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2734 |
</a> |
| 2735 |
</label> |
| 2736 |
</div> |
| 2737 |
<div class="col-sm-7 ays_divider_left"> |
| 2738 |
<select class="ays-text-input ays-text-input-short"> |
| 2739 |
<option><?php echo __('Outside', "poll-maker"); ?></option> |
| 2740 |
</select> |
| 2741 |
</div> |
| 2742 |
</div> <!-- Answers image caption style --> |
| 2743 |
<hr/> |
| 2744 |
<div class="form-group row"> |
| 2745 |
<div class="col-sm-5"> |
| 2746 |
<label for="ays_ans_img_caption_position"> |
| 2747 |
<?php echo __('Answers image caption position', "poll-maker")?> |
| 2748 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Height of answers images.', "poll-maker")?>"> |
| 2749 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2750 |
</a> |
| 2751 |
</label> |
| 2752 |
</div> |
| 2753 |
<div class="col-sm-7 ays_divider_left"> |
| 2754 |
<select class="ays-text-input ays-text-input-short"> |
| 2755 |
<option value="top"><?php echo __('Top', "poll-maker"); ?></option> |
| 2756 |
</select> |
| 2757 |
</div> |
| 2758 |
</div> <!-- Answers image caption position --> |
| 2759 |
<hr> |
| 2760 |
</div> |
| 2761 |
</div> |
| 2762 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 2763 |
<div class="ays-poll-new-upgrade-button-box"> |
| 2764 |
<div> |
| 2765 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 2766 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 2767 |
</div> |
| 2768 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 2769 |
</div> |
| 2770 |
</a> |
| 2771 |
<div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex"> |
| 2772 |
<div class="ays-poll-center-big-main-button-box"> |
| 2773 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 2774 |
<div class="ays-poll-center-new-big-upgrade-button"> |
| 2775 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide"> |
| 2776 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 2777 |
<?php echo __("Upgrade", "poll-maker"); ?> |
| 2778 |
</div> |
| 2779 |
</a> |
| 2780 |
</div> |
| 2781 |
</div> |
| 2782 |
</div> |
| 2783 |
</div> |
| 2784 |
<hr/> |
| 2785 |
</div> |
| 2786 |
</div> |
| 2787 |
<div class="ays-poll-accordion-options-main-container"> |
| 2788 |
<div class="ays-poll-accordion-header"> |
| 2789 |
<?php echo $poll_acordion_svg_html; ?> |
| 2790 |
<p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Border styles', "poll-maker"); ?></p> |
| 2791 |
</div> |
| 2792 |
<hr class="ays-poll-bolder-hr"/> |
| 2793 |
<div class="ays-poll-accordion-body"> |
| 2794 |
<div class="form-group row"> |
| 2795 |
<div class="col-sm-4"> |
| 2796 |
<label for='ays-poll-border-style'> |
| 2797 |
<?= __('Border style', "poll-maker"); ?> |
| 2798 |
<a class="ays_help" |
| 2799 |
data-toggle="tooltip" |
| 2800 |
data-placement="top" |
| 2801 |
title="<?= __("Choose your preferred style of the border.", "poll-maker"); ?>"> |
| 2802 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2803 |
</a> |
| 2804 |
</label> |
| 2805 |
</div> |
| 2806 |
<div class="col-sm-8 ays_divider_left"> |
| 2807 |
<select name="ays_poll_border_style" id="ays-poll-border-style" |
| 2808 |
class="ays-select ays-select-short ays_poll_aysDropdown"> |
| 2809 |
<option value="solid" <?= $options['border_style'] == "solid" ? 'selected' : ''; ?>> |
| 2810 |
<?= __("Solid", "poll-maker"); ?> |
| 2811 |
</option> |
| 2812 |
<option value="dashed" <?= $options['border_style'] == "dashed" ? 'selected' : ''; ?>> |
| 2813 |
<?= __("Dashed", "poll-maker"); ?> |
| 2814 |
</option> |
| 2815 |
<option value="dotted" <?= $options['border_style'] == "dotted" ? 'selected' : ''; ?>> |
| 2816 |
<?= __("Dotted", "poll-maker"); ?> |
| 2817 |
</option> |
| 2818 |
<option value="double" <?= $options['border_style'] == "double" ? 'selected' : ''; ?>> |
| 2819 |
<?= __("Double", "poll-maker"); ?> |
| 2820 |
</option> |
| 2821 |
<option value="groove" <?= $options['border_style'] == "groove" ? 'selected' : ''; ?>> |
| 2822 |
<?= __("Groove", "poll-maker"); ?> |
| 2823 |
</option> |
| 2824 |
<option value="ridge" <?= $options['border_style'] == "ridge" ? 'selected' : ''; ?>> |
| 2825 |
<?= __("Ridge", "poll-maker"); ?> |
| 2826 |
</option> |
| 2827 |
<option value="inset" <?= $options['border_style'] == "inset" ? 'selected' : ''; ?>> |
| 2828 |
<?= __("Inset", "poll-maker"); ?> |
| 2829 |
</option> |
| 2830 |
<option value="outset" <?= $options['border_style'] == "outset" ? 'selected' : ''; ?>> |
| 2831 |
<?= __("Outset", "poll-maker"); ?> |
| 2832 |
</option> |
| 2833 |
<option value="none" <?= $options['border_style'] == "none" ? 'selected' : ''; ?>> |
| 2834 |
<?= __("None", "poll-maker"); ?> |
| 2835 |
</option> |
| 2836 |
</select> |
| 2837 |
</div> |
| 2838 |
</div> |
| 2839 |
<hr> |
| 2840 |
<div class="form-group row"> |
| 2841 |
<div class="col-sm-4"> |
| 2842 |
<label for='ays-poll-border-radius'><?= __('Border radius', "poll-maker"); ?> |
| 2843 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 2844 |
title="<?= __("Define the radius of the corners of the poll container. Allows adding rounded corners to it.", "poll-maker"); ?>"> |
| 2845 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2846 |
</a> |
| 2847 |
</label> |
| 2848 |
</div> |
| 2849 |
<div class="col-sm-8 ays_divider_left"> |
| 2850 |
<input type="number" min="0" |
| 2851 |
class="ays-text-input ays-text-input-short" |
| 2852 |
id='ays-poll-border-radius' name='ays_poll_border_radius' |
| 2853 |
value="<?= (isset($options['border_radius']) && $options['border_radius']) ? $options['border_radius'] : '0'; ?>"/> |
| 2854 |
</div> |
| 2855 |
</div> |
| 2856 |
<hr> |
| 2857 |
<div class="form-group row"> |
| 2858 |
<div class="col-sm-4"> |
| 2859 |
<label for='ays-poll-border-width'><?= __('Border width', "poll-maker"); ?> |
| 2860 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 2861 |
title="<?= __("Specify the width of the border. For the Coffee Fluid theme, border-width will always be 1px.", "poll-maker"); ?>"> |
| 2862 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2863 |
</a> |
| 2864 |
</label> |
| 2865 |
</div> |
| 2866 |
<div class="col-sm-8 ays_divider_left"> |
| 2867 |
<input type="number" min="0" |
| 2868 |
class="ays-text-input ays-text-input-short" |
| 2869 |
id='ays-poll-border-width' name='ays_poll_border_width' |
| 2870 |
value="<?= isset($options['border_width']) && $options['border_width'] != '' ? $options['border_width'] : 2; ?>"/> |
| 2871 |
</div> |
| 2872 |
</div> |
| 2873 |
<hr> |
| 2874 |
<div class="form-group row"> |
| 2875 |
<div class="col-sm-4"> |
| 2876 |
<label for='ays-poll-border-color'><?= __('Border color', "poll-maker"); ?> |
| 2877 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 2878 |
title="<?= __("Specify the color of the border.", "poll-maker"); ?>"> |
| 2879 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2880 |
</a> |
| 2881 |
</label> |
| 2882 |
</div> |
| 2883 |
<div class="col-sm-8 ays_divider_left"> |
| 2884 |
<input type="text" |
| 2885 |
class="ays-text-input" |
| 2886 |
data-alpha="true" |
| 2887 |
id='ays-poll-border-color' |
| 2888 |
name='ays_poll_border_color' |
| 2889 |
value="<?= $default_border ?>"/> |
| 2890 |
</div> |
| 2891 |
</div> |
| 2892 |
<hr> |
| 2893 |
<!-- Buttons Styles Start --> |
| 2894 |
</div> |
| 2895 |
</div> |
| 2896 |
<div class="ays-poll-accordion-options-main-container"> |
| 2897 |
<div class="ays-poll-accordion-header"> |
| 2898 |
<?php echo $poll_acordion_svg_html; ?> |
| 2899 |
<p class="ays-subtitle ays-poll-subtitle-button"><?php echo __('Button Styles', "poll-maker"); ?></p> |
| 2900 |
</div> |
| 2901 |
<hr class="ays-poll-bolder-hr"/> |
| 2902 |
<div class="ays-poll-accordion-body"> |
| 2903 |
<div class="form-group row"> |
| 2904 |
<div class="col-sm-4"> |
| 2905 |
<label for="ays_poll_buttons_size"> |
| 2906 |
<?php echo __('Buttons Size', "poll-maker"); ?> |
| 2907 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Select the size of the button(s) inside the poll.', "poll-maker"); ?>"> |
| 2908 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2909 |
</a> |
| 2910 |
</label> |
| 2911 |
</div> |
| 2912 |
<div class="col-sm-8 ays_divider_left"> |
| 2913 |
<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"> |
| 2914 |
<option value="small" <?php echo ($poll_button_selected == 'small') ? 'selected' : ''; ?>><?php echo __('Small', "poll-maker"); ?></option> |
| 2915 |
<option value="medium" <?php echo ($poll_button_selected == 'medium') || $poll_button_selected == '' ? 'selected' : ''; ?>><?php echo __('Medium', "poll-maker"); ?></option> |
| 2916 |
<option value="large" <?php echo ($poll_button_selected) && $poll_button_selected == 'large' ? 'selected' : ''; ?>><?php echo __('Large', "poll-maker"); ?></option> |
| 2917 |
</select> |
| 2918 |
</div> |
| 2919 |
</div> <!-- Buttons Size --> |
| 2920 |
<hr> |
| 2921 |
<div class="form-group row"> |
| 2922 |
<div class="col-sm-4"> |
| 2923 |
<label for='ays-poll-button-text-color'> |
| 2924 |
<?= __('Buttons Text Color', "poll-maker"); ?> |
| 2925 |
<a class="ays_help" |
| 2926 |
data-toggle="tooltip" |
| 2927 |
data-placement="top" |
| 2928 |
title="<?= __("Specify the color of the text written inside the poll button.", "poll-maker"); ?>"> |
| 2929 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2930 |
</a> |
| 2931 |
</label> |
| 2932 |
</div> |
| 2933 |
<div class="col-sm-8 ays_divider_left"> |
| 2934 |
<input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-text-color' |
| 2935 |
name='ays_poll_button_text_color' |
| 2936 |
value="<?php echo $poll_button_text_color; ?>"/> |
| 2937 |
</div> |
| 2938 |
</div><!-- Buttons text color --> |
| 2939 |
<hr> |
| 2940 |
<div class="form-group row"> |
| 2941 |
<div class="col-sm-4"> |
| 2942 |
<label for='ays-poll-button-bg-color'> |
| 2943 |
<?= __('Buttons Background Color', "poll-maker"); ?> |
| 2944 |
<a class="ays_help" |
| 2945 |
data-toggle="tooltip" |
| 2946 |
data-placement="top" |
| 2947 |
title="<?= __("Specify the background color of the poll button.", "poll-maker"); ?>"> |
| 2948 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2949 |
</a> |
| 2950 |
</label> |
| 2951 |
</div> |
| 2952 |
<div class="col-sm-8 ays_divider_left"> |
| 2953 |
<input type="text" class="ays-text-input" data-alpha="true" id='ays-poll-button-bg-color' |
| 2954 |
name='ays_poll_button_bg_color' |
| 2955 |
value="<?php echo $poll_button_bg_color; ?>"/> |
| 2956 |
</div> |
| 2957 |
</div><!-- Buttons background color --> |
| 2958 |
<hr> |
| 2959 |
<div class="form-group row"> |
| 2960 |
<div class="col-sm-4"> |
| 2961 |
<label for='ays_poll_buttons_font_size'> |
| 2962 |
<?php echo __('Buttons font size', "poll-maker"); ?> (px) |
| 2963 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Define the size of the button(s) inside the poll in pixels.', "poll-maker"); ?>"> |
| 2964 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2965 |
</a> |
| 2966 |
</label> |
| 2967 |
</div> |
| 2968 |
<div class="col-sm-8 ays_divider_left"> |
| 2969 |
<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; ?>"/> |
| 2970 |
</div> |
| 2971 |
</div> <!-- Buttons font size --> |
| 2972 |
<hr> |
| 2973 |
<div class="form-group row"> |
| 2974 |
<div class="col-sm-4"> |
| 2975 |
<label for='ays_poll_buttons_mobile_font_size'> |
| 2976 |
<?php echo __('Buttons mobile font size', "poll-maker"); ?> (px) |
| 2977 |
<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"); ?>"> |
| 2978 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2979 |
</a> |
| 2980 |
</label> |
| 2981 |
</div> |
| 2982 |
<div class="col-sm-8 ays_divider_left"> |
| 2983 |
<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; ?>"/> |
| 2984 |
</div> |
| 2985 |
</div> <!-- Buttons font size --> |
| 2986 |
<hr> |
| 2987 |
<div class="form-group row"> |
| 2988 |
<div class="col-sm-4"> |
| 2989 |
<label for="ays_poll_buttons_left_right_padding"> |
| 2990 |
<?php echo __('Buttons padding (px)', "poll-maker"); ?> |
| 2991 |
<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"); ?>"> |
| 2992 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 2993 |
</a> |
| 2994 |
</label> |
| 2995 |
</div> |
| 2996 |
<div class="col-sm-8 ays_divider_left"> |
| 2997 |
<div class="col-sm-5 ays_divider_right" style="display: inline-block; padding-left: 0; margin-right: 15px;"> |
| 2998 |
<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;" /> |
| 2999 |
<span class="ays_poll_small_hint_text"><?php echo __('Left / Right', "poll-maker"); ?></span> |
| 3000 |
</div> |
| 3001 |
<div class="col-sm-5" style="display: inline-block;padding-left: 0;"> |
| 3002 |
<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;" /> |
| 3003 |
<span class="ays_poll_small_hint_text"><?php echo __('Top / Bottom', "poll-maker"); ?></span> |
| 3004 |
</div> |
| 3005 |
</div> |
| 3006 |
</div> <!-- Buttons padding --> |
| 3007 |
<hr> |
| 3008 |
<div class="form-group row"> |
| 3009 |
<div class="col-sm-4"> |
| 3010 |
<label for="ays_poll_buttons_border_radius"> |
| 3011 |
<?php echo __('Buttons border radius', "poll-maker"); ?> (px) |
| 3012 |
<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"); ?>"> |
| 3013 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3014 |
</a> |
| 3015 |
</label> |
| 3016 |
</div> |
| 3017 |
<div class="col-sm-8 ays_divider_left"> |
| 3018 |
<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; ?>"/> |
| 3019 |
</div> |
| 3020 |
</div> |
| 3021 |
<hr> |
| 3022 |
<div class="form-group row"> |
| 3023 |
<div class="col-sm-4"> |
| 3024 |
<label for='ays_poll_buttons_width'> |
| 3025 |
<?php echo __('Buttons width', "poll-maker"); ?> (px) |
| 3026 |
<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"); ?>"> |
| 3027 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3028 |
</a> |
| 3029 |
</label> |
| 3030 |
</div> |
| 3031 |
<div class="col-sm-8 ays_divider_left"> |
| 3032 |
<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; ?>"/> |
| 3033 |
<span style="display:block;" class="ays_poll_small_hint_text"><?php echo __('For an initial width, leave the field blank.', "poll-maker"); ?></span> |
| 3034 |
</div><!-- Buttons width --> |
| 3035 |
</div> <!-- Buttons Styles End --> |
| 3036 |
<hr/> |
| 3037 |
<div class="form-group row"> |
| 3038 |
<div class="col-sm-4"> |
| 3039 |
<label for="ays_poll_custom_class"> |
| 3040 |
<?php echo __('Custom class for poll container', "poll-maker")?> |
| 3041 |
<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")?>"> |
| 3042 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3043 |
</a> |
| 3044 |
</label> |
| 3045 |
</div> |
| 3046 |
<div class="col-sm-8 ays_divider_left"> |
| 3047 |
<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; ?>"> |
| 3048 |
</div> |
| 3049 |
</div> |
| 3050 |
</div> |
| 3051 |
</div> |
| 3052 |
</div> |
| 3053 |
<div class="col-lg-6 col-sm-12 ays_divider_left" style="position: relative;"> |
| 3054 |
<!-- <style id='apm-custom-css'> |
| 3055 |
<?=$poll['custom_css']?> |
| 3056 |
</style> --> |
| 3057 |
<?php |
| 3058 |
|
| 3059 |
$content = " |
| 3060 |
<div class='box-apm-scroll ays-poll-style-tab-live-container'> |
| 3061 |
<div class='box-apm {$poll['type']}-poll ".$poll_logo_for_live_container."' id=''> |
| 3062 |
<div class='apm-title-box'> |
| 3063 |
<h5>{$poll['title']}</h5> |
| 3064 |
</div>"; |
| 3065 |
|
| 3066 |
$content .= "<div class='ays_question'>" . stripslashes($poll['question']) . "</div> |
| 3067 |
<div class='apm-img-box'>"; |
| 3068 |
$content .= !empty($poll['image']) ? "<img class='ays-poll-img' src='{$poll['image']}'>" : ""; |
| 3069 |
$checking_answer_hover = ($options['disable_answer_hover'] == 1) ? 'disable_hover' : 'ays_enable_hover'; |
| 3070 |
$content .= "</div> |
| 3071 |
<div class='apm-answers ays_poll_list_view_container'>"; |
| 3072 |
$minimalTheme = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme' : '' ; |
| 3073 |
$minimalThemeBtn = ($poll['theme_id'] == 3) ? 'ays_poll_minimal_theme_btn' : '' ; |
| 3074 |
if ($poll_answer_icon_check && $poll['theme_id'] != 3) { |
| 3075 |
switch ($poll_answer_icon) { |
| 3076 |
case 'radio': |
| 3077 |
$answer_icon_class = 'ays_poll_answer_icon_radio'; |
| 3078 |
break; |
| 3079 |
case 'checkbox': |
| 3080 |
$answer_icon_class = 'ays_poll_answer_icon_checkbox'; |
| 3081 |
break; |
| 3082 |
default: |
| 3083 |
$answer_icon_class = ''; |
| 3084 |
break; |
| 3085 |
} |
| 3086 |
}else{ |
| 3087 |
$answer_icon_class = ''; |
| 3088 |
} |
| 3089 |
switch ( $poll['type'] ) { |
| 3090 |
case 'choosing': |
| 3091 |
if(empty($poll['answers'])){ |
| 3092 |
for ($i = 0 ; $i < $answer_default_count ; $i++){ |
| 3093 |
$content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$i." data-lid=".$i."> |
| 3094 |
<input type='radio' name='answer' id='radio-".$i."-' value='".$i."'> |
| 3095 |
<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> |
| 3096 |
|
| 3097 |
</div>"; |
| 3098 |
} |
| 3099 |
} |
| 3100 |
else{ |
| 3101 |
foreach ( $poll['answers'] as $index => $answer ) { |
| 3102 |
$answer_image = isset($answer['answer_img']) && $answer['answer_img'] != "" ? "<div><img src=".esc_attr($answer['answer_img'])." class='ays-poll-answer-image-live'></div>" : ""; |
| 3103 |
$poll_class_for_answer_label = ""; |
| 3104 |
$poll_class_for_answer_label_text = ""; |
| 3105 |
if($answer_image != ""){ |
| 3106 |
$poll_class_for_answer_label = "ays_poll_label_without_padding"; |
| 3107 |
$poll_class_for_answer_label_text = "ays_poll_label_text_with_padding"; |
| 3108 |
} |
| 3109 |
$content .= "<div class='apm-choosing answer- ".$minimalTheme." ays-poll-field ays_poll_list_view_item' data-id=".$index." data-lid=".$index."> |
| 3110 |
<input type='radio' name='answer' id='radio-".$index."-' value='{$answer['id']}'> |
| 3111 |
<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> |
| 3112 |
</div>"; |
| 3113 |
} |
| 3114 |
} |
| 3115 |
break; |
| 3116 |
case 'voting': |
| 3117 |
$poll_view_type_voting = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "hand"; |
| 3118 |
switch ( $poll_view_type_voting ) { |
| 3119 |
case 'hand': |
| 3120 |
foreach ( $poll['answers'] as $index => $answer ) { |
| 3121 |
$content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'> |
| 3122 |
<label for='radio-$index-'>"; |
| 3123 |
$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>"; |
| 3124 |
} |
| 3125 |
break; |
| 3126 |
case 'emoji': |
| 3127 |
foreach ( $poll['answers'] as $index => $answer ) { |
| 3128 |
$content .= "<div class='apm-voting answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'> |
| 3129 |
<label for='radio-$index-'>"; |
| 3130 |
$content .= ((int) $answer['answer'] > 0 ? $emoji[1] : $emoji[3]) . "</label></div>"; |
| 3131 |
} |
| 3132 |
break; |
| 3133 |
default: |
| 3134 |
break; |
| 3135 |
} |
| 3136 |
break; |
| 3137 |
case 'rating': |
| 3138 |
$poll_view_type_rating = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "star"; |
| 3139 |
switch ( $poll_view_type_rating ) { |
| 3140 |
case 'star': |
| 3141 |
foreach ( $poll['answers'] as $index => $answer ) { |
| 3142 |
$content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'> |
| 3143 |
<label for='radio-$index-'><i class='ays_poll_far ays_poll_fa-star'></i></label></div>"; |
| 3144 |
} |
| 3145 |
break; |
| 3146 |
case 'emoji': |
| 3147 |
foreach ( $poll['answers'] as $index => $answer ) { |
| 3148 |
$content .= "<div class='apm-rating answer-'><input type='radio' name='answer' id='radio-$index-' value='{$answer['id']}'> |
| 3149 |
<label class='emoji' for='radio-$index-'>" . $emoji[(count($poll['answers']) / 2 - $index + 1.5)] . " </label></div>"; |
| 3150 |
} |
| 3151 |
break; |
| 3152 |
default: |
| 3153 |
break; |
| 3154 |
} |
| 3155 |
break; |
| 3156 |
case 'text': |
| 3157 |
$poll_view_type_text = isset($poll['view_type']) && $poll['view_type'] != "" ? $poll['view_type'] : "short_text"; |
| 3158 |
switch ( $poll_view_type_text ) { |
| 3159 |
case 'short_text': |
| 3160 |
$content .= "<div class='ays-poll-maker-text-live-preview'> |
| 3161 |
<input type='text' id='ays_poll_text_type_short_live' readonly class='ays-poll-text-type-fields'> |
| 3162 |
<label for='ays_poll_text_type_short_live'></label> |
| 3163 |
</div>"; |
| 3164 |
break; |
| 3165 |
case 'paragraph': |
| 3166 |
$content .= "<div class='ays-poll-maker-text-live-preview'> |
| 3167 |
<textarea id='ays_poll_text_type_paragraph_live' readonly class='ays-poll-text-type-fields'></textarea> |
| 3168 |
<label for='ays_poll_text_type_paragraph_live'></label> |
| 3169 |
</div>"; |
| 3170 |
break; |
| 3171 |
default: |
| 3172 |
break; |
| 3173 |
} |
| 3174 |
break; |
| 3175 |
default: |
| 3176 |
break; |
| 3177 |
} |
| 3178 |
$content .= "</div> |
| 3179 |
<div class='apm-button-box' " . (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0 ? "style='display:none'" : "") . "> |
| 3180 |
<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') . '"> |
| 3181 |
</div>'; |
| 3182 |
$content .= "<div class='".$poll_logo_img." ays_live_logo_container'>"; |
| 3183 |
if($poll_check_logo){ |
| 3184 |
$content .= "<img src=".$poll_logo_image." width='55' height='55' class='ays_poll_logo_image_main'>"; |
| 3185 |
} |
| 3186 |
$content .= "</div>"; |
| 3187 |
|
| 3188 |
$content .='</div> |
| 3189 |
</div>'; |
| 3190 |
print $content; |
| 3191 |
?> |
| 3192 |
</div> |
| 3193 |
</div> |
| 3194 |
<hr/> |
| 3195 |
<div class="form-group row"> |
| 3196 |
<div class="col-sm-2"> |
| 3197 |
<label for="ays_custom_css"> |
| 3198 |
<?= __("Custom CSS", "poll-maker"); ?> |
| 3199 |
</label> |
| 3200 |
<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"); ?>"> |
| 3201 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3202 |
</a> |
| 3203 |
<br> |
| 3204 |
</div> |
| 3205 |
<div class="col-sm-10 ays_divider_left"> |
| 3206 |
<textarea class="ays-textarea" id="ays_custom_css" name="ays_custom_css" cols="30" rows="10"><?= (isset($poll['custom_css'])) ? $poll['custom_css'] : ''; ?></textarea> |
| 3207 |
</div> |
| 3208 |
</div> |
| 3209 |
<hr/> |
| 3210 |
<div class="form-group row"> |
| 3211 |
<div class="col-sm-2"> |
| 3212 |
<label for="ays_poll_reset_to_default"> |
| 3213 |
<?php echo __('Reset styles', "poll-maker") ?> |
| 3214 |
<a class="ays_help" data-toggle="tooltip" |
| 3215 |
title="<?php echo __('Reset styles to default values', "poll-maker") ?>"> |
| 3216 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3217 |
</a> |
| 3218 |
</label> |
| 3219 |
</div> |
| 3220 |
<div class="col-sm-10 ays_divider_left"> |
| 3221 |
<button type="button" id="ays_poll_reset_to_default" class="ays-button button-secondary" |
| 3222 |
id="ays_poll_reset_to_default"><?= __("Reset", "poll-maker") ?> |
| 3223 |
</button> |
| 3224 |
</div> |
| 3225 |
</div> |
| 3226 |
</div> |
| 3227 |
<hr> |
| 3228 |
</div> |
| 3229 |
<div id="tab3" class="ays-poll-tab-content <?= $active_tab == 'Settings' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 3230 |
<div class="ays-poll-accordion-options-main-container"> |
| 3231 |
<div class="ays-poll-accordion-header"> |
| 3232 |
<?php echo $poll_acordion_svg_html; ?> |
| 3233 |
<p class="ays-subtitle"><?= __('Feature options', "poll-maker"); ?> </p> |
| 3234 |
</div> |
| 3235 |
<hr class="ays-poll-bolder-hr"/> |
| 3236 |
<div class="ays-poll-accordion-body"> |
| 3237 |
<div class="form-group row"> |
| 3238 |
<div class="col-sm-3"> |
| 3239 |
<label> |
| 3240 |
<?= __('Status', "poll-maker"); ?> |
| 3241 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 3242 |
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") ?>"> |
| 3243 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3244 |
</a> |
| 3245 |
</label> |
| 3246 |
</div> |
| 3247 |
<div class="col-sm-9"> |
| 3248 |
<div class="d-flex"> |
| 3249 |
<div class="form-check form-check-inline"> |
| 3250 |
<input type="radio" id="ays-publish" name="ays_publish" |
| 3251 |
value="1" <?= ($published == 1) ? 'checked' : ''; ?> /> |
| 3252 |
<label class="form-check-label" |
| 3253 |
for="ays-publish"> <?= __('Published', "poll-maker"); ?> </label> |
| 3254 |
</div> |
| 3255 |
<div class="form-check form-check-inline"> |
| 3256 |
<input type="radio" id="ays-unpublish" name="ays_publish" |
| 3257 |
value="0" <?= ($published == 0) ? 'checked' : ''; ?> /> |
| 3258 |
<label class="form-check-label" |
| 3259 |
for="ays-unpublish"> <?= __('Unpublished', "poll-maker"); ?> </label> |
| 3260 |
</div> |
| 3261 |
</div> |
| 3262 |
</div> |
| 3263 |
</div> |
| 3264 |
<hr> |
| 3265 |
<div class='form-group row'> |
| 3266 |
<div class="col-sm-3"> |
| 3267 |
<label for='ays-poll-category'> |
| 3268 |
<?= __('Categories', "poll-maker"); ?> |
| 3269 |
<a class="ays_help" data-toggle="tooltip" |
| 3270 |
data-placement="top" |
| 3271 |
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"); ?>"> |
| 3272 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3273 |
</a> |
| 3274 |
</label> |
| 3275 |
</div> |
| 3276 |
<div class="col-sm-9"> |
| 3277 |
<?php if (!empty($categories)): ?> |
| 3278 |
<select id="ays-poll-category" class="apm-cat-select2" name="ays-poll-categories[]" multiple |
| 3279 |
data-placeholder='<?= __("Select category", "poll-maker") ?>'> |
| 3280 |
<?php |
| 3281 |
foreach ( $categories as $cat ) { |
| 3282 |
?> |
| 3283 |
<option value="<?= $cat['id']; ?>" <?= in_array($cat['id'], $poll['categories']) ? 'selected' : ''; ?>> |
| 3284 |
<?= $cat['title']; ?> |
| 3285 |
</option> |
| 3286 |
<?php } |
| 3287 |
?> |
| 3288 |
</select> |
| 3289 |
<?php else: ?> |
| 3290 |
<a href="?page=poll-maker-ays-cats&action=add"><?= __("Create category", "poll-maker") ?></a> |
| 3291 |
<?php endif; ?> |
| 3292 |
</div> |
| 3293 |
</div> |
| 3294 |
<hr> |
| 3295 |
<?php if(!isset($post_id) || (isset($post_id) && $post_id == '') ): ?> |
| 3296 |
<div class="form-group row ays_toggle_parent"> |
| 3297 |
<div class="col-sm-3"> |
| 3298 |
<label for="ays_add_post_for_poll"> |
| 3299 |
<?php echo __('Create post for poll', "poll-maker")?> |
| 3300 |
<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")?>"> |
| 3301 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3302 |
</a> |
| 3303 |
</label> |
| 3304 |
</div> |
| 3305 |
<div class="col-sm-1"> |
| 3306 |
<input type="checkbox" id="ays_add_post_for_poll" name="ays_add_post_for_poll" value="on" class="ays_toggle_checkbox"/> |
| 3307 |
</div> |
| 3308 |
<div class="col-sm-8 ays_toggle_target ays_divider_left" style="display:none"> |
| 3309 |
<div class="form-group row"> |
| 3310 |
<div class="col-sm-4"> |
| 3311 |
<label for="ays_add_postcat_for_poll"> |
| 3312 |
<?php echo __('Choose Post Categories', "poll-maker")?> |
| 3313 |
<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")?>"> |
| 3314 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3315 |
</a> |
| 3316 |
</label> |
| 3317 |
</div> |
| 3318 |
<div class="col-sm-8"> |
| 3319 |
<div class="input-group"> |
| 3320 |
<select name="ays_add_postcat_for_poll[]" |
| 3321 |
id="ays_add_postcat_for_poll" |
| 3322 |
class="apm-cat-select2" |
| 3323 |
multiple> |
| 3324 |
<?php |
| 3325 |
|
| 3326 |
foreach ($cat_list as $cat) { |
| 3327 |
echo "<option value='" . $cat->cat_ID . "' >" . htmlentities($cat->name) . "</option>"; |
| 3328 |
} |
| 3329 |
?> |
| 3330 |
</select> |
| 3331 |
</div> |
| 3332 |
</div> |
| 3333 |
</div> |
| 3334 |
</div> |
| 3335 |
</div> <!-- Create post for poll --> |
| 3336 |
<hr/> |
| 3337 |
<?php else: ?> |
| 3338 |
<div class="form-group row"> |
| 3339 |
<div class="col-sm-3"> |
| 3340 |
<label for="ays_add_post_for_poll"> |
| 3341 |
<?php echo __('WP Post', "poll-maker")?> |
| 3342 |
<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")?>"> |
| 3343 |
<i class="ays_fa ays_fa_info_circle"></i> |
| 3344 |
</a> |
| 3345 |
</label> |
| 3346 |
</div> |
| 3347 |
<div class="col-sm-8" style="margin-left: 15px;"> |
| 3348 |
<div class="row"> |
| 3349 |
<div style="margin-right: 10px;"> |
| 3350 |
<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> |
| 3351 |
</div> |
| 3352 |
<div> |
| 3353 |
<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> |
| 3354 |
</div> |
| 3355 |
</div> |
| 3356 |
</div> |
| 3357 |
<input type="hidden" name="ays_post_id_for_quiz" value="<?php echo $post_id; ?>"> |
| 3358 |
</div> |
| 3359 |
<hr> |
| 3360 |
<?php endif; ?> |
| 3361 |
<div class="form-group row" style="margin-top:0px;margin-bottom:0;"> |
| 3362 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 3363 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 3364 |
</div> |
| 3365 |
<div class="form-group row"> |
| 3366 |
<div class="col-sm-3"> |
| 3367 |
<label for="ays_poll_enable_copy_protection"> |
| 3368 |
<?php echo __('Enable copy protection',"poll-maker"); ?> |
| 3369 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Disable copy functionality in poll page(CTRL+C) and Right-click',"poll-maker"); ?>"> |
| 3370 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3371 |
</a> |
| 3372 |
</label> |
| 3373 |
</div> |
| 3374 |
<div class="col-sm-9"> |
| 3375 |
<input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_copy_protection" /> |
| 3376 |
</div> |
| 3377 |
</div> |
| 3378 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 3379 |
<div class="ays-poll-new-upgrade-button-box"> |
| 3380 |
<div> |
| 3381 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 3382 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 3383 |
</div> |
| 3384 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 3385 |
</div> |
| 3386 |
</a> |
| 3387 |
</div> |
| 3388 |
</div> |
| 3389 |
<hr/> |
| 3390 |
<div class="form-group row" style="margin-top:0px;margin-bottom:0;"> |
| 3391 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 3392 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 3393 |
</div> |
| 3394 |
<div class="form-group row"> |
| 3395 |
<div class="col-sm-3"> |
| 3396 |
<label for="ays_poll_question_text_to_speech"> |
| 3397 |
<?php echo __('Enable text to speech',"poll-maker")?> |
| 3398 |
<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")?>"> |
| 3399 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3400 |
</a> |
| 3401 |
</label> |
| 3402 |
</div> |
| 3403 |
<div class="col-sm-9"> |
| 3404 |
<input type="checkbox" class="ays-enable-timer1" id="ays_poll_question_text_to_speech" |
| 3405 |
name="ays_poll_question_text_to_speech" |
| 3406 |
value="on"/> |
| 3407 |
</div> |
| 3408 |
</div> |
| 3409 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 3410 |
<div class="ays-poll-new-upgrade-button-box"> |
| 3411 |
<div> |
| 3412 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 3413 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 3414 |
</div> |
| 3415 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 3416 |
</div> |
| 3417 |
</a> |
| 3418 |
</div> |
| 3419 |
</div> <!-- Questions text to speech --> |
| 3420 |
<hr> |
| 3421 |
<div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>"> |
| 3422 |
<div class="col-sm-3"> |
| 3423 |
<label for='ays_poll_allow_multivote'> |
| 3424 |
<?= __('Allow multivote', "poll-maker"); ?> |
| 3425 |
<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"); ?>"> |
| 3426 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3427 |
</a> |
| 3428 |
</label> |
| 3429 |
</div> |
| 3430 |
<div class="col-sm-1"> |
| 3431 |
<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; ?>> |
| 3432 |
</div> |
| 3433 |
<div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_enable_multivote_answer ? '' : 'display: none'; ?>"> |
| 3434 |
<div class="row"> |
| 3435 |
<div class="col-sm-3"> |
| 3436 |
<label for='ays_poll_multivote_min_count'> |
| 3437 |
<?= __('Min', "poll-maker"); ?> |
| 3438 |
<a class="ays_help" |
| 3439 |
data-toggle="tooltip" |
| 3440 |
data-placement="top" |
| 3441 |
title="<?= __("Indicate the minimum count of answers.", "poll-maker"); ?>"> |
| 3442 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3443 |
</a> |
| 3444 |
</label> |
| 3445 |
</div> |
| 3446 |
<div class="col-sm-9"> |
| 3447 |
<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; ?>"> |
| 3448 |
</div> |
| 3449 |
</div> |
| 3450 |
<hr> |
| 3451 |
<div class="row"> |
| 3452 |
<div class="col-sm-3"> |
| 3453 |
<label for='ays_poll_multivote_count'> |
| 3454 |
<?= __('Max', "poll-maker"); ?> |
| 3455 |
<a class="ays_help" |
| 3456 |
data-toggle="tooltip" |
| 3457 |
data-placement="top" |
| 3458 |
title="<?= __("Indicate the maximum count of answers.", "poll-maker"); ?>"> |
| 3459 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3460 |
</a> |
| 3461 |
</label> |
| 3462 |
</div> |
| 3463 |
<div class="col-sm-9"> |
| 3464 |
<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; ?>"> |
| 3465 |
</div> |
| 3466 |
</div> |
| 3467 |
</div> |
| 3468 |
</div> |
| 3469 |
<hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>"> |
| 3470 |
<div class="form-group row"> |
| 3471 |
<div class="col-sm-3"> |
| 3472 |
<label for='show-title'> |
| 3473 |
<?= __('Show Title', "poll-maker"); ?> |
| 3474 |
<a class="ays_help" data-toggle="tooltip" |
| 3475 |
data-placement="top" |
| 3476 |
title="<?= __("Enable to show the title as a headline inside the poll.", "poll-maker"); ?>"> |
| 3477 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3478 |
</a> |
| 3479 |
</label> |
| 3480 |
</div> |
| 3481 |
<div class="col-sm-9"> |
| 3482 |
<input type="checkbox" name="show_title" id="show-title" |
| 3483 |
value="show" <?= $poll['show_title'] ? 'checked' : ''; ?>> |
| 3484 |
</div> |
| 3485 |
</div> |
| 3486 |
<hr> |
| 3487 |
<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' ?>" > |
| 3488 |
<div class="col-sm-3"> |
| 3489 |
<label> |
| 3490 |
<?= __('Alignment', "poll-maker"); ?> |
| 3491 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 3492 |
title="<?= __('Choose the alignment of the content of the poll.', "poll-maker") ?>"> |
| 3493 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3494 |
</a> |
| 3495 |
</label> |
| 3496 |
</div> |
| 3497 |
<div class="col-sm-9"> |
| 3498 |
<div class="d-flex"> |
| 3499 |
<div class="form-check form-check-inline"> |
| 3500 |
<input type="radio" id="apm-dir-ltr" name="ays_poll_direction" |
| 3501 |
value="ltr" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'ltr') ? 'checked' : ''; ?> /> |
| 3502 |
<label class="form-check-label" |
| 3503 |
for="apm-dir-ltr"> <?= __('Left', "poll-maker"); ?> </label> |
| 3504 |
</div> |
| 3505 |
<div class="form-check form-check-inline"> |
| 3506 |
<input type="radio" id="apm-dir-center" name="ays_poll_direction" |
| 3507 |
value="center" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'center') ? 'checked' : ''; ?> /> |
| 3508 |
<label class="form-check-label" |
| 3509 |
for="apm-dir-center"> <?= __('Center', "poll-maker"); ?> </label> |
| 3510 |
</div> |
| 3511 |
<div class="form-check form-check-inline"> |
| 3512 |
<input type="radio" id="apm-dir-rtl" name="ays_poll_direction" |
| 3513 |
value="rtl" <?= (isset($options['poll_direction']) && $options['poll_direction'] == 'rtl') ? 'checked' : ''; ?> /> |
| 3514 |
<label class="form-check-label" |
| 3515 |
for="apm-dir-rtl"> <?= __('Right', "poll-maker"); ?> </label> |
| 3516 |
</div> |
| 3517 |
</div> |
| 3518 |
</div> |
| 3519 |
</div> |
| 3520 |
<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' ?>" > |
| 3521 |
<div class="form-group row"> |
| 3522 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 3523 |
<div class="pro_features pro_features_popup"> |
| 3524 |
<div class="pro-features-popup-conteiner"> |
| 3525 |
<div class="pro-features-popup-title"> |
| 3526 |
<?php echo __("Allow Anonymity", "poll-maker"); ?> |
| 3527 |
</div> |
| 3528 |
<div class="pro-features-popup-content" data-link="https://youtu.be/Awhs309E_vU"> |
| 3529 |
<p> |
| 3530 |
<?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"); ?> |
| 3531 |
</p> |
| 3532 |
</div> |
| 3533 |
<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"> |
| 3534 |
<?php echo __("Upgrade PRO NOW", "poll-maker"); ?> |
| 3535 |
</div> |
| 3536 |
</div> |
| 3537 |
</div> |
| 3538 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 3539 |
</div> |
| 3540 |
<div class="form-group row"> |
| 3541 |
<div class="col-sm-3"> |
| 3542 |
<label for='ays-poll-allow-anonymity'> |
| 3543 |
<?= __('Allow anonymity', "poll-maker"); ?> |
| 3544 |
<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"); ?>"> |
| 3545 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3546 |
</a> |
| 3547 |
</label> |
| 3548 |
</div> |
| 3549 |
<div class="col-sm-9"> |
| 3550 |
<input type="checkbox" name="ays_allow_anonymity" |
| 3551 |
value="1" > |
| 3552 |
</div> |
| 3553 |
</div> |
| 3554 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 3555 |
<div class="ays-poll-new-upgrade-button-box"> |
| 3556 |
<div> |
| 3557 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 3558 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 3559 |
</div> |
| 3560 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 3561 |
</div> |
| 3562 |
</a> |
| 3563 |
<div class="ays-poll-new-watch-video-button-box"> |
| 3564 |
<div> |
| 3565 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>"> |
| 3566 |
<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"> |
| 3567 |
</div> |
| 3568 |
<div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div> |
| 3569 |
</div> |
| 3570 |
</div> |
| 3571 |
</div> |
| 3572 |
<hr> |
| 3573 |
<div class="form-group row"> |
| 3574 |
<div class="col-sm-3"> |
| 3575 |
<label for='ays_poll_change_creation_date'> |
| 3576 |
<?= __('Change current poll creation date', "poll-maker"); ?> |
| 3577 |
<a class="ays_help" data-toggle="tooltip" |
| 3578 |
data-placement="top" |
| 3579 |
title="<?= __("Choose your preferred creation date.", "poll-maker"); ?>"> |
| 3580 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3581 |
</a> |
| 3582 |
</label> |
| 3583 |
</div> |
| 3584 |
<div class="col-sm-9" style="display: inherit;"> |
| 3585 |
<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" |
| 3586 |
value="<?php echo $change_creation_date; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>"> |
| 3587 |
<div class="input-group-append" style="display: block"> |
| 3588 |
<label for="ays_poll_change_creation_date" class="input-group-text"> |
| 3589 |
<span><i class="ays_fa ays_fa_calendar"></i></span> |
| 3590 |
</label> |
| 3591 |
</div> |
| 3592 |
</div> |
| 3593 |
</div> |
| 3594 |
<hr> |
| 3595 |
<div class="form-group row"> |
| 3596 |
<div class="col-sm-3"> |
| 3597 |
<label for="ays_poll_create_author"> |
| 3598 |
<?php echo __('Change the author of the current poll', "poll-maker"); ?> |
| 3599 |
<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"); ?>"> |
| 3600 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3601 |
</a> |
| 3602 |
</label> |
| 3603 |
</div> |
| 3604 |
<div class="col-sm-9"> |
| 3605 |
<select id="ays_poll_create_author" class="" name="ays_poll_create_author"> |
| 3606 |
<option value=""><?php echo __('Select User', "poll-maker")?></option> |
| 3607 |
<?php |
| 3608 |
$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; |
| 3609 |
$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) ) : ''; |
| 3610 |
$selected = ''; |
| 3611 |
?> |
| 3612 |
<option value="<?php echo $poll_user_id;?>" selected> |
| 3613 |
<?php echo $poll_user_display_name; ?> |
| 3614 |
</option> |
| 3615 |
</select> |
| 3616 |
</div> |
| 3617 |
</div> <!-- Change the author of the current poll --> |
| 3618 |
<hr/> |
| 3619 |
<!-- Poll Main URL Start --> |
| 3620 |
<div class="form-group row"> |
| 3621 |
<div class="col-sm-3"> |
| 3622 |
<label for="ays_poll_main_url"> |
| 3623 |
<?php echo __('Poll main URL',$this->plugin_name)?> |
| 3624 |
<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"); |
| 3625 |
?>"> |
| 3626 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3627 |
</a> |
| 3628 |
</label> |
| 3629 |
</div> |
| 3630 |
<div class="col-sm-9"> |
| 3631 |
<input type="url" id="ays_poll_main_url" name="ays_poll_main_url" class="ays-text-input" value="<?php echo $poll_main_url; ?>"> |
| 3632 |
</div> |
| 3633 |
</div> |
| 3634 |
<!-- Poll Main URL End --> |
| 3635 |
<hr> |
| 3636 |
<div class="form-group row"> |
| 3637 |
<div class="col-sm-3"> |
| 3638 |
<label for='show-poll-create-dates'> |
| 3639 |
<?= __('Show creation date', "poll-maker"); ?> |
| 3640 |
<a class="ays_help" data-toggle="tooltip" |
| 3641 |
data-placement="top" |
| 3642 |
title="<?= __("Enable to show the creation date inside the poll.", "poll-maker"); ?>"> |
| 3643 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3644 |
</a> |
| 3645 |
</label> |
| 3646 |
</div> |
| 3647 |
<div class="col-sm-9"> |
| 3648 |
<input type="checkbox" name="show_poll_creation_date" id="show-poll-create-dates" |
| 3649 |
value="1" <?= $show_create_date ? 'checked' : '' ?> > |
| 3650 |
</div> |
| 3651 |
</div> |
| 3652 |
<hr> |
| 3653 |
<div class="form-group row"> |
| 3654 |
<div class="col-sm-3"> |
| 3655 |
<label for='show-poll-author'> |
| 3656 |
<?= __('Show author', "poll-maker"); ?> |
| 3657 |
<a class="ays_help" data-toggle="tooltip" |
| 3658 |
data-placement="top" |
| 3659 |
title="<?= __("Enable to show the author inside the poll.", "poll-maker"); ?>"> |
| 3660 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3661 |
</a> |
| 3662 |
</label> |
| 3663 |
</div> |
| 3664 |
<div class="col-sm-9"> |
| 3665 |
<input type="checkbox" name="show_poll_author" id="show-poll-author" |
| 3666 |
value="1" <?= $show_author ? 'checked' : '' ?> > |
| 3667 |
</div> |
| 3668 |
</div> |
| 3669 |
<hr> |
| 3670 |
<div class="form-group row"> |
| 3671 |
<div class="col-sm-3"> |
| 3672 |
<label for="schedule_the_poll"> |
| 3673 |
<?= __('Schedule', "poll-maker"); ?> |
| 3674 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 3675 |
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") ?>"> |
| 3676 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3677 |
</a> |
| 3678 |
</label> |
| 3679 |
</div> |
| 3680 |
<div class="col-sm-1"> |
| 3681 |
<input type="checkbox" |
| 3682 |
id="schedule_the_poll" |
| 3683 |
class="active_date_check" |
| 3684 |
name="active_date_check" <?= (isset($options['active_date_check']) && !empty($options['active_date_check'])) ? 'checked' : '' ?>> |
| 3685 |
</div> |
| 3686 |
<div class="col-sm-8"> |
| 3687 |
<div class="row"> |
| 3688 |
<div class="col-sm-12 active_date ays_divider_left" |
| 3689 |
style="display: <?php echo (isset($options['active_date_check']) && $options['active_date_check'] == 'on') ? 'block' : 'none' ?>"> |
| 3690 |
<!-- -1- --> |
| 3691 |
<div class="form-group row"> |
| 3692 |
<div class="col-sm-3"> |
| 3693 |
<label class="form-check-label" for="ays-active"> <?php echo __('Start date:', "poll-maker"); ?> </label> |
| 3694 |
</div> |
| 3695 |
<div class="col-sm-9"> |
| 3696 |
<div class="input-group mb-3"> |
| 3697 |
<input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-active" name="ays-active" |
| 3698 |
value="<?php echo $activePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>"> |
| 3699 |
<div class="input-group-append"> |
| 3700 |
<label for="ays-active" class="input-group-text"> |
| 3701 |
<span><i class="ays_fa ays_fa_calendar"></i></span> |
| 3702 |
</label> |
| 3703 |
</div> |
| 3704 |
</div> |
| 3705 |
</div> |
| 3706 |
</div> |
| 3707 |
<!-- -2- --> |
| 3708 |
<div class="form-group row"> |
| 3709 |
<div class="col-sm-3"> |
| 3710 |
<label class="form-check-label" for="ays-deactive"> <?php echo __('End date:', "poll-maker"); ?> </label> |
| 3711 |
</div> |
| 3712 |
<div class="col-sm-9"> |
| 3713 |
<div class="input-group mb-3"> |
| 3714 |
<input type="text" class="ays-text-input ays-text-input-short ays_actDect" id="ays-deactive" name="ays-deactive" |
| 3715 |
value="<?php echo $deactivePoll; ?>" placeholder="<?php echo current_time( 'mysql' ); ?>"> |
| 3716 |
<div class="input-group-append"> |
| 3717 |
<label for="ays-deactive" class="input-group-text"> |
| 3718 |
<span><i class="ays_fa ays_fa_calendar"></i></span> |
| 3719 |
</label> |
| 3720 |
</div> |
| 3721 |
</div> |
| 3722 |
</div> |
| 3723 |
</div> |
| 3724 |
<!-- ////////// --> |
| 3725 |
<hr> |
| 3726 |
<div class="form-group row"> |
| 3727 |
<div class="col-sm-3"> |
| 3728 |
<label for='ays_poll_show_timer'> |
| 3729 |
<?= __('Show timer', "poll-maker"); ?> |
| 3730 |
<a class="ays_help" data-toggle="tooltip" |
| 3731 |
data-placement="top" |
| 3732 |
title="<?= __("Enable to show the countdown or the end date in the poll, when it is scheduled.", "poll-maker"); ?>"> |
| 3733 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3734 |
</a> |
| 3735 |
</label> |
| 3736 |
</div> |
| 3737 |
<div class="col-sm-1"> |
| 3738 |
<input type="checkbox" name="ays_poll_show_timer" id="ays_poll_show_timer" |
| 3739 |
value="1" <?= $schedule_show_timer ? 'checked' : '' ?> > |
| 3740 |
</div> |
| 3741 |
<div class="col-sm-8"> |
| 3742 |
<div class="ays_show_time" style="display: <?php echo $schedule_show_timer ? 'block;' : 'none;'; ?>"> |
| 3743 |
<div class="d-flex"> |
| 3744 |
<div class="form-check form-check-inline"> |
| 3745 |
<input type="radio" id="show_time_countdown" name="ays_show_timer_type" |
| 3746 |
value="countdown" <?= $show_timer_type == 'countdown' ? 'checked' : ''; ?> /> |
| 3747 |
<label class="form-check-label" |
| 3748 |
for="show_time_countdown"> <?= __('Show countdown', "poll-maker"); ?> </label> |
| 3749 |
</div> |
| 3750 |
<div class="form-check form-check-inline"> |
| 3751 |
<input type="radio" id="show_time_enddate" name="ays_show_timer_type" |
| 3752 |
value="enddate" <?= $show_timer_type == 'enddate' ? 'checked' : ''; ?> /> |
| 3753 |
<label class="form-check-label" |
| 3754 |
for="show_time_enddate"> <?= __('Show end date', "poll-maker"); ?> </label> |
| 3755 |
</div> |
| 3756 |
</div> |
| 3757 |
<hr> |
| 3758 |
<div class='form-group row'> |
| 3759 |
<div class='col-sm-5'> |
| 3760 |
<label class="form-check-label" for="show_bottom_timer"> |
| 3761 |
<?= __(' Show timer at the bottom', "poll-maker"); ?> |
| 3762 |
<a class="ays_help" data-toggle="tooltip" |
| 3763 |
data-placement="top" |
| 3764 |
title="<?= __("If you enable this option, the timer will be displayed at the bottom of the poll instead of the top.", "poll-maker"); ?>"> |
| 3765 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3766 |
</a> |
| 3767 |
</label> |
| 3768 |
</div> |
| 3769 |
<div class='col-sm-7'> |
| 3770 |
<input type="checkbox" id="show_bottom_timer" name="ays_show_bottom_timer" value="1" <?= $show_bottom_timer == true ? 'checked' : ''; ?> > |
| 3771 |
</div> |
| 3772 |
</div> |
| 3773 |
</div> |
| 3774 |
</div> |
| 3775 |
</div> |
| 3776 |
<hr> |
| 3777 |
<div class="form-group row"> |
| 3778 |
<div class="col-sm-3"> |
| 3779 |
<label class="form-check-label" |
| 3780 |
for="active_date_message"><?= __("Pre start message:", "poll-maker") ?></label> |
| 3781 |
</div> |
| 3782 |
<div class="col-sm-9"> |
| 3783 |
<div class="editor"> |
| 3784 |
<?php |
| 3785 |
$content = !empty($options['active_date_message_soon']) ? stripslashes($options['active_date_message_soon']) : stripslashes($default_options['active_date_message_soon']); |
| 3786 |
$editor_id = 'active_date_message_soon'; |
| 3787 |
$settings = array( |
| 3788 |
'editor_height' => $poll_wp_editor_height, |
| 3789 |
'textarea_name' => 'active_date_message_soon', |
| 3790 |
'editor_class' => 'ays-textarea', |
| 3791 |
'media_elements' => false |
| 3792 |
); |
| 3793 |
wp_editor($content, $editor_id, $settings); |
| 3794 |
?> |
| 3795 |
</div> |
| 3796 |
</div> |
| 3797 |
</div> |
| 3798 |
<hr> |
| 3799 |
<!-- -3- --> |
| 3800 |
<div class="form-group row"> |
| 3801 |
<div class="col-sm-3"> |
| 3802 |
<label class="form-check-label" |
| 3803 |
for="active_date_message"><?= __("Expiration message:", "poll-maker") ?></label> |
| 3804 |
</div> |
| 3805 |
<div class="col-sm-9"> |
| 3806 |
<div class="editor"> |
| 3807 |
<?php |
| 3808 |
$content = !empty($options['active_date_message']) ? stripslashes($options['active_date_message']) : stripslashes($default_options['active_date_message']); |
| 3809 |
$editor_id = 'active_date_message'; |
| 3810 |
$settings = array( |
| 3811 |
'editor_height' => $poll_wp_editor_height, |
| 3812 |
'textarea_name' => 'active_date_message', |
| 3813 |
'editor_class' => 'ays-textarea', |
| 3814 |
'media_elements' => false |
| 3815 |
); |
| 3816 |
wp_editor($content, $editor_id, $settings); |
| 3817 |
?> |
| 3818 |
</div> |
| 3819 |
</div> |
| 3820 |
</div> |
| 3821 |
<hr> |
| 3822 |
<div class="form-group row"> |
| 3823 |
<div class="col-sm-3"> |
| 3824 |
<label for='show_result_btn_schedule'> |
| 3825 |
<?= __('Show result button', "poll-maker"); ?> |
| 3826 |
<a class="ays_help" data-toggle="tooltip" |
| 3827 |
data-placement="top" |
| 3828 |
title="<?= __("Enable to show the result button after the schedule.", "poll-maker"); ?>"> |
| 3829 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3830 |
</a> |
| 3831 |
</label> |
| 3832 |
</div> |
| 3833 |
<div class="col-sm-1"> |
| 3834 |
<input type="checkbox" name="show_result_btn_schedule" id="show_result_btn_schedule" |
| 3835 |
value="1" <?= $showresbtnschedule ? 'checked' : '' ?> > |
| 3836 |
</div> |
| 3837 |
<div class="col-sm-8"> |
| 3838 |
<div class="result_btn_see" style="display: <?php echo $showresbtnschedule ? 'flex' : 'none'; ?>;"> |
| 3839 |
<div class="form-check form-check-inline"> |
| 3840 |
<label class="form-check-label"> |
| 3841 |
<input type="radio" name="ays_poll_show_result_btn_see_schedule" value="with_see" <?php echo ($show_res_btn == 'with_see') ? 'checked' : '' ?>/> |
| 3842 |
<span> |
| 3843 |
<?= __('With See Results button', "poll-maker"); ?> |
| 3844 |
</span> |
| 3845 |
</label> |
| 3846 |
</div> |
| 3847 |
<div class="form-check form-check-inline"> |
| 3848 |
<label class="form-check-label"> |
| 3849 |
<input type="radio" name="ays_poll_show_result_btn_see_schedule" value="without_see" <?php echo ($show_res_btn == 'without_see') ? 'checked' : '' ?>/> |
| 3850 |
<span> |
| 3851 |
<?= __('Without See Results button', "poll-maker"); ?> |
| 3852 |
</span> |
| 3853 |
</label> |
| 3854 |
</div> |
| 3855 |
</div> |
| 3856 |
</div> |
| 3857 |
</div> |
| 3858 |
<hr> |
| 3859 |
<div class="form-group row"> |
| 3860 |
<div class="col-sm-3"> |
| 3861 |
<label for='ays_show_poll_container'> |
| 3862 |
<?= __("Don't show poll", "poll-maker"); ?> |
| 3863 |
<a class="ays_help" data-toggle="tooltip" |
| 3864 |
data-placement="top" |
| 3865 |
title="<?= __("Do not show the poll container on the front-end at all when it is expired or has not started yet.", "poll-maker"); ?>"> |
| 3866 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3867 |
</a> |
| 3868 |
</label> |
| 3869 |
</div> |
| 3870 |
<div class="col-sm-9"> |
| 3871 |
<input type="checkbox" name="ays_show_poll_container" id="ays_show_poll_container" |
| 3872 |
value="on" <?php echo $poll_check_exp_cont; ?> > |
| 3873 |
</div> |
| 3874 |
</div> |
| 3875 |
</div> |
| 3876 |
</div> |
| 3877 |
</div> |
| 3878 |
</div> |
| 3879 |
<hr> |
| 3880 |
<div class="form-group row ays_toggle_parent"> |
| 3881 |
<div class="col-sm-3"> |
| 3882 |
<label for='ays-poll-allow-not-vote'> |
| 3883 |
<?= __('Allow not to vote', "poll-maker"); ?> |
| 3884 |
<a class="ays_help" |
| 3885 |
data-toggle="tooltip" |
| 3886 |
data-placement="top" |
| 3887 |
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"); ?>"> |
| 3888 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3889 |
</a></label> |
| 3890 |
</div> |
| 3891 |
<div class="col-sm-1"> |
| 3892 |
<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' : ''; ?>> |
| 3893 |
</div> |
| 3894 |
<div class="col-sm-8 if-allow-not-vot ays_toggle_target" style="display: none;"> |
| 3895 |
<div class="row"> |
| 3896 |
<div class="col-sm-3 ays_divider_left"> |
| 3897 |
<label for="ays-poll-btn-text"> |
| 3898 |
<?= __("Results button text", "poll-maker"); ?> |
| 3899 |
<a class="ays_help" |
| 3900 |
data-toggle="tooltip" |
| 3901 |
data-placement="top" |
| 3902 |
title="<?= __("Write the text of the button, which shows results.", "poll-maker"); ?>"> |
| 3903 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3904 |
</a> |
| 3905 |
</label> |
| 3906 |
</div> |
| 3907 |
<div class="col-sm-9"> |
| 3908 |
<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"); ?>"/> |
| 3909 |
</div> |
| 3910 |
</div> |
| 3911 |
</div> |
| 3912 |
</div> |
| 3913 |
<hr> |
| 3914 |
<div class="form-group row"> |
| 3915 |
<div class="col-sm-3" style="padding-right: 0px;"> |
| 3916 |
<label for="ays_enable_pass_count"> |
| 3917 |
<?= __('Show passed users count', "poll-maker") ?> |
| 3918 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 3919 |
title="<?= __('Show how many users have passed the poll. It will be shown at the bottom right corner inside the poll.', "poll-maker") ?>"> |
| 3920 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3921 |
</a> |
| 3922 |
</label> |
| 3923 |
</div> |
| 3924 |
<div class="col-sm-9"> |
| 3925 |
<input type="checkbox" id="ays_enable_pass_count" name="ays_enable_pass_count" |
| 3926 |
value="on" <?= ($enable_pass_count == 'on') ? 'checked' : ''; ?> /> |
| 3927 |
</div> |
| 3928 |
</div> |
| 3929 |
<hr> |
| 3930 |
<div class="form-group row ays_toggle_parent"> |
| 3931 |
<div class="col-sm-3"> |
| 3932 |
<label for="ays_redirect_after_vote"> |
| 3933 |
<?= __('Redirect after voting', "poll-maker"); ?> |
| 3934 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 3935 |
title="<?= __('Enable redirection to the custom URL after the user votes the poll.', "poll-maker"); ?>"> |
| 3936 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3937 |
</a> |
| 3938 |
</label> |
| 3939 |
</div> |
| 3940 |
<div class="col-sm-1"> |
| 3941 |
<input type="checkbox" id="ays_redirect_after_vote" class="ays_toggle_checkbox" name="ays_redirect_after_vote" value="on" <?php echo ($redirect_users) ? 'checked' : ''; ?> /> |
| 3942 |
</div> |
| 3943 |
<div class="col-sm-8 ays_toggle_target" style="<?php echo ($redirect_users) ? '' : 'display: none;'; ?>"> |
| 3944 |
<div class="row"> |
| 3945 |
<div class="col-sm-12 ays_divider_left"> |
| 3946 |
<div class="form-group row"> |
| 3947 |
<div class="col-sm-3"> |
| 3948 |
<label for="redirection_url"> |
| 3949 |
<?= __('URL', "poll-maker"); ?> |
| 3950 |
<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"); ?>"> |
| 3951 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3952 |
</a> |
| 3953 |
</label> |
| 3954 |
</div> |
| 3955 |
<div class="col-sm-9"> |
| 3956 |
<input type="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"> |
| 3957 |
</div> |
| 3958 |
</div> |
| 3959 |
<hr> |
| 3960 |
<div class="form-group row"> |
| 3961 |
<div class="col-sm-3"> |
| 3962 |
<label for="redirectio_delay"> |
| 3963 |
<?= __('Delay', "poll-maker"); ?> |
| 3964 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 3965 |
title="<?= __('Choose the redirection delay in seconds after the user votes the poll.', "poll-maker"); ?>"> |
| 3966 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 3967 |
</a> |
| 3968 |
</label> |
| 3969 |
</div> |
| 3970 |
<div class="col-sm-9"> |
| 3971 |
<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"> |
| 3972 |
</div> |
| 3973 |
</div> |
| 3974 |
</div> |
| 3975 |
</div> |
| 3976 |
|
| 3977 |
</div> |
| 3978 |
</div> |
| 3979 |
<hr/> |
| 3980 |
<div class="form-group row"> |
| 3981 |
<div class="col-sm-3"> |
| 3982 |
<label for="randomize-answers"> |
| 3983 |
<?= __('Randomize Answers', "poll-maker"); ?> |
| 3984 |
<a class="ays_help" data-toggle="tooltip" |
| 3985 |
data-placement="top" |
| 3986 |
title="<?= __("Enable to show the answers of the poll in a random sequence.", "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="checkbox" |
| 3993 |
name="randomize_answers" |
| 3994 |
id="randomize-answers" |
| 3995 |
value="on" |
| 3996 |
<?php echo $randomize_answers ? 'checked' : ''; ?> |
| 3997 |
/> |
| 3998 |
</div> |
| 3999 |
</div> |
| 4000 |
<hr/> |
| 4001 |
<div class="form-group row ays_toggle_parent"> |
| 4002 |
<div class="col-sm-3" style="padding-right: 0px;"> |
| 4003 |
<label for="ays_enable_asnwers_sound"> |
| 4004 |
<?php echo __('Enable answers sound', "poll-maker")?> |
| 4005 |
<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")?>"> |
| 4006 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4007 |
</a> |
| 4008 |
</label> |
| 4009 |
</div> |
| 4010 |
<div class="col-sm-1"> |
| 4011 |
<input type="checkbox" id="ays_enable_asnwers_sound" |
| 4012 |
name="ays_poll_enable_asnwers_sound" class="ays_toggle_checkbox" |
| 4013 |
value="on" <?php echo $enable_asnwers_sound ? 'checked' : ''; ?>/> |
| 4014 |
</div> |
| 4015 |
<div class="col-sm-8 if_answer_sound ays_toggle_target ays_divider_left" style="<?php echo $enable_asnwers_sound ? '' : 'display:none;' ?>"> |
| 4016 |
<?php if($answers_sound_status): ?> |
| 4017 |
<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> |
| 4018 |
<?php else: ?> |
| 4019 |
<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> |
| 4020 |
<?php endif; ?> |
| 4021 |
</div> |
| 4022 |
</div> |
| 4023 |
<hr/> |
| 4024 |
<div class="form-group row"> |
| 4025 |
<div class="col-3"> |
| 4026 |
<label for="ays-poll-reason"> |
| 4027 |
<?= __('Vote Reason', "poll-maker"); ?> |
| 4028 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4029 |
title="<?= __("Allow users to add their vote reason", "poll-maker"); ?>"> |
| 4030 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4031 |
</a> |
| 4032 |
</label> |
| 4033 |
</div> |
| 4034 |
<div class="col-9"> |
| 4035 |
<input type="checkbox" name="ays-poll-reason" id="ays-poll-reason" <?php echo $poll_vote_reason; ?>> |
| 4036 |
</div> |
| 4037 |
</div> |
| 4038 |
<hr/> |
| 4039 |
<div class="form-group row ays_toggle_parent"> |
| 4040 |
<div class="col-sm-3"> |
| 4041 |
<label for="ays_enable_vote_button"> |
| 4042 |
<?= __('Enable Vote button', "poll-maker") ?> |
| 4043 |
<a class="ays_help" data-toggle="tooltip" |
| 4044 |
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") ?>"> |
| 4045 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4046 |
</a> |
| 4047 |
</label> |
| 4048 |
</div> |
| 4049 |
<div class="col-sm-1"> |
| 4050 |
<input type="checkbox" class="ays_toggle_checkbox" id="ays_enable_vote_button" name="ays_enable_vote_button" |
| 4051 |
value="1" <?= (isset($options['enable_vote_btn']) && $options['enable_vote_btn'] == 0) ? '' : 'checked' ?> /> |
| 4052 |
</div> |
| 4053 |
<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;' : '' ?>"> |
| 4054 |
<div class="row"> |
| 4055 |
<div class="col-sm-3 ays_divider_left"> |
| 4056 |
<label for="ays-poll-btn-text_vote"> |
| 4057 |
<?= __("Vote button text", "poll-maker"); ?> |
| 4058 |
<a class="ays_help" |
| 4059 |
data-toggle="tooltip" |
| 4060 |
data-placement="top" |
| 4061 |
title="<?= __("Write the text of the vote button.", "poll-maker"); ?>"> |
| 4062 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4063 |
</a> |
| 4064 |
</label> |
| 4065 |
</div> |
| 4066 |
<div class="col-sm-9"> |
| 4067 |
<input type="text" class="ays-text-input ays-text-input-short" |
| 4068 |
id="ays-poll-btn-text_vote" name="ays_poll_btn_text" |
| 4069 |
value="<?= stripslashes($options['btn_text']) ?>"/> |
| 4070 |
</div> |
| 4071 |
</div> |
| 4072 |
</div> |
| 4073 |
</div> |
| 4074 |
<hr <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>> |
| 4075 |
<div class="form-group row ays_toggle_parent" <?php echo $poll['type'] == 'choosing' ? "" : "style='display: none;'"?>> |
| 4076 |
<div class="col-sm-3"> |
| 4077 |
<label for="ays_enable_view_more_button"> |
| 4078 |
<?= __('Enable View more button', "poll-maker") ?> |
| 4079 |
<a class="ays_help" data-toggle="tooltip" |
| 4080 |
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"); ?>"> |
| 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_view_more_button" name="ays_enable_view_more_button" |
| 4087 |
value="on" <?php echo ($enable_view_more_button) ? 'checked' : ''; ?> /> |
| 4088 |
</div> |
| 4089 |
<div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($enable_view_more_button) ? '' : 'display: none'; ?>"> |
| 4090 |
<div class="form-group row"> |
| 4091 |
<div class="col-sm-3"> |
| 4092 |
<label for="ays_poll_view_more_button_count"> |
| 4093 |
<?php echo __("Count", "poll-maker"); ?> |
| 4094 |
<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"); ?>"> |
| 4095 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4096 |
</a> |
| 4097 |
</label> |
| 4098 |
</div> |
| 4099 |
<div class="col-sm-9"> |
| 4100 |
<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; ?>"/> |
| 4101 |
</div> |
| 4102 |
</div> |
| 4103 |
</div> |
| 4104 |
</div> |
| 4105 |
<hr> |
| 4106 |
<div class="form-group row"> |
| 4107 |
<div class="col-sm-3"> |
| 4108 |
<label for="ays_answers_sort_select"> |
| 4109 |
<?php echo __('Answers sorting', "poll-maker") ?> |
| 4110 |
<a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" |
| 4111 |
title="<?php |
| 4112 |
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") . |
| 4113 |
"<ul style='list-style-type: circle;padding-left: 20px;'>". |
| 4114 |
"<li>". __('Ascending – the sort is alphabetical from A to Z.', "poll-maker") ."</li>". |
| 4115 |
"<li>". __('Descending – the sort is alphabetical from Z to A.', "poll-maker") ."</li>". |
| 4116 |
"<li>". __('Most voted – by most votes', "poll-maker") ."</li>". |
| 4117 |
"<li>". __('Less voted - by less votes', "poll-maker") ."</li>". |
| 4118 |
"<li>". __('Default - upon your preferences', "poll-maker") ."</li>". |
| 4119 |
"</ul>"; |
| 4120 |
?>"> |
| 4121 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4122 |
</a> |
| 4123 |
</label> |
| 4124 |
</div> |
| 4125 |
<div class="col-sm-9"> |
| 4126 |
<select name="ays_answers_sort_select" id="ays_answers_sort_select" class="ays-select ays_poll_aysDropdown"> |
| 4127 |
<option value="default" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "default" ? 'selected' : ''; ?>><?php echo __('Default', "poll-maker") ?></option> |
| 4128 |
<option value="ascending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "ascending" ? 'selected' : ''; ?>><?php echo __('Ascending', "poll-maker") ?></option> |
| 4129 |
<option value="descending" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "descending" ? 'selected' : ''; ?>><?php echo __('Descending', "poll-maker") ?></option> |
| 4130 |
<option value="votes_asc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_asc" ? 'selected' : ''; ?>><?php echo __('Most Voted', "poll-maker") ?></option> |
| 4131 |
<option value="votes_desc" <?= isset($options['answer_sort_type']) && $options['answer_sort_type'] == "votes_desc" ? 'selected' : ''; ?>><?php echo __('Less Voted', "poll-maker") ?></option> |
| 4132 |
</select> |
| 4133 |
</div> |
| 4134 |
</div> |
| 4135 |
<hr> |
| 4136 |
<div class="form-group row"> |
| 4137 |
<div class="col-sm-3"> |
| 4138 |
<label> |
| 4139 |
<?php echo __('Answers numbering', "poll-maker"); ?> |
| 4140 |
<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"); ?>"> |
| 4141 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4142 |
</a> |
| 4143 |
</label> |
| 4144 |
</div> |
| 4145 |
<div class="col-sm-9"> |
| 4146 |
<select class="ays_poll_aysDropdown" name="ays_poll_show_answers_numbering" style="width: 200px;"> |
| 4147 |
<option <?php echo $show_answers_numbering == "none" ? "selected" : ""; ?> value="none"><?php echo __( "None", "poll-maker"); ?></option> |
| 4148 |
<option <?php echo $show_answers_numbering == "1." ? "selected" : ""; ?> value="1."><?php echo __( "1.", "poll-maker"); ?></option> |
| 4149 |
<option <?php echo $show_answers_numbering == "1)" ? "selected" : ""; ?> value="1)"><?php echo __( "1)", "poll-maker"); ?></option> |
| 4150 |
<option <?php echo $show_answers_numbering == "A." ? "selected" : ""; ?> value="A."><?php echo __( "A.", "poll-maker"); ?></option> |
| 4151 |
<option <?php echo $show_answers_numbering == "A)" ? "selected" : ""; ?> value="A)"><?php echo __( "A)", "poll-maker"); ?></option> |
| 4152 |
<option <?php echo $show_answers_numbering == "a." ? "selected" : ""; ?> value="a."><?php echo __( "a.", "poll-maker"); ?></option> |
| 4153 |
<option <?php echo $show_answers_numbering == "a)" ? "selected" : ""; ?> value="a)"><?php echo __( "a)", "poll-maker"); ?></option> |
| 4154 |
</select> |
| 4155 |
</div> |
| 4156 |
</div> <!-- Show answers numbering --> |
| 4157 |
<hr> |
| 4158 |
<div class="form-group row"> |
| 4159 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 4160 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 4161 |
</div> |
| 4162 |
<div class="form-group row ays_toggle_parent"> |
| 4163 |
<div class="col-sm-3"> |
| 4164 |
<label for="ays_show_votes_before_voting"> |
| 4165 |
<?= __('Show votes count per answer before voting', "poll-maker"); ?> |
| 4166 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" |
| 4167 |
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") ?>"> |
| 4168 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4169 |
</a> |
| 4170 |
</label> |
| 4171 |
</div> |
| 4172 |
<div class="col-sm-1"> |
| 4173 |
<input type="checkbox"/> |
| 4174 |
</div> |
| 4175 |
<div class="col-sm-8 ays_divider_left ays_toggle_target" > |
| 4176 |
<div class="d-flex"> |
| 4177 |
<div class="form-check-inline ays_poll_loader"> |
| 4178 |
<label class="form-check-label"> |
| 4179 |
<input type="radio" value="by_count" /> |
| 4180 |
<span><?= __('By count', "poll-maker"); ?></span> |
| 4181 |
</label> |
| 4182 |
</div> |
| 4183 |
<div class="form-check-inline ays_poll_loader"> |
| 4184 |
<label class="form-check-label"> |
| 4185 |
<input type="radio" value="by_percentage"/> |
| 4186 |
<span><?= __('By percentage', "poll-maker"); ?></span> |
| 4187 |
</label> |
| 4188 |
</div> |
| 4189 |
</div> |
| 4190 |
</div> |
| 4191 |
</div> <!-- Status --> |
| 4192 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 4193 |
<div class="ays-poll-new-upgrade-button-box" style="top: -20px;"> |
| 4194 |
<div> |
| 4195 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 4196 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 4197 |
</div> |
| 4198 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 4199 |
</div> |
| 4200 |
</a> |
| 4201 |
</div> |
| 4202 |
</div> |
| 4203 |
</div> |
| 4204 |
</div> |
| 4205 |
</div> |
| 4206 |
<div id="tab4" class="ays-poll-tab-content <?= $active_tab == 'Limitations' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 4207 |
<div class="ays-poll-accordion-options-main-container"> |
| 4208 |
<div class="ays-poll-accordion-header"> |
| 4209 |
<?php echo $poll_acordion_svg_html; ?> |
| 4210 |
<p class="ays-subtitle"><?= __('Limitation of Users', "poll-maker"); ?></p> |
| 4211 |
</div> |
| 4212 |
<hr class="ays-poll-bolder-hr"/> |
| 4213 |
<div class="ays-poll-accordion-body"> |
| 4214 |
<div class="form-group row ays_toggle_parent"> |
| 4215 |
<div class="col-sm-3"> |
| 4216 |
<label for="apm_limit_users"> |
| 4217 |
<?= __('Maximum number of attempts per user', "poll-maker"); ?> |
| 4218 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4219 |
title="<?= __('This option allows to block the users who have already voted.', "poll-maker"); ?>"> |
| 4220 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4221 |
</a> |
| 4222 |
</label> |
| 4223 |
</div> |
| 4224 |
<div class="col-sm-1"> |
| 4225 |
<input type="checkbox" id="apm_limit_users" name="apm_limit_users" class="ays_toggle_checkbox" |
| 4226 |
value="on" <?= $options['limit_users'] ? 'checked' : ''; ?> /> |
| 4227 |
</div> |
| 4228 |
<div class="if-limit-users col-sm-8 ays_divider_left ays_toggle_target" style="<?= $options['limit_users'] ? '' : 'display: none;'; ?>"> |
| 4229 |
<div class="ays-limitation-options"> |
| 4230 |
<!-- Limitation method --> |
| 4231 |
<div class="form-group row"> |
| 4232 |
<div class="col-sm-3"> |
| 4233 |
<label for="ays_redirect_method"> |
| 4234 |
<?= __('Detects users by', "poll-maker"); ?> |
| 4235 |
<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" ); ?> |
| 4236 |
<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> |
| 4237 |
<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> |
| 4238 |
<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> |
| 4239 |
<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>" |
| 4240 |
> |
| 4241 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4242 |
</a> |
| 4243 |
</label> |
| 4244 |
</div> |
| 4245 |
<div class="col-sm-9"> |
| 4246 |
<div class="ays-poll-sel-fields d-flex p-0"> |
| 4247 |
<div class="ays-poll-check-box mr-2"> |
| 4248 |
<input type="radio" id="ays_limit_method_ip" name="ays_limit_method" |
| 4249 |
value="ip" <?= (!empty($options['limit_users_method']) && $options['limit_users_method'] == 'ip') || empty($options['limit_users_method']) ? "checked" : "" ?> /> |
| 4250 |
<label class="form-check-label" |
| 4251 |
for="ays_limit_method_ip"><?= __('IP', "poll-maker"); ?> </label> |
| 4252 |
</div> |
| 4253 |
<div class="ays-poll-check-box mr-2"> |
| 4254 |
<input type="radio" id="ays_limit_method_user" name="ays_limit_method" |
| 4255 |
value="user" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'user' ? "checked" : "" ?> /> |
| 4256 |
<label class="form-check-label" |
| 4257 |
for="ays_limit_method_user"><?= __('User ID', "poll-maker"); ?> </label> |
| 4258 |
</div> |
| 4259 |
<div class="ays-poll-check-box mr-2"> |
| 4260 |
<input type="radio" id="ays_limit_method_cookie" name="ays_limit_method" |
| 4261 |
value="cookie" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie' ? "checked" : "" ?> /> |
| 4262 |
<label class="form-check-label" |
| 4263 |
for="ays_limit_method_cookie"><?= __('Cookie', "poll-maker"); ?> </label> |
| 4264 |
</div> |
| 4265 |
<div class="ays-poll-check-box mr-2"> |
| 4266 |
<input type="radio" id="ays_limit_method_cookie_ip" name="ays_limit_method" |
| 4267 |
value="cookie_ip" <?= !empty($options['limit_users_method']) && $options['limit_users_method'] == 'cookie_ip' ? "checked" : "" ?> /> |
| 4268 |
<label class="form-check-label" |
| 4269 |
for="ays_limit_method_cookie_ip"><?= __('Cookie and IP', "poll-maker"); ?> </label> |
| 4270 |
</div> |
| 4271 |
</div> |
| 4272 |
</div> |
| 4273 |
</div> |
| 4274 |
<hr> |
| 4275 |
<!-- Limitation message --> |
| 4276 |
<div class="form-group row"> |
| 4277 |
<div class="col-sm-3"> |
| 4278 |
<label for="ays_limitation_message"> |
| 4279 |
<?= __('Message', "poll-maker"); ?> |
| 4280 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4281 |
title="<?= __('Write the message for those who have already passed the poll under the given conditions.', "poll-maker"); ?>"> |
| 4282 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4283 |
</a> |
| 4284 |
</label> |
| 4285 |
</div> |
| 4286 |
<div class="col-sm-9"> |
| 4287 |
<?php |
| 4288 |
$content = !empty($options['limitation_message']) ? stripslashes($options['limitation_message']) : stripslashes($default_options['limitation_message']); |
| 4289 |
$editor_id = 'ays_limitation_message'; |
| 4290 |
$settings = array( |
| 4291 |
'editor_height' => $poll_wp_editor_height, |
| 4292 |
'textarea_name' => 'ays_limitation_message', |
| 4293 |
'editor_class' => 'ays-textarea', |
| 4294 |
'media_elements' => false |
| 4295 |
); |
| 4296 |
wp_editor($content, $editor_id, $settings); |
| 4297 |
?> |
| 4298 |
</div> |
| 4299 |
</div> |
| 4300 |
<hr> |
| 4301 |
<!-- Limitation redirect url --> |
| 4302 |
<div class="form-group row"> |
| 4303 |
<div class="col-sm-3"> |
| 4304 |
<label for="ays_redirect_url"> |
| 4305 |
<?= __('Redirect URL', "poll-maker"); ?> |
| 4306 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4307 |
title="<?= __('Enable redirection to the custom URL for those who have already passed the poll under the given conditions.', "poll-maker"); ?>"> |
| 4308 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4309 |
</a> |
| 4310 |
</label> |
| 4311 |
</div> |
| 4312 |
<div class="col-sm-9"> |
| 4313 |
<input type="text" name="ays_redirect_url" id="ays_redirect_url" |
| 4314 |
class="ays-text-input" |
| 4315 |
value="<?= $options['redirect_url'] ?>"/> |
| 4316 |
</div> |
| 4317 |
</div> |
| 4318 |
<hr> |
| 4319 |
<!-- Limitation redirect delay --> |
| 4320 |
<div class="form-group row"> |
| 4321 |
<div class="col-sm-3"> |
| 4322 |
<label for="ays_redirection_delay"> |
| 4323 |
<?= __('Redirect delay (sec)', "poll-maker"); ?> |
| 4324 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4325 |
title="<?= __('Choose the redirection delay in seconds. If you set it to 0, the redirection will be disabled.', "poll-maker"); ?>"> |
| 4326 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4327 |
</a> |
| 4328 |
</label> |
| 4329 |
</div> |
| 4330 |
<div class="col-sm-9"> |
| 4331 |
<input type="number" name="ays_redirection_delay" id="ays_redirection_delay" |
| 4332 |
class="ays-text-input" |
| 4333 |
value="<?= $options['redirection_delay'] ?>"/> |
| 4334 |
</div> |
| 4335 |
</div> |
| 4336 |
<hr> |
| 4337 |
<div class="form-group row"> |
| 4338 |
<div class="col-sm-3"> |
| 4339 |
<label for="ays_see_result_show"> |
| 4340 |
<?= __('See results', "poll-maker"); ?> |
| 4341 |
<a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" |
| 4342 |
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" ); ?> |
| 4343 |
<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> |
| 4344 |
<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>"> |
| 4345 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4346 |
</a> |
| 4347 |
</label> |
| 4348 |
</div> |
| 4349 |
<div class="col-sm-9"> |
| 4350 |
<div class="row"> |
| 4351 |
<div class="col-sm-2 d-flex align-items-center" style="margin-bottom: 0.75rem;"> |
| 4352 |
<input type="checkbox" id="ays_see_result_show" |
| 4353 |
name="ays_see_result_show" |
| 4354 |
class="ays_poll_show_hide_button" |
| 4355 |
value="on" <?php echo $poll_see_result_button; ?>> |
| 4356 |
</div> |
| 4357 |
|
| 4358 |
<div class="col-sm-10" id="ays_poll_show_hide_button"> |
| 4359 |
<div class="row <?php echo $poll_see_result_button_cont; ?>"> |
| 4360 |
<div class="col-sm-6"> |
| 4361 |
<div class="ays-poll-check-box d-flex align-items-center" |
| 4362 |
style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;"> |
| 4363 |
<input type="radio" |
| 4364 |
id="ays_see_result_button_show" |
| 4365 |
name="ays_poll_see_result_show" |
| 4366 |
class="ays_poll_show_hide_button mr-2" |
| 4367 |
value="ays_see_result_button" |
| 4368 |
<?php echo $poll_see_result_botton_show ?>> |
| 4369 |
<label for="ays_see_result_button_show" class="form-check-label"> |
| 4370 |
<?= __('After clicking on the button', "poll-maker"); ?> |
| 4371 |
</label> |
| 4372 |
</div> |
| 4373 |
</div> |
| 4374 |
<div class="col-sm-6"> |
| 4375 |
<div class="ays-poll-check-box d-flex align-items-center" |
| 4376 |
style="padding: 8px; border: 1px solid #ccc; margin-bottom: 0.75rem;"> |
| 4377 |
<input type="radio" |
| 4378 |
id="ays_see_result_button_hide" |
| 4379 |
name="ays_poll_see_result_show" |
| 4380 |
class="ays_poll_show_hide_button mr-2" |
| 4381 |
value="ays_see_result_immediately" |
| 4382 |
<?php echo $poll_see_result_immediately ?>> |
| 4383 |
<label for="ays_see_result_button_hide" class="form-check-label"> |
| 4384 |
<?= __('Directly', "poll-maker"); ?> |
| 4385 |
</label> |
| 4386 |
</div> |
| 4387 |
</div> |
| 4388 |
|
| 4389 |
</div> |
| 4390 |
</div> |
| 4391 |
</div> |
| 4392 |
</div> |
| 4393 |
</div> |
| 4394 |
<hr> |
| 4395 |
<div class="form-group row"> |
| 4396 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 4397 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 4398 |
</div> |
| 4399 |
<div class="form-group row d-flex"> |
| 4400 |
<div class="col-sm-3"> |
| 4401 |
<label for="ays_attempts_count"> |
| 4402 |
<?php echo __('Attempts count', "poll-maker")?> |
| 4403 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Specify the count of the attempts per user for passing the poll.', "poll-maker")?>"> |
| 4404 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4405 |
</a> |
| 4406 |
</label> |
| 4407 |
</div> |
| 4408 |
<div class="col-sm-9"> |
| 4409 |
<input type="number" min="1" name="ays_attempts_count" class="ays-enable-timerl ays-text-input"> |
| 4410 |
</div> |
| 4411 |
</div> |
| 4412 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 4413 |
<div class="ays-poll-new-upgrade-button-box"> |
| 4414 |
<div> |
| 4415 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 4416 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 4417 |
</div> |
| 4418 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 4419 |
</div> |
| 4420 |
</a> |
| 4421 |
</div> |
| 4422 |
</div> |
| 4423 |
</div> |
| 4424 |
</div> |
| 4425 |
</div><!-- Maximum number of attempts per user --> |
| 4426 |
<hr/> |
| 4427 |
<div class="form-group row ays_toggle_parent"> |
| 4428 |
<div class="col-sm-3"> |
| 4429 |
<label for="ays_enable_logged_users"> |
| 4430 |
<?= __('Only for logged in users', "poll-maker"); ?> |
| 4431 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4432 |
title="<?= __('After enabling this option, only logged-in users will be able to pass the poll.', "poll-maker"); ?>"> |
| 4433 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4434 |
</a> |
| 4435 |
</label> |
| 4436 |
</div> |
| 4437 |
<div class="col-sm-1"> |
| 4438 |
<input type="checkbox" id="ays_enable_logged_users" name="ays_enable_logged_users" class="ays_toggle_checkbox" |
| 4439 |
value="on" <?= $options['enable_logged_users'] == 1 ? 'checked' : ''; ?> /> |
| 4440 |
</div> |
| 4441 |
<div class="if-logged-in col-sm-8 ays_toggle_target" style="<?= $options['enable_logged_users'] == 1 ? '' : 'display:none;'; ?>"> |
| 4442 |
<div class="form-group row"> |
| 4443 |
<div class="col-sm-3"> |
| 4444 |
<label for="ays_logged_in_message"> |
| 4445 |
<?= __('Message', "poll-maker"); ?> |
| 4446 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4447 |
title="<?= __('Write the message for unauthorized users.', "poll-maker"); ?>"> |
| 4448 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4449 |
</a> |
| 4450 |
</label> |
| 4451 |
</div> |
| 4452 |
<div class="col-sm-9"> |
| 4453 |
<?php |
| 4454 |
$content = !empty($options['enable_logged_users_message']) ? stripslashes($options['enable_logged_users_message']) : $default_options['enable_logged_users_message']; |
| 4455 |
$editor_id = 'ays_logged_in_message'; |
| 4456 |
$settings = array( |
| 4457 |
'editor_height' => $poll_wp_editor_height, |
| 4458 |
'textarea_name' => 'ays_enable_logged_users_message', |
| 4459 |
'editor_class' => 'ays-textarea', |
| 4460 |
'media_elements' => false |
| 4461 |
); |
| 4462 |
wp_editor($content, $editor_id, $settings); |
| 4463 |
?> |
| 4464 |
</div> |
| 4465 |
</div> |
| 4466 |
<hr/> |
| 4467 |
<div class="form-group row"> |
| 4468 |
<div class="col-sm-3"> |
| 4469 |
<label for="ays_show_login_form"> |
| 4470 |
<?php echo __('Show Login form', "poll-maker")?> |
| 4471 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Enable to show the login form.', "poll-maker")?>"> |
| 4472 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4473 |
</a> |
| 4474 |
</label> |
| 4475 |
</div> |
| 4476 |
<div class="col-sm-9"> |
| 4477 |
<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' : ''; ?>/> |
| 4478 |
</div> |
| 4479 |
</div> |
| 4480 |
</div> |
| 4481 |
</div> <!-- Only for logged in users --> |
| 4482 |
<hr/> |
| 4483 |
<div class="form-group row ays_toggle_parent"> |
| 4484 |
<div class="col-sm-3"> |
| 4485 |
<label for="ays_enable_restriction_pass"> |
| 4486 |
<?= __('Only for selected user role', "poll-maker"); ?> |
| 4487 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4488 |
title="<?= __('After enabling this option, only the user roles mentioned in the list will be able to pass the poll.', "poll-maker"); ?>"> |
| 4489 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4490 |
</a> |
| 4491 |
</label> |
| 4492 |
</div> |
| 4493 |
<div class="col-sm-1"> |
| 4494 |
<input type="checkbox" id="ays_enable_restriction_pass" name="ays_enable_restriction_pass" class="ays_toggle_checkbox" |
| 4495 |
value="on" <?= (isset($options['enable_restriction_pass']) && |
| 4496 |
$options['enable_restriction_pass'] == 1) ? 'checked' : ''; ?> /> |
| 4497 |
</div> |
| 4498 |
<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;'; ?>"> |
| 4499 |
<div class="form-group row"> |
| 4500 |
<div class="col-sm-3"> |
| 4501 |
<label for="ays_users_roles"> |
| 4502 |
<?= __('User role', "poll-maker"); ?></label> |
| 4503 |
</div> |
| 4504 |
<div class="col-sm-9"> |
| 4505 |
<select name="ays_users_roles[]" id="ays_users_roles" class="ays-select" multiple> |
| 4506 |
<?php |
| 4507 |
foreach ($ays_users_roles as $key => $user_role) { |
| 4508 |
$selected_role = ""; |
| 4509 |
if(is_array($users_role)){ |
| 4510 |
if(in_array($user_role['name'], $users_role)){ |
| 4511 |
$selected_role = 'selected'; |
| 4512 |
}else{ |
| 4513 |
$selected_role = ''; |
| 4514 |
} |
| 4515 |
}else{ |
| 4516 |
if($users_role == $user_role['name']){ |
| 4517 |
$selected_role = 'selected'; |
| 4518 |
}else{ |
| 4519 |
$selected_role = ''; |
| 4520 |
} |
| 4521 |
} |
| 4522 |
echo "<option value='" . $user_role['name'] . "' " . $selected_role . ">" . $user_role['name'] . "</option>"; |
| 4523 |
} |
| 4524 |
?> |
| 4525 |
</select> |
| 4526 |
</div> |
| 4527 |
</div> |
| 4528 |
<hr> |
| 4529 |
<div class="form-group row"> |
| 4530 |
<div class="col-sm-3"> |
| 4531 |
<label for="restriction_pass_message"> |
| 4532 |
<?= __('Message', "poll-maker"); ?> |
| 4533 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4534 |
title="<?= __('Write the message for those who aren’t included in the list.', "poll-maker"); ?>"> |
| 4535 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4536 |
</a> |
| 4537 |
</label> |
| 4538 |
</div> |
| 4539 |
<div class="col-sm-9"> |
| 4540 |
<?php |
| 4541 |
$content = !empty($options['restriction_pass_message']) ? stripslashes($options['restriction_pass_message']) : stripslashes($default_options['restriction_pass_message']); |
| 4542 |
$editor_id = 'restriction_pass_message'; |
| 4543 |
$settings = array( |
| 4544 |
'editor_height' => $poll_wp_editor_height, |
| 4545 |
'textarea_name' => 'restriction_pass_message', |
| 4546 |
'editor_class' => 'ays-textarea', |
| 4547 |
'media_elements' => false |
| 4548 |
); |
| 4549 |
wp_editor($content, $editor_id, $settings); |
| 4550 |
?> |
| 4551 |
</div> |
| 4552 |
</div> |
| 4553 |
</div> |
| 4554 |
</div> <!-- Only for selected user role --> |
| 4555 |
<hr> |
| 4556 |
<div class="form-group row ays_toggle_parent"> |
| 4557 |
<div class="col-sm-3"> |
| 4558 |
<label for="ays_poll_enable_password"> |
| 4559 |
<?php echo __('Password for passing Poll', "poll-maker")?> |
| 4560 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Choose a password for users to pass the poll.' , "poll-maker")?>"> |
| 4561 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4562 |
</a> |
| 4563 |
</label> |
| 4564 |
</div> |
| 4565 |
<div class="col-sm-1"> |
| 4566 |
<input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_poll_enable_password" |
| 4567 |
name="ays_poll_enable_password" value="on" <?php echo ($poll_enable_password) ? "checked" : ""; ?>> |
| 4568 |
</div> |
| 4569 |
<div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo ($poll_enable_password) ? "" : "display: none"; ?>"> |
| 4570 |
<div class="form-group row"> |
| 4571 |
<div class="col-sm-3"> |
| 4572 |
<label for="ays_poll_password"> |
| 4573 |
<?php echo __('Password' , "poll-maker")?> |
| 4574 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.' , "poll-maker")?>"> |
| 4575 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4576 |
</a> |
| 4577 |
</label> |
| 4578 |
</div> |
| 4579 |
<div class="col-sm-9"> |
| 4580 |
<input type="text" name="ays_poll_password" id="ays_poll_password" class="ays-enable-timerl ays-text-input" value="<?php echo $poll_password; ?>"> |
| 4581 |
</div> |
| 4582 |
</div> |
| 4583 |
<hr> |
| 4584 |
<div class="form-group row"> |
| 4585 |
<div class="col-sm-3"> |
| 4586 |
<label for="ays_poll_enable_password_visibility"> |
| 4587 |
<?php echo __('Enable toggle password visibility', "poll-maker"); ?> |
| 4588 |
<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"); ?>"> |
| 4589 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4590 |
</a> |
| 4591 |
</label> |
| 4592 |
</div> |
| 4593 |
<div class="col-sm-9"> |
| 4594 |
<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' : ''; ?>/> |
| 4595 |
</div> |
| 4596 |
</div> |
| 4597 |
<hr> |
| 4598 |
<div class="form-group row"> |
| 4599 |
<div class="col-sm-3"> |
| 4600 |
<label for="ays_poll_password"> |
| 4601 |
<?php echo __('Message', "poll-maker")?> |
| 4602 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Write your password.', "poll-maker")?>"> |
| 4603 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4604 |
</a> |
| 4605 |
</label> |
| 4606 |
</div> |
| 4607 |
|
| 4608 |
<div class="col-sm-9"> |
| 4609 |
<?php |
| 4610 |
$content = $poll_password_message; |
| 4611 |
$editor_id = 'ays-poll-password-message'; |
| 4612 |
$settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_password_message', 'editor_class' => 'ays-textarea', 'media_elements' => false); |
| 4613 |
wp_editor($content, $editor_id, $settings); |
| 4614 |
?> |
| 4615 |
</div> |
| 4616 |
</div> |
| 4617 |
</div> |
| 4618 |
</div><!-- Password for passing Poll PRO Feautre--> |
| 4619 |
<hr> |
| 4620 |
<div class="form-group row"> |
| 4621 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 4622 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 4623 |
</div> |
| 4624 |
<div class="form-group row ays_toggle_parent"> |
| 4625 |
<div class="col-sm-3"> |
| 4626 |
<label for="ays_enable_tackers_count"> |
| 4627 |
<?php echo __('Limitation count of takers', "poll-maker")?> |
| 4628 |
<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")?>"> |
| 4629 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4630 |
</a> |
| 4631 |
</label> |
| 4632 |
</div> |
| 4633 |
<div class="col-sm-1"> |
| 4634 |
<input type="checkbox" class="ays-enable-timer1" |
| 4635 |
name="ays_enable_tackers_count" value="on"> |
| 4636 |
</div> |
| 4637 |
<div class="col-sm-8 ays_toggle_target ays_divider_left"> |
| 4638 |
<div class="form-group row"> |
| 4639 |
<div class="col-sm-3"> |
| 4640 |
<label for="ays_tackers_count"> |
| 4641 |
<?php echo __('Count', "poll-maker")?> |
| 4642 |
<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")?>"> |
| 4643 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4644 |
</a> |
| 4645 |
</label> |
| 4646 |
</div> |
| 4647 |
<div class="col-sm-9"> |
| 4648 |
<input type="number" name="ays_tackers_count" class="ays-enable-timerl ays-text-input" |
| 4649 |
> |
| 4650 |
</div> |
| 4651 |
</div> |
| 4652 |
</div> |
| 4653 |
</div> |
| 4654 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 4655 |
<div class="ays-poll-new-upgrade-button-box"> |
| 4656 |
<div> |
| 4657 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 4658 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 4659 |
</div> |
| 4660 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 4661 |
</div> |
| 4662 |
</a> |
| 4663 |
</div> |
| 4664 |
</div><!-- Limitation count of takers Poll PRO Feautre--> |
| 4665 |
<hr> |
| 4666 |
<div class="form-group row"> |
| 4667 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 4668 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 4669 |
</div> |
| 4670 |
<div class="form-group row ays_toggle_parent"> |
| 4671 |
<div class="col-sm-3"> |
| 4672 |
<label for="ays_enable_vote_limitation"> |
| 4673 |
<?php echo __('Allow to vote once per session', "poll-maker")?> |
| 4674 |
<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")?>"> |
| 4675 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4676 |
</a> |
| 4677 |
</label> |
| 4678 |
</div> |
| 4679 |
<div class="col-sm-1"> |
| 4680 |
<input type="checkbox" class="ays-enable-timer1" |
| 4681 |
name="ays_enable_vote_limitation" value="on" > |
| 4682 |
</div> |
| 4683 |
<div class="col-sm-8 ays_toggle_target ays_divider_left"> |
| 4684 |
<div class="form-group row"> |
| 4685 |
<div class="col-sm-3"> |
| 4686 |
<label for="ays_vote_limitation"> |
| 4687 |
<?php echo __('Session Period', "poll-maker")?> |
| 4688 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" title="<?php echo __('Specify the time for one session.', "poll-maker")?>"> |
| 4689 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4690 |
</a> |
| 4691 |
</label> |
| 4692 |
</div> |
| 4693 |
<div class="col-sm-7"> |
| 4694 |
<input type="text" name="ays_vote_limitation" class="ays-enable-timerl ays-text-input"> |
| 4695 |
|
| 4696 |
</div> |
| 4697 |
<div class="col-sm-2 ays_vote_limitation_time_period_box"> |
| 4698 |
<select name="ays_vote_limitation_time_period" id="ays_vote_limitation_period"> |
| 4699 |
<option>Minute(s) |
| 4700 |
</option> |
| 4701 |
</select> |
| 4702 |
</div> |
| 4703 |
</div> |
| 4704 |
<div class="form-group row d-flex w-100"> |
| 4705 |
<div class="col-sm-3"> |
| 4706 |
<label for=""> |
| 4707 |
<?= __('Message', "poll-maker"); ?> |
| 4708 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" |
| 4709 |
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"); ?>"> |
| 4710 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4711 |
</a> |
| 4712 |
</label> |
| 4713 |
</div> |
| 4714 |
<div class="col-sm-9"> |
| 4715 |
<?php |
| 4716 |
$editor_id = 'vote_limit_message'; |
| 4717 |
$settings = array( |
| 4718 |
'editor_height' => 100, |
| 4719 |
'textarea_name' => 'vote_limit_message', |
| 4720 |
'editor_class' => 'ays-textarea', |
| 4721 |
'media_elements' => false |
| 4722 |
); |
| 4723 |
wp_editor('This feature is available only in PRO version!!!', 'editor_id', $settings); |
| 4724 |
?> |
| 4725 |
</div> |
| 4726 |
</div> |
| 4727 |
</div> |
| 4728 |
</div> |
| 4729 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 4730 |
<div class="ays-poll-new-upgrade-button-box"> |
| 4731 |
<div> |
| 4732 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 4733 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 4734 |
</div> |
| 4735 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 4736 |
</div> |
| 4737 |
</a> |
| 4738 |
</div> |
| 4739 |
</div> <!-- Allow to vote once per session PRO Feautre--> |
| 4740 |
<hr> |
| 4741 |
<div class="form-group row"> |
| 4742 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 4743 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 4744 |
</div> |
| 4745 |
<div class="form-group row ays_toggle_parent"> |
| 4746 |
<div class="col-sm-3"> |
| 4747 |
<label for="enable_limit_by_country"> |
| 4748 |
<?php echo __('Limit by country', "poll-maker")?> |
| 4749 |
<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")?>"> |
| 4750 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4751 |
</a> |
| 4752 |
</label> |
| 4753 |
</div> |
| 4754 |
<div class="col-sm-1"> |
| 4755 |
<input type="checkbox" class="ays-enable-timer1"/> |
| 4756 |
</div> |
| 4757 |
<div class="col-sm-8 ays_toggle_target ays_divider_left"> |
| 4758 |
<select class="ays-text-input ays-text-input-short" style="width: 15vw;"> |
| 4759 |
<option>Andorra</option> |
| 4760 |
</select> |
| 4761 |
</div> |
| 4762 |
</div> |
| 4763 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 4764 |
<div class="ays-poll-new-upgrade-button-box"> |
| 4765 |
<div> |
| 4766 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 4767 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 4768 |
</div> |
| 4769 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 4770 |
</div> |
| 4771 |
</a> |
| 4772 |
</div> |
| 4773 |
</div> <!-- Limit by country PRO Feautre --> |
| 4774 |
<hr> |
| 4775 |
</div> |
| 4776 |
</div> |
| 4777 |
</div> |
| 4778 |
<div id="tab5" class="ays-poll-tab-content <?= $active_tab == 'Userdata' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 4779 |
<div class="ays-poll-accordion-options-main-container"> |
| 4780 |
<div class="ays-poll-accordion-header"> |
| 4781 |
<?php echo $poll_acordion_svg_html; ?> |
| 4782 |
<p class="ays-subtitle"><?= __('User Data Settings', "poll-maker"); ?></p> |
| 4783 |
</div> |
| 4784 |
<hr class="ays-poll-bolder-hr"/> |
| 4785 |
<div class="ays-poll-accordion-body"> |
| 4786 |
<div class="form-group row"> |
| 4787 |
<div class="col-sm-3"> |
| 4788 |
<label> |
| 4789 |
<?= __('Information form title', "poll-maker"); ?> |
| 4790 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4791 |
title="<?= __("Write the title of the Information Form which will be shown at the top of the Form Fields.", "poll-maker"); ?>"> |
| 4792 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4793 |
</a> |
| 4794 |
</label> |
| 4795 |
</div> |
| 4796 |
<div class="col-sm-9 ays_divider_left"> |
| 4797 |
<?php |
| 4798 |
$content = stripslashes($options['info_form_title']); |
| 4799 |
$editor_id = 'ays-poll-info-form-text'; |
| 4800 |
$settings = array( |
| 4801 |
'editor_height' => $poll_wp_editor_height, |
| 4802 |
'textarea_name' => 'ays-poll-info-form-text', |
| 4803 |
'editor_class' => 'ays-textarea', |
| 4804 |
'media_elements' => false |
| 4805 |
); |
| 4806 |
wp_editor($content, $editor_id, $settings); |
| 4807 |
?> |
| 4808 |
</div> |
| 4809 |
</div> |
| 4810 |
<hr> |
| 4811 |
<div class="form-group row ays_toggle_parent"> |
| 4812 |
<div class="col-sm-2"> |
| 4813 |
<label for='ays_poll_info_form'> |
| 4814 |
<?= __('Enable Information Form', "poll-maker"); ?> |
| 4815 |
<a class="ays_help" data-toggle="tooltip" |
| 4816 |
data-placement="top" |
| 4817 |
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"); ?>"> |
| 4818 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4819 |
</a> |
| 4820 |
</label> |
| 4821 |
</div> |
| 4822 |
<div class="col-sm-1"> |
| 4823 |
<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' : ''; ?>> |
| 4824 |
</div> |
| 4825 |
<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' : ''; ?>"> |
| 4826 |
<div class="col-sm-7"> |
| 4827 |
<label for="ays_allow_collecting_logged_in_users_data" style="margin-right:20px;"> |
| 4828 |
<?php echo __('Allow collecting information of logged in users', "poll-maker"); ?> |
| 4829 |
<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")?>"> |
| 4830 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4831 |
</a> |
| 4832 |
</label> |
| 4833 |
<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; ?>> |
| 4834 |
</div> <!-- Allow collecting information of logged in users --> |
| 4835 |
</div> |
| 4836 |
<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;"; ?>"> |
| 4837 |
<div> |
| 4838 |
<label> |
| 4839 |
<?php echo __('Form Fields', "poll-maker"); ?> |
| 4840 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" title="<?= __("Select which fields the user should fill out.", "poll-maker"); ?>"> |
| 4841 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4842 |
</a> |
| 4843 |
</label> |
| 4844 |
<hr> |
| 4845 |
</div> |
| 4846 |
<div> |
| 4847 |
<div class="ays-poll-sel-fields d-flex"> |
| 4848 |
<?php foreach ( $all_fields as $field ): ?> |
| 4849 |
<div class="ays-poll-check-box mr-2"> |
| 4850 |
<input type="checkbox" name="ays-poll-form-fields[]" value="<?= $field['slug']; ?>" id="ays-poll-form-field-<?= $field['slug']; ?>" |
| 4851 |
<?= (array_search($field['slug'], $fields) !== false) ? "checked" : ""; ?>> |
| 4852 |
<label for="ays-poll-form-field-<?= $field['slug']; ?>"> |
| 4853 |
<?= ucfirst($field['name']); ?></label> |
| 4854 |
</div> |
| 4855 |
<?php endforeach; ?> |
| 4856 |
</div> |
| 4857 |
<hr> |
| 4858 |
</div> |
| 4859 |
<div> |
| 4860 |
<label> |
| 4861 |
<?= __('Required Fields', "poll-maker"); ?> |
| 4862 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4863 |
title="<?= __("Select which fields are required.", "poll-maker"); ?>"> |
| 4864 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4865 |
</a> |
| 4866 |
</label> |
| 4867 |
<hr> |
| 4868 |
</div> |
| 4869 |
<div> |
| 4870 |
<div class="ays-poll-sel-fields d-flex"> |
| 4871 |
<?php foreach ( $all_fields as $field ): ?> |
| 4872 |
<div class="ays-poll-check-box mr-2" |
| 4873 |
id="ays-poll-box-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'], |
| 4874 |
$fields) === false) ? "style='display:none'" : ""; ?>> |
| 4875 |
<input type="checkbox" name="ays-poll-form-required-fields[]" |
| 4876 |
value="<?= $field['slug']; ?>" |
| 4877 |
id="ays-poll-form-rfield-<?= $field['slug']; ?>" <?= (array_search($field['slug'], |
| 4878 |
$required_fields) !== false) ? "checked" : ""; ?>> |
| 4879 |
<label for="ays-poll-form-rfield-<?= $field['slug']; ?>"> |
| 4880 |
<?= ucfirst($field['name']); ?></label> |
| 4881 |
</div> |
| 4882 |
<?php endforeach; ?> |
| 4883 |
</div> |
| 4884 |
</div> |
| 4885 |
</div> |
| 4886 |
<hr> |
| 4887 |
</div> |
| 4888 |
<hr> |
| 4889 |
<div class="form-group row"> |
| 4890 |
<div class="col-sm-3"> |
| 4891 |
<label for="ays_poll_autofill_user_data"> |
| 4892 |
<?php echo __('Autofill logged-in user data', "poll-maker"); ?> |
| 4893 |
<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"); ?>"> |
| 4894 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4895 |
</a> |
| 4896 |
</label> |
| 4897 |
</div> |
| 4898 |
<div class="col-sm-9"> |
| 4899 |
<div class="information_form_settings"> |
| 4900 |
<input type="checkbox" id="ays_poll_autofill_user_data" name="ays_poll_autofill_user_data" value="on" <?php echo $autofill_user_data ? "checked" : ""; ?>> |
| 4901 |
</div> |
| 4902 |
</div> |
| 4903 |
</div> |
| 4904 |
<hr> |
| 4905 |
<div class="form-group row"> |
| 4906 |
<div class="col-sm-3"> |
| 4907 |
<label for="ays_poll_display_fields_labels"> |
| 4908 |
<?php echo __('Display form fields with labels', "poll-maker"); ?> |
| 4909 |
<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"); ?>"> |
| 4910 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4911 |
</a> |
| 4912 |
</label> |
| 4913 |
</div> |
| 4914 |
<div class="col-sm-9"> |
| 4915 |
<div class="information_form_settings"> |
| 4916 |
<input type="checkbox" id="ays_poll_display_fields_labels" name="ays_poll_display_fields_labels" value="on" <?php echo $display_fields_labels ? "checked" : ""; ?>> |
| 4917 |
</div> |
| 4918 |
</div> |
| 4919 |
</div> |
| 4920 |
<hr> |
| 4921 |
<div class="form-group row"> |
| 4922 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 4923 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 4924 |
</div> |
| 4925 |
<div class="form-group row"> |
| 4926 |
<div class="col-sm-3"> |
| 4927 |
<label> |
| 4928 |
<?= __('Add custom fields', "poll-maker"); ?> |
| 4929 |
<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"); ?>"> |
| 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 |
<blockquote> |
| 4936 |
<?= __("For creating custom fields click ", "poll-maker"); ?> |
| 4937 |
<a href="?page=<?= $this->plugin_name; ?>-poll-attributes"><?= __("here", "poll-maker"); ?></a> |
| 4938 |
</blockquote> |
| 4939 |
</div> |
| 4940 |
</div> |
| 4941 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 4942 |
<div class="ays-poll-new-upgrade-button-box"> |
| 4943 |
<div> |
| 4944 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 4945 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 4946 |
</div> |
| 4947 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 4948 |
</div> |
| 4949 |
</a> |
| 4950 |
</div> |
| 4951 |
</div> |
| 4952 |
<hr> |
| 4953 |
</div> |
| 4954 |
</div> |
| 4955 |
</div> |
| 4956 |
<div id="tab6" class="ays-poll-tab-content <?= $active_tab == 'Email' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 4957 |
<div class="ays-poll-accordion-options-main-container"> |
| 4958 |
<div class="ays-poll-accordion-header"> |
| 4959 |
<?php echo $poll_acordion_svg_html; ?> |
| 4960 |
<p class="ays-subtitle"><?= __('Email settings', "poll-maker"); ?></p> |
| 4961 |
</div> |
| 4962 |
<hr class="ays-poll-bolder-hr"/> |
| 4963 |
<div class="ays-poll-accordion-body"> |
| 4964 |
<div class="form-group row ays_toggle_parent"> |
| 4965 |
<div class="col-sm-3"> |
| 4966 |
<label for="ays_notify_by_email_on"> |
| 4967 |
<?= __('Results notification by email', "poll-maker"); ?> |
| 4968 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4969 |
title="<?= __('If the option is enabled, the admin(or your provided email) will receive an email notification about votes at each time.', "poll-maker"); ?>"> |
| 4970 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4971 |
</a> |
| 4972 |
</label> |
| 4973 |
</div> |
| 4974 |
<div class="col-sm-1"> |
| 4975 |
<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' : ''; ?> /> |
| 4976 |
</div> |
| 4977 |
<div class="col-sm-8 ays_toggle_target" style="<?php echo ($notify_email_on) ? '' : 'display: none;'; ?>"> |
| 4978 |
<div class="row ays_divider_left"> |
| 4979 |
<div class="col-sm-3"> |
| 4980 |
<label for="ays_notify_email"> |
| 4981 |
<?php echo __('Email address', "poll-maker"); ?> |
| 4982 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 4983 |
title="<?= __('If you want to set another email, enter it here. Leave it blank for an admin email.', "poll-maker"); ?>"> |
| 4984 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 4985 |
</a> |
| 4986 |
</label> |
| 4987 |
</div> |
| 4988 |
<div class="col-sm-9"> |
| 4989 |
<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"> |
| 4990 |
</div> |
| 4991 |
</div> |
| 4992 |
</div> |
| 4993 |
</div> |
| 4994 |
<hr> |
| 4995 |
<div class="form-group row"> |
| 4996 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 4997 |
<div class="pro_features pro_features_popup"> |
| 4998 |
<div class="pro-features-popup-conteiner"> |
| 4999 |
<div class="pro-features-popup-title"> |
| 5000 |
<?php echo __("Send Mail to User", "poll-maker"); ?> |
| 5001 |
</div> |
| 5002 |
<div class="pro-features-popup-content" data-link="https://youtu.be/qdbcla0K8nE"> |
| 5003 |
<p> |
| 5004 |
<?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"); ?> |
| 5005 |
</p> |
| 5006 |
<p> |
| 5007 |
<?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"); ?> |
| 5008 |
</p> |
| 5009 |
</div> |
| 5010 |
<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"> |
| 5011 |
<?php echo __("Upgrade PRO NOW", "poll-maker"); ?> |
| 5012 |
</div> |
| 5013 |
</div> |
| 5014 |
</div> |
| 5015 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5016 |
</div> |
| 5017 |
<div class="form-group row" > |
| 5018 |
<div class="col-sm-3"> |
| 5019 |
<label for="ays_enable_mail_user"> |
| 5020 |
<?= __('Send Mail to User', "poll-maker"); ?> |
| 5021 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top" |
| 5022 |
title="<?= __('Send the message to the emails of the users after the submission of the poll.', "poll-maker"); ?>"> |
| 5023 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5024 |
</a> |
| 5025 |
</label> |
| 5026 |
</div> |
| 5027 |
<div class="col-sm-1"> |
| 5028 |
<input type="checkbox" name="ays_enable_mail_user" value="on" /> |
| 5029 |
</div> |
| 5030 |
<div class="col-sm-8 if-enable-email_note"> |
| 5031 |
|
| 5032 |
</div> |
| 5033 |
</div> |
| 5034 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5035 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5036 |
<div> |
| 5037 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5038 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5039 |
</div> |
| 5040 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5041 |
</div> |
| 5042 |
</a> |
| 5043 |
<div class="ays-poll-new-watch-video-button-box"> |
| 5044 |
<div> |
| 5045 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>"> |
| 5046 |
<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"> |
| 5047 |
</div> |
| 5048 |
<div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div> |
| 5049 |
</div> |
| 5050 |
</div> |
| 5051 |
</div> |
| 5052 |
<hr> |
| 5053 |
<div class="form-group row"> |
| 5054 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 5055 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5056 |
</div> |
| 5057 |
<div class="form-group row"> |
| 5058 |
<div class="col-sm-4"> |
| 5059 |
<label> |
| 5060 |
<?php echo __('Email configuration', "poll-maker")?> |
| 5061 |
<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"); ?>"> |
| 5062 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5063 |
</a> |
| 5064 |
</label> |
| 5065 |
</div> |
| 5066 |
<div class="col-sm-8 ays_divider_left"> |
| 5067 |
<div class="form-group row"> |
| 5068 |
<div class="col-sm-3"> |
| 5069 |
<label for="ays_poll_email_configuration_from_email"> |
| 5070 |
<?php echo __('From email', "poll-maker")?> |
| 5071 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php |
| 5072 |
/* translators: 1: opening em tag, 2: closing em tag */ |
| 5073 |
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"), |
| 5074 |
'<em>', |
| 5075 |
'</em>' |
| 5076 |
) ); |
| 5077 |
?>"> |
| 5078 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5079 |
</a> |
| 5080 |
</label> |
| 5081 |
</div> |
| 5082 |
<div class="col-sm-9"> |
| 5083 |
<input type="text" class="ays-text-input" /> |
| 5084 |
</div> |
| 5085 |
</div> <!-- From email --> |
| 5086 |
<hr/> |
| 5087 |
<div class="form-group row"> |
| 5088 |
<div class="col-sm-3"> |
| 5089 |
<label for="ays_poll_email_configuration_from_name"> |
| 5090 |
<?php echo __('From name', "poll-maker")?> |
| 5091 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-html="true" title="<?php |
| 5092 |
/* translators: 1: opening em tag, 2: closing em tag */ |
| 5093 |
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"), |
| 5094 |
'<em>', |
| 5095 |
'</em>' |
| 5096 |
) ); |
| 5097 |
?>"> |
| 5098 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5099 |
</a> |
| 5100 |
</label> |
| 5101 |
</div> |
| 5102 |
<div class="col-sm-9"> |
| 5103 |
<input type="text" class="ays-text-input" > |
| 5104 |
</div> |
| 5105 |
</div><!-- From name --> |
| 5106 |
<hr/> |
| 5107 |
<div class="form-group row"> |
| 5108 |
<div class="col-sm-3"> |
| 5109 |
<label for="ays_poll_email_configuration_from_subject"> |
| 5110 |
<?php echo __('Subject', "poll-maker")?> |
| 5111 |
<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"); ?>"> |
| 5112 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5113 |
</a> |
| 5114 |
</label> |
| 5115 |
</div> |
| 5116 |
<div class="col-sm-9"> |
| 5117 |
<input type="text" class="ays-text-input"> |
| 5118 |
</div> |
| 5119 |
</div> <!-- Subject --> |
| 5120 |
<hr/> |
| 5121 |
<div class="form-group row"> |
| 5122 |
<div class="col-sm-3"> |
| 5123 |
<label for="ays_poll_email_configuration_replyto_email"> |
| 5124 |
<?php echo __('Reply to email', "poll-maker")?> |
| 5125 |
<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"); ?>"> |
| 5126 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5127 |
</a> |
| 5128 |
</label> |
| 5129 |
</div> |
| 5130 |
<div class="col-sm-9"> |
| 5131 |
<input type="text" class="ays-text-input"> |
| 5132 |
</div> |
| 5133 |
</div> <!-- Reply to email --> |
| 5134 |
<hr/> |
| 5135 |
<div class="form-group row"> |
| 5136 |
<div class="col-sm-3"> |
| 5137 |
<label for="ays_poll_email_configuration_replyto_name"> |
| 5138 |
<?php echo __('Reply to name', "poll-maker")?> |
| 5139 |
<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"); ?>"> |
| 5140 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5141 |
</a> |
| 5142 |
</label> |
| 5143 |
</div> |
| 5144 |
<div class="col-sm-9"> |
| 5145 |
<input type="text" class="ays-text-input"> |
| 5146 |
</div> |
| 5147 |
</div> <!-- Reply to name --> |
| 5148 |
</div> |
| 5149 |
</div> <!-- Email Configuration --> |
| 5150 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5151 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5152 |
<div> |
| 5153 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5154 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5155 |
</div> |
| 5156 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5157 |
</div> |
| 5158 |
</a> |
| 5159 |
<div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex"> |
| 5160 |
<div class="ays-poll-center-big-main-button-box"> |
| 5161 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5162 |
<div class="ays-poll-center-new-big-upgrade-button"> |
| 5163 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide"> |
| 5164 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5165 |
<?php echo __("Upgrade", "poll-maker"); ?> |
| 5166 |
</div> |
| 5167 |
</a> |
| 5168 |
</div> |
| 5169 |
</div> |
| 5170 |
</div> |
| 5171 |
</div> |
| 5172 |
<hr> |
| 5173 |
</div> |
| 5174 |
</div> |
| 5175 |
</div> |
| 5176 |
<div id="tab7" class="ays-poll-tab-content <?= $active_tab == 'Integrations' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 5177 |
<div class="ays-poll-accordion-options-main-container"> |
| 5178 |
<div class="ays-poll-accordion-header"> |
| 5179 |
<?php echo $poll_acordion_svg_html; ?> |
| 5180 |
<p class="ays-subtitle"><?= __('Integrations settings', "poll-maker"); ?></p> |
| 5181 |
</div> |
| 5182 |
<hr class="ays-poll-bolder-hr"/> |
| 5183 |
<div class="ays-poll-accordion-body"> |
| 5184 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5185 |
<legend> |
| 5186 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mailchimp_logo.png" alt=""> |
| 5187 |
<h5><?php echo __('MailChimp Settings', "poll-maker")?></h5> |
| 5188 |
</legend> |
| 5189 |
<?php |
| 5190 |
if(count($mailchimp) > 0): |
| 5191 |
?> |
| 5192 |
<?php |
| 5193 |
if($mailchimp_username == "" || $mailchimp_api_key == ""): |
| 5194 |
?> |
| 5195 |
<blockquote class="error_message"> |
| 5196 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5197 |
<?php echo ( |
| 5198 |
/* translators: anchor tag */ |
| 5199 |
sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"), |
| 5200 |
"<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>" |
| 5201 |
) |
| 5202 |
); |
| 5203 |
?> |
| 5204 |
</blockquote> |
| 5205 |
<?php |
| 5206 |
else: |
| 5207 |
?> |
| 5208 |
<div class="form-group row"> |
| 5209 |
<div class="col-sm-4"> |
| 5210 |
<label for="ays_enable_mailchimp"> |
| 5211 |
<?php echo __('Enable MailChimp', "poll-maker")?> |
| 5212 |
</label> |
| 5213 |
</div> |
| 5214 |
<div class="col-sm-1"> |
| 5215 |
<input type="checkbox" class="ays-enable-timer1" id="ays_enable_mailchimp" |
| 5216 |
name="ays_enable_mailchimp" |
| 5217 |
value="on" |
| 5218 |
<?php |
| 5219 |
if($mailchimp_username == "" || $mailchimp_api_key == ""){ |
| 5220 |
echo "disabled"; |
| 5221 |
}else{ |
| 5222 |
echo ($enable_mailchimp == 'on') ? 'checked' : ''; |
| 5223 |
} |
| 5224 |
?>/> |
| 5225 |
</div> |
| 5226 |
</div> |
| 5227 |
<hr> |
| 5228 |
<div class="form-group row"> |
| 5229 |
<div class="col-sm-4"> |
| 5230 |
<label for="ays_mailchimp_list"> |
| 5231 |
<?php echo __('MailChimp list', "poll-maker")?> |
| 5232 |
</label> |
| 5233 |
</div> |
| 5234 |
<div class="col-sm-8"> |
| 5235 |
<?php if(is_array($mailchimp_select)): ?> |
| 5236 |
<select name="ays_mailchimp_list" id="ays_mailchimp_list" |
| 5237 |
<?php |
| 5238 |
if($mailchimp_username == "" || $mailchimp_api_key == ""){ |
| 5239 |
echo 'disabled'; |
| 5240 |
} |
| 5241 |
?>> |
| 5242 |
<option value="" disabled selected>Select list</option> |
| 5243 |
<?php foreach($mailchimp_select as $mlist): ?> |
| 5244 |
<option <?php echo ($mailchimp_list == $mlist['listId']) ? 'selected' : ''; ?> |
| 5245 |
value="<?php echo $mlist['listId']; ?>"><?php echo $mlist['listName']; ?></option> |
| 5246 |
<?php endforeach; ?> |
| 5247 |
</select> |
| 5248 |
<?php else: ?> |
| 5249 |
<span><?php echo $mailchimp_select; ?></span> |
| 5250 |
<?php endif; ?> |
| 5251 |
</div> |
| 5252 |
</div> |
| 5253 |
<?php |
| 5254 |
endif; |
| 5255 |
?> |
| 5256 |
<?php |
| 5257 |
else: |
| 5258 |
?> |
| 5259 |
<blockquote class="error_message"> |
| 5260 |
<?php echo ( |
| 5261 |
/* translators: anchor tag */ |
| 5262 |
sprintf( __("For enabling this option, please go to %s page and fill all options.", "poll-maker"), |
| 5263 |
"<a style='color:blue;text-decoration:underline;font-size:20px;' href='?page=$this->plugin_name-settings&ays_poll_tab=tab2'>". __("this", "poll-maker")."</a>" |
| 5264 |
) |
| 5265 |
); |
| 5266 |
?> |
| 5267 |
</blockquote> |
| 5268 |
<?php |
| 5269 |
endif; |
| 5270 |
?> |
| 5271 |
</fieldset><!-- MailChimp Settings --> |
| 5272 |
<hr/> |
| 5273 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5274 |
<legend> |
| 5275 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/campaignmonitor_logo.png" alt=""> |
| 5276 |
<h5><?php echo __('Campaign Monitor Settings', "poll-maker") ?></h5> |
| 5277 |
</legend> |
| 5278 |
<div class="form-group row" style="margin: 0px;"> |
| 5279 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5280 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5281 |
</div> |
| 5282 |
<div class="form-group row"> |
| 5283 |
<div class="col-sm-4"> |
| 5284 |
<label for="ays_enable_monitor"> |
| 5285 |
<?php echo __('Enable Campaign Monitor', "poll-maker") ?> |
| 5286 |
</label> |
| 5287 |
</div> |
| 5288 |
<div class="col-sm-8"> |
| 5289 |
<input type="checkbox" class="ays-enable-timer1" name="ays_enable_monitor" value="on"/> |
| 5290 |
</div> |
| 5291 |
</div> |
| 5292 |
<hr> |
| 5293 |
<div class="form-group row"> |
| 5294 |
<div class="col-sm-4"> |
| 5295 |
<label for="ays_monitor_list"> |
| 5296 |
<?php echo __('Campaign Monitor list', "poll-maker") ?> |
| 5297 |
</label> |
| 5298 |
</div> |
| 5299 |
<div class="col-sm-8"> |
| 5300 |
<select name="ays_monitor_list" id="ays_monitor_list"> |
| 5301 |
<option value="" disabled selected><?= __("Select List", "poll-maker") ?></option> |
| 5302 |
</select> |
| 5303 |
</div> |
| 5304 |
</div> |
| 5305 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5306 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5307 |
<div> |
| 5308 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5309 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5310 |
</div> |
| 5311 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5312 |
</div> |
| 5313 |
</a> |
| 5314 |
</div> |
| 5315 |
</div> |
| 5316 |
</fieldset><!-- Campaign Monitor Settings PRO Feature --> |
| 5317 |
<hr/> |
| 5318 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5319 |
<legend> |
| 5320 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/zapier_logo.png" alt=""> |
| 5321 |
<h5><?php echo __('Zapier Integration Settings', "poll-maker") ?></h5> |
| 5322 |
</legend> |
| 5323 |
<div class="form-group row" style="margin: 0px;"> |
| 5324 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5325 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5326 |
</div> |
| 5327 |
<div class="form-group row"> |
| 5328 |
<div class="col-sm-4"> |
| 5329 |
<label for="ays_enable_zapier"> |
| 5330 |
<?php echo __('Enable Zapier Integration', "poll-maker") ?> |
| 5331 |
</label> |
| 5332 |
</div> |
| 5333 |
<div class="col-sm-1"> |
| 5334 |
<input type="checkbox" class="ays-enable-timer1" name="ays_enable_zapier" value="on"/> |
| 5335 |
</div> |
| 5336 |
<div class="col-sm-3"> |
| 5337 |
<button type="button" |
| 5338 |
id="testZapier" |
| 5339 |
class="btn btn-outline-secondary"> |
| 5340 |
<?= __("Send test data", "poll-maker") ?> |
| 5341 |
</button> |
| 5342 |
<a class="ays_help" data-toggle="tooltip" style="font-size: 16px;" |
| 5343 |
title="<?= __('We will send you a test data, and you can catch it in your ZAP for configure it.', "poll-maker") ?>"> |
| 5344 |
<i class="ays_fa ays_fa_info_circle"></i> |
| 5345 |
</a> |
| 5346 |
</div> |
| 5347 |
</div> |
| 5348 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5349 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5350 |
<div> |
| 5351 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5352 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5353 |
</div> |
| 5354 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5355 |
</div> |
| 5356 |
</a> |
| 5357 |
</div> |
| 5358 |
</div> |
| 5359 |
</fieldset> <!-- Zapier Integration Settings PRO Feature --> |
| 5360 |
<hr/> |
| 5361 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5362 |
<legend> |
| 5363 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/activecampaign_logo.png" alt=""> |
| 5364 |
<h5><?php echo __('Active Campaign Settings', "poll-maker") ?></h5> |
| 5365 |
</legend> |
| 5366 |
<div class="form-group row" style="margin: 0px;"> |
| 5367 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5368 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5369 |
</div> |
| 5370 |
<div class="form-group row"> |
| 5371 |
<div class="col-sm-4"> |
| 5372 |
<label for="ays_enable_active_camp"> |
| 5373 |
<?php echo __('Enable ActiveCampaign', "poll-maker") ?> |
| 5374 |
</label> |
| 5375 |
</div> |
| 5376 |
<div class="col-sm-1"> |
| 5377 |
<input type="checkbox" class="ays-enable-timer1"name="ays_enable_active_camp" value="on"/> |
| 5378 |
</div> |
| 5379 |
</div> |
| 5380 |
<hr> |
| 5381 |
<div class="form-group row"> |
| 5382 |
<div class="col-sm-4"> |
| 5383 |
<label> |
| 5384 |
<?php echo __('ActiveCampaign list', "poll-maker") ?> |
| 5385 |
</label> |
| 5386 |
</div> |
| 5387 |
<div class="col-sm-8"> |
| 5388 |
<select name="ays_active_camp_list" id="ays_active_camp_list"> |
| 5389 |
<option value="" disabled |
| 5390 |
selected><?= __("Select List", "poll-maker") ?></option> |
| 5391 |
<option value=""><?= __("Just create contact", "poll-maker") ?></option> |
| 5392 |
</select> |
| 5393 |
</div> |
| 5394 |
</div> |
| 5395 |
<hr> |
| 5396 |
<div class="form-group row"> |
| 5397 |
<div class="col-sm-4"> |
| 5398 |
<label> |
| 5399 |
<?php echo __('ActiveCampaign automation', "poll-maker") ?> |
| 5400 |
</label> |
| 5401 |
</div> |
| 5402 |
<div class="col-sm-8"> |
| 5403 |
<select name="ays_active_camp_automation" id="ays_active_camp_automation"> |
| 5404 |
<option value="" disabled |
| 5405 |
selected><?= __("Select List", "poll-maker") ?></option> |
| 5406 |
<option value=""><?= __("Just create contact", "poll-maker") ?></option> |
| 5407 |
</select> |
| 5408 |
</div> |
| 5409 |
</div> |
| 5410 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5411 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5412 |
<div> |
| 5413 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5414 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5415 |
</div> |
| 5416 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5417 |
</div> |
| 5418 |
</a> |
| 5419 |
</div> |
| 5420 |
</div> |
| 5421 |
</fieldset><!-- Active Campaign Settings PRO Feature --> |
| 5422 |
<hr/> |
| 5423 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5424 |
<legend> |
| 5425 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/slack_logo.png" alt=""> |
| 5426 |
<h5><?php echo __('Slack Settings', "poll-maker") ?></h5> |
| 5427 |
</legend> |
| 5428 |
<div class="form-group row" style="margin: 0px;"> |
| 5429 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5430 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5431 |
</div> |
| 5432 |
<div class="form-group row"> |
| 5433 |
<div class="col-sm-4"> |
| 5434 |
<label for="ays_enable_slack"> |
| 5435 |
<?php echo __('Enable Slack integration', "poll-maker") ?> |
| 5436 |
</label> |
| 5437 |
</div> |
| 5438 |
<div class="col-sm-1"> |
| 5439 |
<input type="checkbox" class="ays-enable-timer1"name="ays_enable_slack" value="on"/> |
| 5440 |
</div> |
| 5441 |
</div> |
| 5442 |
<hr> |
| 5443 |
<div class="form-group row"> |
| 5444 |
<div class="col-sm-4"> |
| 5445 |
<label> |
| 5446 |
<?php echo __('Slack conversation', "poll-maker") ?> |
| 5447 |
</label> |
| 5448 |
</div> |
| 5449 |
<div class="col-sm-8"> |
| 5450 |
<select id="ays_slack_conversation"> |
| 5451 |
<option value="" disabled |
| 5452 |
selected><?= __("Select Channel", "poll-maker") ?></option> |
| 5453 |
</select> |
| 5454 |
</div> |
| 5455 |
</div> |
| 5456 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5457 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5458 |
<div> |
| 5459 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5460 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5461 |
</div> |
| 5462 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5463 |
</div> |
| 5464 |
</a> |
| 5465 |
</div> |
| 5466 |
</div> |
| 5467 |
</fieldset> <!-- Slack Settings PRO Feature --> |
| 5468 |
<hr> |
| 5469 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5470 |
<legend> |
| 5471 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/sheets_logo.png" alt=""> |
| 5472 |
<h5><?php echo __('Google Sheet Settings', "poll-maker") ?></h5> |
| 5473 |
</legend> |
| 5474 |
<div class="form-group row" style="margin: 0px;"> |
| 5475 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5476 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5477 |
</div> |
| 5478 |
<div class="form-group row"> |
| 5479 |
<div class="col-sm-4"> |
| 5480 |
<label for="ays_poll_enable_google"> |
| 5481 |
<?php echo __('Enable Google integration', "poll-maker") ?> |
| 5482 |
</label> |
| 5483 |
</div> |
| 5484 |
<div class="col-sm-1"> |
| 5485 |
<input type="checkbox" class="ays-enable-timer1" |
| 5486 |
value="on"> |
| 5487 |
</div> |
| 5488 |
</div> |
| 5489 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5490 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5491 |
<div> |
| 5492 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5493 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5494 |
</div> |
| 5495 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5496 |
</div> |
| 5497 |
</a> |
| 5498 |
</div> |
| 5499 |
</div> |
| 5500 |
</fieldset> <!-- Google Sheet Settings PRO Feature --> |
| 5501 |
<hr> |
| 5502 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5503 |
<legend> |
| 5504 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mad-mimi-logo-min.png" alt=""> |
| 5505 |
<h5><?php echo __('Mad Mimi', "poll-maker") ?></h5> |
| 5506 |
</legend> |
| 5507 |
<div class="form-group row" style="margin: 0px;"> |
| 5508 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5509 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5510 |
</div> |
| 5511 |
<hr/> |
| 5512 |
<div class="form-group row"> |
| 5513 |
<div class="col-sm-4"> |
| 5514 |
<label for="ays_poll_enable_mad_mimi"> |
| 5515 |
<?php echo __('Enable Mad Mimi', "poll-maker") ?> |
| 5516 |
</label> |
| 5517 |
</div> |
| 5518 |
<div class="col-sm-1"> |
| 5519 |
<input type="checkbox" class="ays-enable-timer1"> |
| 5520 |
</div> |
| 5521 |
</div> |
| 5522 |
<hr> |
| 5523 |
<div class="form-group row"> |
| 5524 |
<div class="col-sm-4"> |
| 5525 |
<label> |
| 5526 |
<?php echo __('Select List', "poll-maker") ?> |
| 5527 |
</label> |
| 5528 |
</div> |
| 5529 |
<div class="col-sm-8"> |
| 5530 |
<?php |
| 5531 |
$mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>"; |
| 5532 |
$mad_mimi_select .= "<option value=''>Select list</option>"; |
| 5533 |
$mad_mimi_select .= "</select>"; |
| 5534 |
echo $mad_mimi_select; |
| 5535 |
|
| 5536 |
?> |
| 5537 |
</div> |
| 5538 |
</div> |
| 5539 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5540 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5541 |
<div> |
| 5542 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5543 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5544 |
</div> |
| 5545 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5546 |
</div> |
| 5547 |
</a> |
| 5548 |
</div> |
| 5549 |
</div> |
| 5550 |
</fieldset> <!-- Mad Mimi --> |
| 5551 |
<hr> |
| 5552 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5553 |
<legend> |
| 5554 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/get_response.png" alt=""> |
| 5555 |
<h5><?php echo __('GetResponse Settings', "poll-maker") ?></h5> |
| 5556 |
</legend> |
| 5557 |
<div class="form-group row" style="margin: 0px;"> |
| 5558 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5559 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5560 |
</div> |
| 5561 |
<div class="form-group row"> |
| 5562 |
<div class="col-sm-4"> |
| 5563 |
<label for="ays_poll_enable_getResponse"> |
| 5564 |
<?php echo __('Enable GetResponse', "poll-maker") ?> |
| 5565 |
</label> |
| 5566 |
</div> |
| 5567 |
<div class="col-sm-8"> |
| 5568 |
<input type="checkbox" |
| 5569 |
class="ays-enable-timer1"> |
| 5570 |
</div> |
| 5571 |
</div> |
| 5572 |
<hr> |
| 5573 |
<div class="form-group row"> |
| 5574 |
<div class="col-sm-4"> |
| 5575 |
<label> |
| 5576 |
<?php echo __('GetResponse List', "poll-maker") ?> |
| 5577 |
</label> |
| 5578 |
</div> |
| 5579 |
<div class="col-sm-8"> |
| 5580 |
<?php |
| 5581 |
$mad_mimi_select = "<select id='ays_poll_mad_mimi_list'>"; |
| 5582 |
$mad_mimi_select .= "<option value=''>Select list</option>"; |
| 5583 |
$mad_mimi_select .= "</select>"; |
| 5584 |
echo $mad_mimi_select; |
| 5585 |
|
| 5586 |
?> |
| 5587 |
</div> |
| 5588 |
</div> |
| 5589 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5590 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5591 |
<div> |
| 5592 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5593 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5594 |
</div> |
| 5595 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5596 |
</div> |
| 5597 |
</a> |
| 5598 |
</div> |
| 5599 |
</div> |
| 5600 |
</fieldset> <!-- GetResponse Settings --> |
| 5601 |
<hr> |
| 5602 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5603 |
<legend> |
| 5604 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/convertkit_logo.png" alt=""> |
| 5605 |
<h5><?php echo __('ConvertKit Settings', "poll-maker")?></h5> |
| 5606 |
</legend> |
| 5607 |
<div class="form-group row" style="margin: 0px;"> |
| 5608 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5609 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5610 |
</div> |
| 5611 |
<div class="form-group row"> |
| 5612 |
<div class="col-sm-4"> |
| 5613 |
<label for="ays_poll_enable_convertkit"> |
| 5614 |
<?php echo __('Enable ConvertKit', "poll-maker")?> |
| 5615 |
</label> |
| 5616 |
</div> |
| 5617 |
<div class="col-sm-1"> |
| 5618 |
<input type="checkbox" class="ays-enable-timer1"/> |
| 5619 |
</div> |
| 5620 |
</div> |
| 5621 |
<hr> |
| 5622 |
<div class="form-group row"> |
| 5623 |
<div class="col-sm-4"> |
| 5624 |
<label> |
| 5625 |
<?php echo __('ConvertKit list', "poll-maker")?> |
| 5626 |
</label> |
| 5627 |
</div> |
| 5628 |
<div class="col-sm-8"> |
| 5629 |
<select id="ays_poll_convertKit_list"> |
| 5630 |
<option value="" disabled selected>Select list</option> |
| 5631 |
</select> |
| 5632 |
</div> |
| 5633 |
</div> |
| 5634 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5635 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5636 |
<div> |
| 5637 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5638 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5639 |
</div> |
| 5640 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5641 |
</div> |
| 5642 |
</a> |
| 5643 |
</div> |
| 5644 |
</div> |
| 5645 |
</fieldset> <!-- ConvertKit Settings --> |
| 5646 |
<hr/> |
| 5647 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5648 |
<legend> |
| 5649 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/klaviyo-logo.png" alt=""> |
| 5650 |
<h5><?php echo __('Klaviyo', "poll-maker") ?></h5> |
| 5651 |
</legend> |
| 5652 |
<div class="form-group row" style="margin: 0px;"> |
| 5653 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5654 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5655 |
</div> |
| 5656 |
<div class="form-group row"> |
| 5657 |
<div class="col-sm-4"> |
| 5658 |
<label for="ays_poll_enable_klaviyo"><?php echo __('Enable Klaviyo', "poll-maker"); ?></label> |
| 5659 |
</div> |
| 5660 |
<div class="col-sm-1"> |
| 5661 |
<input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_klaviyo" value="on" checked disabled > |
| 5662 |
</div> |
| 5663 |
</div> |
| 5664 |
<hr> |
| 5665 |
<div class="form-group row"> |
| 5666 |
<div class="col-sm-4"> |
| 5667 |
<label for="ays_poll_klaviyo_list"><?php echo __('Klaviyo list',"poll-maker") ?></label> |
| 5668 |
</div> |
| 5669 |
<div class="col-sm-8"> |
| 5670 |
<select name="ays_poll_klaviyo_list" id="ays_poll_klaviyo_list"> |
| 5671 |
<option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option> |
| 5672 |
</select> |
| 5673 |
</div> |
| 5674 |
</div> |
| 5675 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5676 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5677 |
<div> |
| 5678 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5679 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5680 |
</div> |
| 5681 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5682 |
</div> |
| 5683 |
</a> |
| 5684 |
</div> |
| 5685 |
</div> |
| 5686 |
</fieldset> <!-- Klaviyo --> |
| 5687 |
<hr> |
| 5688 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5689 |
<legend> |
| 5690 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/aweber-logo.png" alt=""> |
| 5691 |
<h5><?php echo __('Aweber', "poll-maker") ?></h5> |
| 5692 |
</legend> |
| 5693 |
<div class="form-group row" style="margin: 0px;"> |
| 5694 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5695 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5696 |
</div> |
| 5697 |
<div class="form-group row"> |
| 5698 |
<div class="col-sm-4"> |
| 5699 |
<label for="ays_poll_enable_aweber"><?php echo __('Enable Aweber', "poll-maker") ?></label> |
| 5700 |
</div> |
| 5701 |
<div class="col-sm-1"> |
| 5702 |
<input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_aweber" name="ays_poll_enable_aweber" value="on" checked disabled /> |
| 5703 |
</div> |
| 5704 |
</div> |
| 5705 |
<hr> |
| 5706 |
<div class="form-group row"> |
| 5707 |
<div class="col-sm-4"> |
| 5708 |
<label for="ays_poll_aweber_list_id"><?php echo __('Aweber Lists', "poll-maker") ?></label> |
| 5709 |
</div> |
| 5710 |
<div class="col-sm-8"> |
| 5711 |
<select name='ays_poll_aweber_list_id' id='ays_poll_aweber_list_id'> |
| 5712 |
<option value='' disabled selected><?php echo __( "Select list", "poll-maker" ) ?></option> |
| 5713 |
</select> |
| 5714 |
</div> |
| 5715 |
</div> |
| 5716 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5717 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5718 |
<div> |
| 5719 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5720 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5721 |
</div> |
| 5722 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5723 |
</div> |
| 5724 |
</a> |
| 5725 |
</div> |
| 5726 |
</div> |
| 5727 |
</fieldset> <!-- Aweber --> |
| 5728 |
<hr> |
| 5729 |
<fieldset class="ays_poll_settings_integration_container"> |
| 5730 |
<legend> |
| 5731 |
<img class="ays_integration_logo" src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/integrations/mail_poet.png" alt=""> |
| 5732 |
<h5><?php echo __('MailPoet', "poll-maker") ?></h5> |
| 5733 |
</legend> |
| 5734 |
<div class="form-group row" style="margin:0;"> |
| 5735 |
<div class="col-sm-12 only_pro" style="padding:10px 0 0 10px;"> |
| 5736 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 5737 |
</div> |
| 5738 |
<div class="form-group row"> |
| 5739 |
<div class="col-sm-4"> |
| 5740 |
<label for="ays_poll_enable_mailpoet"><?php echo __('Enable MailPoet',"poll-maker"); ?></label> |
| 5741 |
</div> |
| 5742 |
<div class="col-sm-1"> |
| 5743 |
<input type="checkbox" class="ays-enable-timer1" id="ays_poll_enable_mailpoet" name="ays_poll_enable_mailpoet" value="on" selected disabled > |
| 5744 |
</div> |
| 5745 |
</div> |
| 5746 |
<hr> |
| 5747 |
<div class="form-group row"> |
| 5748 |
<div class="col-sm-4"> |
| 5749 |
<label for="ays_poll_mailpoet_list"><?php echo __('MailPoet list',"poll-maker") ?></label> |
| 5750 |
</div> |
| 5751 |
<div class="col-sm-8"> |
| 5752 |
<select name="ays_poll_mailpoet_list" id="ays_poll_mailpoet_list"> |
| 5753 |
<option value="" disabled selected> <?php echo __( "Select list", "poll-maker" ) ?> </option> |
| 5754 |
</select> |
| 5755 |
</div> |
| 5756 |
</div> |
| 5757 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 5758 |
<div class="ays-poll-new-upgrade-button-box"> |
| 5759 |
<div> |
| 5760 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 5761 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 5762 |
</div> |
| 5763 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 5764 |
</div> |
| 5765 |
</a> |
| 5766 |
</div> |
| 5767 |
</div> |
| 5768 |
</fieldset> <!-- Mailpoet --> |
| 5769 |
<hr> |
| 5770 |
</div> |
| 5771 |
</div> |
| 5772 |
</div> |
| 5773 |
<div id="tab8" class="ays-poll-tab-content <?= $active_tab == 'Results Settings' ? 'ays-poll-tab-content-active' : ''; ?>"> |
| 5774 |
<div class="ays-poll-accordion-options-main-container"> |
| 5775 |
<div class="ays-poll-accordion-header"> |
| 5776 |
<?php echo $poll_acordion_svg_html; ?> |
| 5777 |
<p class="ays-subtitle"><?= __('Results Settings', "poll-maker"); ?></p> |
| 5778 |
</div> |
| 5779 |
<hr class="ays-poll-bolder-hr"/> |
| 5780 |
<div class="ays-poll-accordion-body"> |
| 5781 |
<div class="form-group row"> |
| 5782 |
<div class="col-sm-3"> |
| 5783 |
<label for='show-res-percent'> |
| 5784 |
<?= __('Show answer percent', "poll-maker"); ?> |
| 5785 |
<a class="ays_help" data-toggle="tooltip" |
| 5786 |
data-placement="top" |
| 5787 |
title="<?= __("Enable to show the percentage of each question on the progressbar on the result page of the poll.", "poll-maker"); ?>"> |
| 5788 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5789 |
</a> |
| 5790 |
</label> |
| 5791 |
</div> |
| 5792 |
<div class="col-sm-9"> |
| 5793 |
<input type="checkbox" name="show_res_percent" id="show-res-percent" |
| 5794 |
value="1" <?= $show_res_percent ? 'checked' : '' ?> > |
| 5795 |
</div> |
| 5796 |
</div> |
| 5797 |
<hr> |
| 5798 |
<div class="form-group row ays_toggle_parent ays-poll-desc-message-vars-parent"> |
| 5799 |
<div class="col-sm-3"> |
| 5800 |
<label for='ays-poll-hide-results'> |
| 5801 |
<?= __('Hide results', "poll-maker"); ?> |
| 5802 |
<a class="ays_help" |
| 5803 |
data-toggle="tooltip" |
| 5804 |
data-placement="top" |
| 5805 |
title="<?= __("Disable to show voting results to the users on the result page of the poll.", "poll-maker"); ?>"> |
| 5806 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5807 |
</a> |
| 5808 |
</label> |
| 5809 |
<p class="ays_poll_small_hint_text_for_message_variables"> |
| 5810 |
<span><?php echo __( "To see all Message Variables " , "poll-maker" ); ?></span> |
| 5811 |
<a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here" , "poll-maker" ); ?></a> |
| 5812 |
</p> |
| 5813 |
</div> |
| 5814 |
<div class="col-sm-9 ays_toggle_parent"> |
| 5815 |
<div class="form-group row"> |
| 5816 |
|
| 5817 |
<!-- <div class="col-sm-1"> --> |
| 5818 |
<div class="col-sm-12"> |
| 5819 |
<input type="checkbox" class="ays_toggle_checkbox" name="ays-poll-hide-results" id="ays-poll-hide-results" |
| 5820 |
value="hide" <?= isset($options['hide_results']) && $options['hide_results'] ? 'checked' : ''; ?>> |
| 5821 |
</div> |
| 5822 |
<div class="col-sm-12 ays_toggle_target " style=" <?php echo $options['hide_results'] ? '' : 'display:none'; ?>; padding-top:5px;"> |
| 5823 |
<div class="form-group row"> |
| 5824 |
<div class="col-sm-12"> |
| 5825 |
<div> |
| 5826 |
<label for='ays-poll-hide-results-text'> |
| 5827 |
<?= __('Message instead of results', "poll-maker"); ?> |
| 5828 |
<a class="ays_help" |
| 5829 |
data-toggle="tooltip" |
| 5830 |
data-placement="top" |
| 5831 |
title="<?= __("Message that will appear instead of the votting results after the poll", "poll-maker"); ?>"> |
| 5832 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5833 |
</a> |
| 5834 |
</label> |
| 5835 |
</div> |
| 5836 |
<?php |
| 5837 |
echo $poll_message_vars_html; |
| 5838 |
$content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']); |
| 5839 |
$editor_id = 'ays-poll-hide-results-text'; |
| 5840 |
$settings = array( |
| 5841 |
'editor_height' => $poll_wp_editor_height, |
| 5842 |
'textarea_name' => 'ays-poll-hide-results-text', |
| 5843 |
'editor_class' => 'ays-textarea', |
| 5844 |
'media_elements' => false |
| 5845 |
); |
| 5846 |
wp_editor($content, $editor_id, $settings); |
| 5847 |
?> |
| 5848 |
</div> |
| 5849 |
</div> |
| 5850 |
</div> |
| 5851 |
</div> |
| 5852 |
</div> |
| 5853 |
</div> |
| 5854 |
<hr> |
| 5855 |
<div class="form-group row ays-poll-desc-message-vars-parent"> |
| 5856 |
<div class="col-sm-3"> |
| 5857 |
<label for="ays_poll_result_message"> |
| 5858 |
<?php echo __('Result Message', "poll-maker")?> |
| 5859 |
<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")?>"> |
| 5860 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5861 |
</a> |
| 5862 |
</label> |
| 5863 |
<p class="ays_poll_small_hint_text_for_message_variables"> |
| 5864 |
<span><?php echo __( "To see all Message Variables ", "poll-maker" ); ?></span> |
| 5865 |
<a href="?page=poll-maker-ays-settings&ays_poll_tab=tab6" target="_blank"><?php echo __( "click here", "poll-maker" ); ?></a> |
| 5866 |
</p> |
| 5867 |
</div> |
| 5868 |
<div class="col-sm-9 ays_toggle_parent"> |
| 5869 |
<div class="form-group row"> |
| 5870 |
<div class="col-sm-12"> |
| 5871 |
<input type="checkbox" name="ays_poll_result_message" id="ays_poll_result_message" class="ays_toggle_checkbox" |
| 5872 |
value="hide" <?= isset($options['hide_result_message']) && $options['hide_result_message'] ? 'checked' : ''; ?>> |
| 5873 |
</div> |
| 5874 |
<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;'; ?>"> |
| 5875 |
<?php |
| 5876 |
$res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'. __("Thank you!", "poll-maker") .'</p>' : ''; |
| 5877 |
echo $poll_message_vars_html; |
| 5878 |
$content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message)); |
| 5879 |
$editor_id = 'ays_result_message'; |
| 5880 |
$settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false); |
| 5881 |
wp_editor($content, $editor_id, $settings); |
| 5882 |
?> |
| 5883 |
</div> |
| 5884 |
</div> |
| 5885 |
</div> |
| 5886 |
</div> |
| 5887 |
<hr> |
| 5888 |
<div class="form-group row"> |
| 5889 |
<div class="col-sm-3"> |
| 5890 |
<label for='ays-poll-result-sort-type'> |
| 5891 |
<?php echo __('Results sorting', "poll-maker"); ?> |
| 5892 |
<a class="ays_help" data-toggle="tooltip" data-html="true" data-placement="top" title="<?php |
| 5893 |
echo __("Select the way of arrangement of the results on the result page of the poll.", "poll-maker") . |
| 5894 |
"<ul style='list-style-type: circle;padding-left: 20px;'>". |
| 5895 |
"<li>". __('Ascending – the smallest to largest', "poll-maker") ."</li>". |
| 5896 |
"<li>". __('Descending – the largest to smallest', "poll-maker") ."</li>". |
| 5897 |
"<li>". __('None', "poll-maker") ."</li>". |
| 5898 |
"</ul>"; |
| 5899 |
?>"> |
| 5900 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5901 |
</a></label> |
| 5902 |
</div> |
| 5903 |
<div class="col-sm-9"> |
| 5904 |
<select name="ays-poll-result-sort-type" id="ays-poll-result-sort-type" class="ays-select ays_poll_aysDropdown"> |
| 5905 |
<option value="none" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "none" ? 'selected' : ''; ?>> |
| 5906 |
<?= __("None", "poll-maker"); ?> |
| 5907 |
</option> |
| 5908 |
<option value="ASC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "ASC" ? 'selected' : ''; ?>> |
| 5909 |
<?= __("Ascending", "poll-maker"); ?> |
| 5910 |
</option> |
| 5911 |
<option value="DESC" <?= isset($options['result_sort_type']) && $options['result_sort_type'] == "DESC" ? 'selected' : ''; ?>> |
| 5912 |
<?= __("Descending", "poll-maker"); ?> |
| 5913 |
</option> |
| 5914 |
</select> |
| 5915 |
</div> |
| 5916 |
</div> |
| 5917 |
<hr> |
| 5918 |
<div class="form-group row"> |
| 5919 |
<div class="col-sm-3"> |
| 5920 |
<label for='show-votes-count'> |
| 5921 |
<?= __('Show votes count', "poll-maker"); ?> |
| 5922 |
<a class="ays_help" data-toggle="tooltip" |
| 5923 |
data-placement="top" |
| 5924 |
title="<?= __("Enable to show the total number of votes of each answer on the result page of the poll.", "poll-maker"); ?>"> |
| 5925 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5926 |
</a> |
| 5927 |
</label> |
| 5928 |
</div> |
| 5929 |
<div class="col-sm-9"> |
| 5930 |
<input type="checkbox" name="show_votes_count" id="show-votes-count" |
| 5931 |
value="1" <?= $showvotescount ? 'checked' : '' ?> > |
| 5932 |
</div> |
| 5933 |
</div> |
| 5934 |
<hr> |
| 5935 |
|
| 5936 |
<!-- Loading effect start --> |
| 5937 |
|
| 5938 |
<div class="form-group row"> |
| 5939 |
<div class="col-sm-3"> |
| 5940 |
<label for='ays-poll-load-effect'> |
| 5941 |
<?= __('Loading effect', "poll-maker"); ?> |
| 5942 |
<a class="ays_help" data-toggle="tooltip" |
| 5943 |
data-placement="top" |
| 5944 |
title="<?= __("Choose the loading effect of the displaying poll results.", "poll-maker"); ?>"> |
| 5945 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 5946 |
</a> |
| 5947 |
</label> |
| 5948 |
</div> |
| 5949 |
<div class="col-sm-3"> |
| 5950 |
<select name="ays-poll-load-effect" id="ays-poll-load-effect" class="ays-select ays_poll_aysDropdown"> |
| 5951 |
<option value="load_gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" ? 'selected' : ''; ?>> |
| 5952 |
<?= __("Loading GIF", "poll-maker"); ?> |
| 5953 |
</option> |
| 5954 |
<option value="opacity" <?= isset($options['load_effect']) && $options['load_effect'] == "opacity" ? 'selected' : ''; ?>> |
| 5955 |
<?= __("Opacity", "poll-maker"); ?> |
| 5956 |
</option> |
| 5957 |
<option value="blur" <?= isset($options['load_effect']) && $options['load_effect'] == "blur" ? 'selected' : ''; ?>> |
| 5958 |
<?= __("Blur", "poll-maker"); ?> |
| 5959 |
</option> |
| 5960 |
<option value="message" <?= isset($options['load_effect']) && $options['load_effect'] == "message" ? 'selected' : ''; ?>> |
| 5961 |
<?= __("Message", "poll-maker"); ?> |
| 5962 |
</option> |
| 5963 |
<option class="apm-pro-feature" disabled |
| 5964 |
title="<?= __("It is PRO version feature", "poll-maker"); ?>" value="pro"> |
| 5965 |
<?= __("Custom GIF", "poll-maker"); ?> |
| 5966 |
</option> |
| 5967 |
</select> |
| 5968 |
</div> |
| 5969 |
<div class="if-loading-gif col-sm-6 row"> |
| 5970 |
<div class="apm-loader d-flex justify-content-between align-items-center"> |
| 5971 |
<input type="radio" |
| 5972 |
name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_default' ? 'checked' : ''; ?> |
| 5973 |
id="plg_default" value="plg_default"> |
| 5974 |
<label for="plg_default" class="apm-loading-gif"> |
| 5975 |
<div class="loader loader--style3"> |
| 5976 |
<svg version="1.1" id="loader-1" xmlns="http://www.w3.org/2000/svg" |
| 5977 |
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" |
| 5978 |
height="100%" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" |
| 5979 |
xml:space="preserve"> |
| 5980 |
<path fill="#000" |
| 5981 |
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"> |
| 5982 |
<animateTransform attributeType="xml" attributeName="transform" |
| 5983 |
type="rotate" from="0 25 25" to="360 25 25" dur="0.7s" |
| 5984 |
repeatCount="indefinite"/> |
| 5985 |
</path> |
| 5986 |
</svg> |
| 5987 |
</div> |
| 5988 |
</label> |
| 5989 |
</div> |
| 5990 |
<div class="apm-loader d-flex justify-content-between align-items-center"> |
| 5991 |
<input type="radio" |
| 5992 |
name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_1' ? 'checked' : ''; ?> |
| 5993 |
id="plg_1" value="plg_1"> |
| 5994 |
<label for="plg_1" class="apm-loading-gif"> |
| 5995 |
<div class="loader loader--style5"> |
| 5996 |
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" |
| 5997 |
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" |
| 5998 |
height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;" |
| 5999 |
xml:space="preserve"> |
| 6000 |
<rect x="0" y="0" width="4" height="10" fill="#333"> |
| 6001 |
<animateTransform attributeType="xml" attributeName="transform" |
| 6002 |
type="translate" values="0 0; 0 20; 0 0" begin="0" |
| 6003 |
dur="0.8s" repeatCount="indefinite"/> |
| 6004 |
</rect> |
| 6005 |
<rect x="10" y="0" width="4" height="10" fill="#333"> |
| 6006 |
<animateTransform attributeType="xml" attributeName="transform" |
| 6007 |
type="translate" values="0 0; 0 20; 0 0" begin="0.2s" |
| 6008 |
dur="0.8s" repeatCount="indefinite"/> |
| 6009 |
</rect> |
| 6010 |
<rect x="20" y="0" width="4" height="10" fill="#333"> |
| 6011 |
<animateTransform attributeType="xml" attributeName="transform" |
| 6012 |
type="translate" values="0 0; 0 20; 0 0" begin="0.4s" |
| 6013 |
dur="0.8s" repeatCount="indefinite"/> |
| 6014 |
</rect> |
| 6015 |
</svg> |
| 6016 |
</div> |
| 6017 |
</label> |
| 6018 |
</div> |
| 6019 |
<div class="apm-loader d-flex justify-content-between align-items-center"> |
| 6020 |
<input type="radio" |
| 6021 |
name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_2' ? 'checked' : ''; ?> |
| 6022 |
id="plg_2" value="plg_2"> |
| 6023 |
<label for="plg_2" class="apm-loading-gif"> |
| 6024 |
<div class="loader loader--style8"> |
| 6025 |
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" |
| 6026 |
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" |
| 6027 |
height="100%" viewBox="0 0 24 30" style="enable-background:new 0 0 50 50;" |
| 6028 |
xml:space="preserve"> |
| 6029 |
<rect x="0" y="10" width="4" height="10" fill="#333" opacity="0.2"> |
| 6030 |
<animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" |
| 6031 |
begin="0s" dur="0.7s" repeatCount="indefinite"/> |
| 6032 |
<animate attributeName="height" attributeType="XML" values="10; 20; 10" |
| 6033 |
begin="0s" dur="0.7s" repeatCount="indefinite"/> |
| 6034 |
<animate attributeName="y" attributeType="XML" values="10; 5; 10" begin="0s" |
| 6035 |
dur="0.7s" repeatCount="indefinite"/> |
| 6036 |
</rect> |
| 6037 |
<rect x="8" y="10" width="4" height="10" fill="#333" opacity="0.2"> |
| 6038 |
<animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" |
| 6039 |
begin="0.15s" dur="0.7s" repeatCount="indefinite"/> |
| 6040 |
<animate attributeName="height" attributeType="XML" values="10; 20; 10" |
| 6041 |
begin="0.15s" dur="0.7s" repeatCount="indefinite"/> |
| 6042 |
<animate attributeName="y" attributeType="XML" values="10; 5; 10" |
| 6043 |
begin="0.15s" dur="0.7s" repeatCount="indefinite"/> |
| 6044 |
</rect> |
| 6045 |
<rect x="16" y="10" width="4" height="10" fill="#333" opacity="0.2"> |
| 6046 |
<animate attributeName="opacity" attributeType="XML" values="0.2; 1; .2" |
| 6047 |
begin="0.3s" dur="0.7s" repeatCount="indefinite"/> |
| 6048 |
<animate attributeName="height" attributeType="XML" values="10; 20; 10" |
| 6049 |
begin="0.3s" dur="0.7s" repeatCount="indefinite"/> |
| 6050 |
<animate attributeName="y" attributeType="XML" values="10; 5; 10" |
| 6051 |
begin="0.3s" dur="0.7s" repeatCount="indefinite"/> |
| 6052 |
</rect> |
| 6053 |
</svg> |
| 6054 |
</div> |
| 6055 |
</label> |
| 6056 |
</div> |
| 6057 |
<div class="apm-loader d-flex justify-content-between align-items-center"> |
| 6058 |
<input type="radio" |
| 6059 |
name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_3' ? 'checked' : ''; ?> |
| 6060 |
id="plg_3" value="plg_3"> |
| 6061 |
<label for="plg_3" class="apm-loading-gif"> |
| 6062 |
<div class="loader loader--style5"> |
| 6063 |
<svg width="100%" height="100%" viewBox="0 0 105 105" |
| 6064 |
xmlns="http://www.w3.org/2000/svg" fill="#000"> |
| 6065 |
<circle cx="12.5" cy="12.5" r="12.5"> |
| 6066 |
<animate attributeName="fill-opacity" begin="0s" dur="0.9s" values="1;.2;1" |
| 6067 |
calcMode="linear" repeatCount="indefinite"/> |
| 6068 |
</circle> |
| 6069 |
<circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"> |
| 6070 |
<animate attributeName="fill-opacity" begin="100ms" dur="0.9s" |
| 6071 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6072 |
</circle> |
| 6073 |
<circle cx="52.5" cy="12.5" r="12.5"> |
| 6074 |
<animate attributeName="fill-opacity" begin="300ms" dur="0.9s" |
| 6075 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6076 |
</circle> |
| 6077 |
<circle cx="52.5" cy="52.5" r="12.5"> |
| 6078 |
<animate attributeName="fill-opacity" begin="600ms" dur="0.9s" |
| 6079 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6080 |
</circle> |
| 6081 |
<circle cx="92.5" cy="12.5" r="12.5"> |
| 6082 |
<animate attributeName="fill-opacity" begin="800ms" dur="0.9s" |
| 6083 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6084 |
</circle> |
| 6085 |
<circle cx="92.5" cy="52.5" r="12.5"> |
| 6086 |
<animate attributeName="fill-opacity" begin="400ms" dur="0.9s" |
| 6087 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6088 |
</circle> |
| 6089 |
<circle cx="12.5" cy="92.5" r="12.5"> |
| 6090 |
<animate attributeName="fill-opacity" begin="700ms" dur="0.9s" |
| 6091 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6092 |
</circle> |
| 6093 |
<circle cx="52.5" cy="92.5" r="12.5"> |
| 6094 |
<animate attributeName="fill-opacity" begin="500ms" dur="0.9s" |
| 6095 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6096 |
</circle> |
| 6097 |
<circle cx="92.5" cy="92.5" r="12.5"> |
| 6098 |
<animate attributeName="fill-opacity" begin="200ms" dur="0.9s" |
| 6099 |
values="1;.2;1" calcMode="linear" repeatCount="indefinite"/> |
| 6100 |
</circle> |
| 6101 |
</svg> |
| 6102 |
</div> |
| 6103 |
</label> |
| 6104 |
</div> |
| 6105 |
<div class="apm-loader d-flex justify-content-between align-items-center"> |
| 6106 |
<input type="radio" |
| 6107 |
name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_4' ? 'checked' : ''; ?> |
| 6108 |
id="plg_4" value="plg_4"> |
| 6109 |
<label for="plg_4" class="apm-loading-gif"> |
| 6110 |
<div class="loader loader--style4"> |
| 6111 |
<svg width="100%" height="100%" viewBox="0 0 57 57" |
| 6112 |
xmlns="http://www.w3.org/2000/svg" stroke="#000"> |
| 6113 |
<g fill="none" fill-rule="evenodd"> |
| 6114 |
<g transform="translate(1 1)" stroke-width="2"> |
| 6115 |
<circle cx="5" cy="50" r="5"> |
| 6116 |
<animate attributeName="cy" begin="0s" dur="2.2s" |
| 6117 |
values="50;5;50;50" calcMode="linear" |
| 6118 |
repeatCount="indefinite"/> |
| 6119 |
<animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5" |
| 6120 |
calcMode="linear" repeatCount="indefinite"/> |
| 6121 |
</circle> |
| 6122 |
<circle cx="27" cy="5" r="5"> |
| 6123 |
<animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5" |
| 6124 |
values="5;50;50;5" calcMode="linear" |
| 6125 |
repeatCount="indefinite"/> |
| 6126 |
<animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27" |
| 6127 |
values="27;49;5;27" calcMode="linear" |
| 6128 |
repeatCount="indefinite"/> |
| 6129 |
</circle> |
| 6130 |
<circle cx="49" cy="50" r="5"> |
| 6131 |
<animate attributeName="cy" begin="0s" dur="2.2s" |
| 6132 |
values="50;50;5;50" calcMode="linear" |
| 6133 |
repeatCount="indefinite"/> |
| 6134 |
<animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s" |
| 6135 |
values="49;5;27;49" calcMode="linear" |
| 6136 |
repeatCount="indefinite"/> |
| 6137 |
</circle> |
| 6138 |
</g> |
| 6139 |
</g> |
| 6140 |
</svg> |
| 6141 |
</div> |
| 6142 |
</label> |
| 6143 |
</div> |
| 6144 |
<div class="apm-loader d-flex justify-content-between align-items-center"> |
| 6145 |
<input type="radio" |
| 6146 |
name="ays-poll-load-gif" <?= isset($options['load_effect']) && $options['load_effect'] == "load_gif" && isset($options['load_gif']) && $options['load_gif'] == 'plg_5' ? 'checked' : ''; ?> |
| 6147 |
id="plg_5" value="plg_5"> |
| 6148 |
<label for="plg_5" class="apm-loading-gif"> |
| 6149 |
<div class="loader loader--style4"> |
| 6150 |
<svg width="100%" height="100%" viewBox="0 0 135 140" |
| 6151 |
xmlns="http://www.w3.org/2000/svg" fill="#000"> |
| 6152 |
<rect y="10" width="15" height="120" rx="6"> |
| 6153 |
<animate attributeName="height" begin="0.5s" dur="1s" |
| 6154 |
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" |
| 6155 |
repeatCount="indefinite"/> |
| 6156 |
<animate attributeName="y" begin="0.5s" dur="1s" |
| 6157 |
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" |
| 6158 |
repeatCount="indefinite"/> |
| 6159 |
</rect> |
| 6160 |
<rect x="30" y="10" width="15" height="120" rx="6"> |
| 6161 |
<animate attributeName="height" begin="0.25s" dur="1s" |
| 6162 |
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" |
| 6163 |
repeatCount="indefinite"/> |
| 6164 |
<animate attributeName="y" begin="0.25s" dur="1s" |
| 6165 |
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" |
| 6166 |
repeatCount="indefinite"/> |
| 6167 |
</rect> |
| 6168 |
<rect x="60" width="15" height="140" rx="6"> |
| 6169 |
<animate attributeName="height" begin="0s" dur="1s" |
| 6170 |
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" |
| 6171 |
repeatCount="indefinite"/> |
| 6172 |
<animate attributeName="y" begin="0s" dur="1s" |
| 6173 |
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" |
| 6174 |
repeatCount="indefinite"/> |
| 6175 |
</rect> |
| 6176 |
<rect x="90" y="10" width="15" height="120" rx="6"> |
| 6177 |
<animate attributeName="height" begin="0.25s" dur="1s" |
| 6178 |
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" |
| 6179 |
repeatCount="indefinite"/> |
| 6180 |
<animate attributeName="y" begin="0.25s" dur="1s" |
| 6181 |
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" |
| 6182 |
repeatCount="indefinite"/> |
| 6183 |
</rect> |
| 6184 |
<rect x="120" y="10" width="15" height="120" rx="6"> |
| 6185 |
<animate attributeName="height" begin="0.5s" dur="1s" |
| 6186 |
values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" |
| 6187 |
repeatCount="indefinite"/> |
| 6188 |
<animate attributeName="y" begin="0.5s" dur="1s" |
| 6189 |
values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" |
| 6190 |
repeatCount="indefinite"/> |
| 6191 |
</rect> |
| 6192 |
</svg> |
| 6193 |
</div> |
| 6194 |
</label> |
| 6195 |
</div> |
| 6196 |
</div> |
| 6197 |
<div class="if-loading-message col-sm-6 row"> |
| 6198 |
<input type="text" class="ays-text-input ays-text-input-short" name="ays_poll_load_effect_message" value="<?php echo $poll_effect_message; ?>"> |
| 6199 |
</div> |
| 6200 |
</div> |
| 6201 |
<hr class="<?php echo $poll_loader_size_line_enable; ?> ays_line_changeing"> |
| 6202 |
<div class="form-group row <?php echo $poll_loader_size_enable; ?> ays_load_gif_cont"> |
| 6203 |
<div class="col-sm-3"> |
| 6204 |
<label for="ays_loader_font_size"> |
| 6205 |
<?= __('Loading effect size', "poll-maker") ?> |
| 6206 |
<a class="ays_help" data-toggle="tooltip" |
| 6207 |
title="<?= __('Define the size of the loading effect. It will get the default value if you leave it blank.', "poll-maker") ?>"> |
| 6208 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6209 |
</a> |
| 6210 |
</label> |
| 6211 |
</div> |
| 6212 |
<div class="col-sm-9 ays_option_with_default_measurement_unit"> |
| 6213 |
<div> |
| 6214 |
<input type="number" class="ays-text-input ays-poll-answer-results-short-input" id="ays_loader_font_size" |
| 6215 |
name="ays_loader_font_size" |
| 6216 |
value="<?= $poll_loader_font_size; ?>"/> |
| 6217 |
</div> |
| 6218 |
<div class="ays_option_default_measurement_unit"> |
| 6219 |
<input type="text" value="px" disabled> |
| 6220 |
</div> |
| 6221 |
</div> |
| 6222 |
</div> |
| 6223 |
<hr> |
| 6224 |
<!-- Loading effect end --> |
| 6225 |
<div class="form-group row"> |
| 6226 |
<div class="col-sm-3"> |
| 6227 |
<label for="ays_enable_restart_button"> |
| 6228 |
<?= __('Enable restart button', "poll-maker") ?> |
| 6229 |
<a class="ays_help" data-toggle="tooltip" |
| 6230 |
title="<?= __('Show the restart button on the result page of the poll for restarting the poll and taking it again.', "poll-maker") ?>"> |
| 6231 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6232 |
</a> |
| 6233 |
</label> |
| 6234 |
</div> |
| 6235 |
<div class="col-sm-1"> |
| 6236 |
<input type="checkbox" class="ays-enable-timer1" id="ays_enable_restart_button" |
| 6237 |
name="ays_enable_restart_button" |
| 6238 |
value="on" <?= (isset($options['enable_restart_button']) && $options['enable_restart_button']) ? 'checked' : '' ?> /> |
| 6239 |
</div> |
| 6240 |
</div> |
| 6241 |
<hr> |
| 6242 |
<div class="form-group row ays_toggle_parent"> |
| 6243 |
<div class="col-sm-3"> |
| 6244 |
<label for='ays-poll-show-social'> |
| 6245 |
<?= __('Social share buttons', "poll-maker"); ?> |
| 6246 |
<a class="ays_help" |
| 6247 |
data-toggle="tooltip" |
| 6248 |
data-placement="top" |
| 6249 |
title='<?= __("Enable to show social media share buttons on the result page of the poll. (Facebook, Twitter, LinkedIn, VKontakte)", "poll-maker"); ?>'> |
| 6250 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6251 |
</a></label> |
| 6252 |
</div> |
| 6253 |
<div class="col-sm-1"> |
| 6254 |
<input type="checkbox" name="ays-poll-show-social" class="ays_toggle_checkbox" id="ays-poll-show-social" |
| 6255 |
value="show" <?= $poll_social_buttons ? 'checked' : ''; ?>> |
| 6256 |
</div> |
| 6257 |
<div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $poll_social_buttons ? '' : 'display:none'; ?>"> |
| 6258 |
<div class="form-group row"> |
| 6259 |
<div class="col-sm-4"> |
| 6260 |
<label> |
| 6261 |
<?php echo __('Heading for share buttons', "poll-maker")?> |
| 6262 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over share buttons.', "poll-maker"); ?>"> |
| 6263 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6264 |
</a> |
| 6265 |
</label> |
| 6266 |
</div> |
| 6267 |
<div class="col-sm-8"> |
| 6268 |
<?php |
| 6269 |
$content = $poll_social_buttons_heading; |
| 6270 |
$editor_id = 'ays_poll_social_buttons_heading'; |
| 6271 |
$settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_buttons_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false); |
| 6272 |
wp_editor($content, $editor_id, $settings); |
| 6273 |
?> |
| 6274 |
</div> |
| 6275 |
</div> |
| 6276 |
<hr> |
| 6277 |
<div class="form-group row"> |
| 6278 |
<div class="col-sm-4"> |
| 6279 |
<label for="ays_poll_enable_linkedin_share_button"> |
| 6280 |
<i class="ays_poll_fas ays_poll-fa-linkedin"></i> |
| 6281 |
<?php echo __('LinkedIn button', "poll-maker")?> |
| 6282 |
<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"); ?>"> |
| 6283 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6284 |
</a> |
| 6285 |
</label> |
| 6286 |
</div> |
| 6287 |
<div class="col-sm-8"> |
| 6288 |
<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" : ""; ?>/> |
| 6289 |
</div> |
| 6290 |
</div> |
| 6291 |
<hr/> |
| 6292 |
<div class="form-group row"> |
| 6293 |
<div class="col-sm-4"> |
| 6294 |
<label for="ays_poll_enable_facebook_share_button"> |
| 6295 |
<i class="ays_poll_fas ays_poll_facebook"></i> |
| 6296 |
<?php echo __('Facebook button', "poll-maker")?> |
| 6297 |
<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"); ?>"> |
| 6298 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6299 |
</a> |
| 6300 |
</label> |
| 6301 |
</div> |
| 6302 |
<div class="col-sm-8"> |
| 6303 |
<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" : ""; ?>/> |
| 6304 |
</div> |
| 6305 |
</div> |
| 6306 |
<hr/> |
| 6307 |
<div class="form-group row"> |
| 6308 |
<div class="col-sm-4"> |
| 6309 |
<label for="ays_poll_enable_twitter_share_button"> |
| 6310 |
<i class="ays_fa ays_fa_twitter_square"></i> |
| 6311 |
<?php echo __('Twitter button', "poll-maker")?> |
| 6312 |
<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"); ?>"> |
| 6313 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6314 |
</a> |
| 6315 |
</label> |
| 6316 |
</div> |
| 6317 |
<div class="col-sm-8"> |
| 6318 |
<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" : ""; ?>/> |
| 6319 |
</div> |
| 6320 |
</div> |
| 6321 |
<hr/> |
| 6322 |
<div class="form-group row"> |
| 6323 |
<div class="col-sm-4"> |
| 6324 |
<label for="ays_poll_enable_vkontakte_share_button"> |
| 6325 |
<i class="ays_fa ays_fa_vk"></i> |
| 6326 |
<?php echo __('VKontakte button', "poll-maker")?> |
| 6327 |
<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"); ?>"> |
| 6328 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6329 |
</a> |
| 6330 |
</label> |
| 6331 |
</div> |
| 6332 |
<div class="col-sm-8"> |
| 6333 |
<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" : ""; ?>/> |
| 6334 |
</div> |
| 6335 |
</div> |
| 6336 |
</div> |
| 6337 |
</div> |
| 6338 |
<hr> |
| 6339 |
<div class="form-group row ays_toggle_parent"> |
| 6340 |
<div class="col-sm-3"> |
| 6341 |
<label for="ays_enable_social_links"> |
| 6342 |
<?php echo __('Enable Social Media links', "poll-maker")?> |
| 6343 |
<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")?>"> |
| 6344 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6345 |
</a> |
| 6346 |
</label> |
| 6347 |
</div> |
| 6348 |
<div class="col-sm-1"> |
| 6349 |
<input type="checkbox" class="ays-enable-timer1 ays_toggle_checkbox" id="ays_enable_social_links" |
| 6350 |
name="ays_poll_enable_social_links" |
| 6351 |
value="on" <?php echo $enable_social_links ? 'checked' : '' ?>/> |
| 6352 |
</div> |
| 6353 |
<div class="col-sm-8 ays_toggle_target ays_divider_left" style=" <?php echo $enable_social_links ? '' : 'display:none' ?>"> |
| 6354 |
<div class="form-group row"> |
| 6355 |
<div class="col-sm-4"> |
| 6356 |
<label> |
| 6357 |
<?php echo __('Heading for social links', "poll-maker")?> |
| 6358 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Text that will be displayed over social links.', "poll-maker"); ?>"> |
| 6359 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6360 |
</a> |
| 6361 |
</label> |
| 6362 |
</div> |
| 6363 |
<div class="col-sm-8"> |
| 6364 |
<?php |
| 6365 |
$content = $poll_social_links_heading; |
| 6366 |
$editor_id = 'ays_poll_social_links_heading'; |
| 6367 |
$settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_poll_social_links_heading', 'editor_class' => 'ays-textarea', 'media_elements' => false); |
| 6368 |
wp_editor($content, $editor_id, $settings); |
| 6369 |
?> |
| 6370 |
</div> |
| 6371 |
</div> |
| 6372 |
<hr> |
| 6373 |
<div class="form-group row"> |
| 6374 |
<div class="col-sm-4"> |
| 6375 |
<label for="ays_linkedin_link"> |
| 6376 |
<i class="ays_fa ays_fa_linkedin_square"></i> |
| 6377 |
<?php echo __('LinkedIn link', "poll-maker")?> |
| 6378 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('LinkedIn profile or page link for showing after poll finish.', "poll-maker")?>"> |
| 6379 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6380 |
</a> |
| 6381 |
</label> |
| 6382 |
</div> |
| 6383 |
<div class="col-sm-8"> |
| 6384 |
<input type="text" class="ays-text-input" id="ays_linkedin_link" name="ays_poll_social_links[ays_linkedin_link]" |
| 6385 |
value="<?php echo $linkedin_link; ?>" /> |
| 6386 |
</div> |
| 6387 |
</div> |
| 6388 |
<hr/> |
| 6389 |
<div class="form-group row"> |
| 6390 |
<div class="col-sm-4"> |
| 6391 |
<label for="ays_facebook_link"> |
| 6392 |
<i class="ays_fa ays_fa_facebook_square"></i> |
| 6393 |
<?php echo __('Facebook link', "poll-maker")?> |
| 6394 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Facebook profile or page link for showing after poll finish.', "poll-maker")?>"> |
| 6395 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6396 |
</a> |
| 6397 |
</label> |
| 6398 |
</div> |
| 6399 |
<div class="col-sm-8"> |
| 6400 |
<input type="text" class="ays-text-input" id="ays_facebook_link" name="ays_poll_social_links[ays_facebook_link]" |
| 6401 |
value="<?php echo $facebook_link; ?>" /> |
| 6402 |
</div> |
| 6403 |
</div> |
| 6404 |
<hr/> |
| 6405 |
<div class="form-group row"> |
| 6406 |
<div class="col-sm-4"> |
| 6407 |
<label for="ays_twitter_link"> |
| 6408 |
<i class="ays_fa ays_fa_twitter_square"></i> |
| 6409 |
<?php echo __('Twitter link', "poll-maker")?> |
| 6410 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('Twitter profile or page link for showing after poll finish.', "poll-maker")?>"> |
| 6411 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6412 |
</a> |
| 6413 |
</label> |
| 6414 |
</div> |
| 6415 |
<div class="col-sm-8"> |
| 6416 |
<input type="text" class="ays-text-input" id="ays_twitter_link" name="ays_poll_social_links[ays_twitter_link]" |
| 6417 |
value="<?php echo $twitter_link; ?>" /> |
| 6418 |
</div> |
| 6419 |
</div> |
| 6420 |
<hr/> |
| 6421 |
<div class="form-group row"> |
| 6422 |
<div class="col-sm-4"> |
| 6423 |
<label for="ays_vkontakte_link"> |
| 6424 |
<i class="ays_fa ays_fa_vk"></i> |
| 6425 |
<?php echo __('VKontakte link', "poll-maker")?> |
| 6426 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>"> |
| 6427 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6428 |
</a> |
| 6429 |
</label> |
| 6430 |
</div> |
| 6431 |
<div class="col-sm-8"> |
| 6432 |
<input type="text" class="ays-text-input" id="ays_vkontakte_link" name="ays_poll_social_links[ays_vkontakte_link]" |
| 6433 |
value="<?php echo $vkontakte_link; ?>" /> |
| 6434 |
</div> |
| 6435 |
</div> |
| 6436 |
<hr> |
| 6437 |
<div class="form-group row"> |
| 6438 |
<div class="col-sm-4"> |
| 6439 |
<label for="ays_youtube_link"> |
| 6440 |
<i class="ays_fa ays_fa_vk"></i> |
| 6441 |
<?php echo __('YouTube link', "poll-maker")?> |
| 6442 |
<a class="ays_help" data-toggle="tooltip" title="<?php echo __('YouTube profile or page link for showing after poll finish.', "poll-maker")?>"> |
| 6443 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6444 |
</a> |
| 6445 |
</label> |
| 6446 |
</div> |
| 6447 |
<div class="col-sm-8"> |
| 6448 |
<input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]" |
| 6449 |
value="<?php echo $youtube_link; ?>" /> |
| 6450 |
</div> |
| 6451 |
</div> |
| 6452 |
</div> |
| 6453 |
</div> |
| 6454 |
<hr> |
| 6455 |
<div class="form-group row"> |
| 6456 |
<div class="col-sm-3"> |
| 6457 |
<label for='ays-poll-res-rgba'> |
| 6458 |
<?= __('Results bar in RGBA', "poll-maker"); ?> |
| 6459 |
<a class="ays_help" data-toggle="tooltip" |
| 6460 |
data-placement="top" |
| 6461 |
title="<?= __("If the option is enabled, the opacity of the result bar color will depend on the number of votes.", "poll-maker"); ?>"> |
| 6462 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6463 |
</a> |
| 6464 |
</label> |
| 6465 |
</div> |
| 6466 |
<div class="col-sm-9"> |
| 6467 |
<input type="checkbox" name="ays-poll-res-rgba" id="ays-poll-res-rgba" |
| 6468 |
value="on" <?php echo ($result_in_rgba) ? 'checked' : ''; ?>> |
| 6469 |
</div> |
| 6470 |
</div> |
| 6471 |
<hr> |
| 6472 |
<div class="form-group row ays_toggle_parent"> |
| 6473 |
<div class="col-sm-3"> |
| 6474 |
<label for='ays_poll_show_users'> |
| 6475 |
<?= __('Show passed users avatars', "poll-maker"); ?> |
| 6476 |
<a class="ays_help" data-toggle="tooltip" |
| 6477 |
data-placement="top" |
| 6478 |
title="<?= __("If this option is enabled, you will see users' avatars(profile pictures) who have already voted on the result page.", "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-1"> |
| 6484 |
<input type="checkbox" name="ays_poll_show_users" id="ays_poll_show_users" class="ays_toggle_checkbox" |
| 6485 |
value="on" <?php echo $poll_show_passed_users_checked; ?>> |
| 6486 |
</div> |
| 6487 |
<div class="col-sm-8 ays_toggle_target" style="<?php echo $poll_show_passed_users_checked == "checked" ? "" : "display:none";?>"> |
| 6488 |
<div class="row"> |
| 6489 |
<div class="col-sm-3 ays_divider_left"> |
| 6490 |
<label for='ays_poll_show_users_count'> |
| 6491 |
<?= __('Users count', "poll-maker"); ?> |
| 6492 |
<a class="ays_help" data-toggle="tooltip" |
| 6493 |
data-placement="top" |
| 6494 |
title="<?= __("Indicate the count of users' avatars to be shown.", "poll-maker"); ?>"> |
| 6495 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6496 |
</a> |
| 6497 |
</label> |
| 6498 |
</div> |
| 6499 |
<div class="col-sm-9"> |
| 6500 |
<input type="number" |
| 6501 |
name="ays_poll_show_users_count" |
| 6502 |
id="ays_poll_show_users_count" |
| 6503 |
class="ays-text-input ays-poll-answer-results-short-input" |
| 6504 |
value="<?php echo $poll_show_passed_users_count; ?>"> |
| 6505 |
</div> |
| 6506 |
</div> |
| 6507 |
</div> |
| 6508 |
</div> |
| 6509 |
<hr class="ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>"> |
| 6510 |
<div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="display: <?php echo ($poll['type'] == 'choosing') ? 'flex' : 'none' ?>"> |
| 6511 |
<div class="col-sm-3"> |
| 6512 |
<label for="ays_poll_enable_answer_redirect_delay"> |
| 6513 |
<?= __('Option Redirect Delay', "poll-maker") ?> |
| 6514 |
<a class="ays_help" data-toggle="tooltip" |
| 6515 |
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") ?>"> |
| 6516 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6517 |
</a> |
| 6518 |
</label> |
| 6519 |
</div> |
| 6520 |
<div class="col-sm-1"> |
| 6521 |
<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" : ""; ?>> |
| 6522 |
</div> |
| 6523 |
<div class="col-sm-8 ays_toggle_target" style=" <?php echo ($poll_enable_answer_redirect_delay) ? "" : "display:none"; ?>"> |
| 6524 |
<input type="number" |
| 6525 |
class="ays-text-input ays-poll-answer-results-short-input" |
| 6526 |
id="ays_poll_answer_redirect_delay" |
| 6527 |
name="ays_poll_answer_redirect_delay" |
| 6528 |
value="<?= $poll_every_answer_redirect_delay; ?>"/> |
| 6529 |
<span class="ays_poll_small_hint_text">Seconds</span> |
| 6530 |
</div> |
| 6531 |
</div> |
| 6532 |
<hr> |
| 6533 |
<div class="form-group row"> |
| 6534 |
<div class="col-sm-3"> |
| 6535 |
<label for="ays_poll_enable_answer_image_after_voting"> |
| 6536 |
<?= __('Show answers image', "poll-maker") ?> |
| 6537 |
<a class="ays_help" data-toggle="tooltip" |
| 6538 |
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") ?>"> |
| 6539 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6540 |
</a> |
| 6541 |
</label> |
| 6542 |
</div> |
| 6543 |
<div class="col-sm-1"> |
| 6544 |
<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" : ""; ?>> |
| 6545 |
</div> |
| 6546 |
</div> |
| 6547 |
<hr> |
| 6548 |
<div class="ays_poll_block_with_hidden_row ays_poll_result_view_type"> |
| 6549 |
<div class="form-group row"> |
| 6550 |
<div class="col-sm-3"> |
| 6551 |
<label for="apm_allow_add_answers"> |
| 6552 |
<?= __('Show results by', "poll-maker"); ?> |
| 6553 |
<a class="ays_help" data-toggle="tooltip" data-placement="top" |
| 6554 |
title="<?= __("Select the way of displaying the results on the result page of the poll.", "poll-maker"); ?>"> |
| 6555 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6556 |
</a> |
| 6557 |
</label> |
| 6558 |
</div> |
| 6559 |
<div class="col-sm-9"> |
| 6560 |
<div class="form-group row" style="align-items:center"> |
| 6561 |
<div class="col-sm-4"> |
| 6562 |
<div style="display: flex;"> |
| 6563 |
<div class="form-check form-check-inline ays_poll_loader_show_results_by"> |
| 6564 |
<label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_show_row_block"> |
| 6565 |
<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' : '' ?>/> |
| 6566 |
<span><?= __('Bar chart(Google)', "poll-maker"); ?></span> |
| 6567 |
</label> |
| 6568 |
</div> |
| 6569 |
<div class="form-check form-check-inline ays_poll_loader_show_results_by"> |
| 6570 |
<label class="form-check-label ays_poll_check_label ays_poll_block_with_hidden_row_hide_row_block"> |
| 6571 |
<input type="radio" name="ays_poll_show_result_chart" value="default_bar_chart" <?php echo ($show_chart_type == 'default_bar_chart') ? 'checked' : '' ?>/> |
| 6572 |
<span><?= __('Bar chart', "poll-maker"); ?></span> |
| 6573 |
</label> |
| 6574 |
</div> |
| 6575 |
</div> |
| 6576 |
</div> |
| 6577 |
<div class="col-sm-8" style="padding-left: 0"> |
| 6578 |
<div class="col-sm-12 only_pro" style="padding:24px 10px;"> |
| 6579 |
<div class="pro_features pro_features_popup"> |
| 6580 |
<div class="pro-features-popup-conteiner"> |
| 6581 |
<div class="pro-features-popup-title"> |
| 6582 |
<?php echo __("Show Results by", "poll-maker"); ?> |
| 6583 |
</div> |
| 6584 |
<div class="pro-features-popup-content" data-link="https://youtu.be/pvE3Ys2M3ko"> |
| 6585 |
<p> |
| 6586 |
<?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"); ?> |
| 6587 |
</p> |
| 6588 |
</div> |
| 6589 |
<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"> |
| 6590 |
<?php echo __("Upgrade PRO NOW", "poll-maker"); ?> |
| 6591 |
</div> |
| 6592 |
</div> |
| 6593 |
</div> |
| 6594 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 6595 |
</div> |
| 6596 |
<div class="form-check form-check-inline ays_poll_loader_show_results_by"> |
| 6597 |
<input type="radio"/> |
| 6598 |
<label class="form-check-label ays_poll_check_label"> |
| 6599 |
<?= __('Pie Chart', "poll-maker"); ?> |
| 6600 |
</label> |
| 6601 |
</div> |
| 6602 |
<div class="form-check form-check-inline ays_poll_loader_show_results_by"> |
| 6603 |
<input type="radio"/> |
| 6604 |
<label class="form-check-label ays_poll_check_label"> |
| 6605 |
<?= __('Column Chart', "poll-maker"); ?> |
| 6606 |
</label> |
| 6607 |
</div> |
| 6608 |
<div class="form-check form-check-inline ays_poll_loader_show_results_by if_versus_type"> |
| 6609 |
<input type="radio"/> |
| 6610 |
<label class="form-check-label ays_poll_check_label"> |
| 6611 |
<?= __('Versus Chart', "poll-maker"); ?> |
| 6612 |
</label> |
| 6613 |
</div> |
| 6614 |
<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'?>"> |
| 6615 |
<input type="radio"/> |
| 6616 |
<label class="form-check-label ays_poll_check_label" for="ays_poll_show_res_rating_chart"> |
| 6617 |
<?= __('Rating Chart', "poll-maker"); ?> |
| 6618 |
</label> |
| 6619 |
</div> |
| 6620 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 6621 |
<div class="ays-poll-new-upgrade-button-box"> |
| 6622 |
<div> |
| 6623 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 6624 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 6625 |
</div> |
| 6626 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 6627 |
</div> |
| 6628 |
</a> |
| 6629 |
<div class="ays-poll-new-watch-video-button-box"> |
| 6630 |
<div> |
| 6631 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>"> |
| 6632 |
<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"> |
| 6633 |
</div> |
| 6634 |
<div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div> |
| 6635 |
</div> |
| 6636 |
</div> |
| 6637 |
</div> |
| 6638 |
</div> |
| 6639 |
<hr class="ays_poll_hidden_hr_content" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>"> |
| 6640 |
<div class="ays_poll_hidden_block_content ays_divider_left" style="<?php echo ($show_chart_type == 'google_bar_chart') ? '' : 'display: none' ?>"> |
| 6641 |
<div class="form-group row" style="align-items: center; margin-left: 0;"> |
| 6642 |
<div class="col-sm-2"> |
| 6643 |
<label for="ays_poll_show_result_chart_google_height" style="margin: 0"> |
| 6644 |
<?= __('Chart height', "poll-maker") ?> |
| 6645 |
<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"); ?>"> |
| 6646 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6647 |
</a> |
| 6648 |
</label> |
| 6649 |
</div> |
| 6650 |
<div class="col-sm-9 ays_option_with_default_measurement_unit"> |
| 6651 |
<div> |
| 6652 |
<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; ?>"/> |
| 6653 |
</div> |
| 6654 |
<div class="ays_option_default_measurement_unit"> |
| 6655 |
<input type="text" value="px" disabled> |
| 6656 |
</div> |
| 6657 |
</div> |
| 6658 |
</div> |
| 6659 |
</div> |
| 6660 |
</div> |
| 6661 |
</div> |
| 6662 |
</div> |
| 6663 |
<hr/> |
| 6664 |
<div class="form-group row"> |
| 6665 |
<div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;"> |
| 6666 |
<div class="pro_features pro_features_popup"> |
| 6667 |
<div class="pro-features-popup-conteiner"> |
| 6668 |
<div class="pro-features-popup-title"> |
| 6669 |
<?php echo __("Results Message Based on the Answer", "poll-maker"); ?> |
| 6670 |
</div> |
| 6671 |
<div class="pro-features-popup-content" data-link="https://youtu.be/R7GEAtz-73g"> |
| 6672 |
<p> |
| 6673 |
<?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"); ?> |
| 6674 |
</p> |
| 6675 |
</div> |
| 6676 |
<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"> |
| 6677 |
<?php echo __("Upgrade PRO NOW", "poll-maker"); ?> |
| 6678 |
</div> |
| 6679 |
</div> |
| 6680 |
</div> |
| 6681 |
<div class="pro_features" style="justify-content:flex-end;"> |
| 6682 |
</div> |
| 6683 |
<p class="ays-subtitle ays-poll-subtitle-button"><?php echo __("Result message based on the answer", "poll-maker"); ?></p> |
| 6684 |
<hr> |
| 6685 |
<div class="form-group row"> |
| 6686 |
<div class="col-sm-3"> |
| 6687 |
<label for="ays_show_answer_message"> |
| 6688 |
<?php echo __('Show Answer message', "poll-maker")?> |
| 6689 |
<a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" |
| 6690 |
data-placement="top" |
| 6691 |
title="<?= __("Show different messages based on the answer.", "poll-maker"); ?>"> |
| 6692 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6693 |
</a> |
| 6694 |
</label> |
| 6695 |
</div> |
| 6696 |
<div class="col-sm-9"> |
| 6697 |
<input type="checkbox" class="ays-enable-timer1" |
| 6698 |
name="" |
| 6699 |
value="on"> |
| 6700 |
</div> |
| 6701 |
</div> |
| 6702 |
<hr/> |
| 6703 |
<!--Result message --> |
| 6704 |
<div class='form-group row'> |
| 6705 |
<div class="ays_reset_answers_div"> |
| 6706 |
<input type="button" name="ays_reset_answers" id="ays_reset_answers" class="button ays-button" value="Reset answers"> |
| 6707 |
</div> |
| 6708 |
<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"); ?>"> |
| 6709 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6710 |
</a> |
| 6711 |
</div> |
| 6712 |
<hr> |
| 6713 |
<?php |
| 6714 |
$content = '<div class="ays-field-dashboard ays-table-wrap"> |
| 6715 |
<table class="ays-answers-table "> |
| 6716 |
<thead> |
| 6717 |
<tr class="ui-state-default"> |
| 6718 |
<th>'.__('Answers', "poll-maker").'</th> |
| 6719 |
<th>'.__('Text', "poll-maker").'</th> |
| 6720 |
<th>'.__('Image', "poll-maker").'</th> |
| 6721 |
</tr> |
| 6722 |
</thead> |
| 6723 |
<tbody>'; |
| 6724 |
$content .= '<tr class="ays-interval-row"> |
| 6725 |
<td> |
| 6726 |
<span>'.__("Answer 1", "poll-maker").'</span> |
| 6727 |
<input type="hidden" name="ays_answer_id[]"> |
| 6728 |
</td> |
| 6729 |
<td> |
| 6730 |
<textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea> |
| 6731 |
</td> |
| 6732 |
<td class="ays-answer-image-td"> |
| 6733 |
<label class="ays-label" for="ays-answer"> |
| 6734 |
<a href="javascript:void(0)" class="add-answer-image" > |
| 6735 |
'.__("Add", "poll-maker").' |
| 6736 |
</a> |
| 6737 |
</label> |
| 6738 |
<div class="ays-answer-image-container ays-interval-image-container"> |
| 6739 |
<span class="ays-remove-answer-img"></span> |
| 6740 |
<img src="" class="ays-answer-img"> |
| 6741 |
<input type="hidden" name="interval_image[]" class="ays-answer-image" |
| 6742 |
> |
| 6743 |
</div> |
| 6744 |
</td> |
| 6745 |
</tr> |
| 6746 |
<tr class="ays-interval-row"> |
| 6747 |
<td> |
| 6748 |
<span>'.__("Answer 2", "poll-maker").'</span> |
| 6749 |
<input type="hidden" name="ays_answer_id[]"> |
| 6750 |
</td> |
| 6751 |
<td> |
| 6752 |
<textarea type="text" name="ays_answer_message[]" class="interval__text"></textarea> |
| 6753 |
</td> |
| 6754 |
<td class="ays-answer-image-td"> |
| 6755 |
<label class="ays-label" for="ays-answer"> |
| 6756 |
<a href="javascript:void(0)" class="add-answer-image" > |
| 6757 |
'.__("Add", "poll-maker").' |
| 6758 |
</a> |
| 6759 |
</label> |
| 6760 |
<div class="ays-answer-image-container ays-interval-image-container"> |
| 6761 |
<span class="ays-remove-answer-img"></span> |
| 6762 |
<img src="" class="ays-answer-img"> |
| 6763 |
<input type="hidden" name="interval_image[]" class="ays-answer-image" |
| 6764 |
> |
| 6765 |
</div> |
| 6766 |
</td> |
| 6767 |
</tr>'; |
| 6768 |
$content .= '</tbody></table></div>'; |
| 6769 |
echo $content; |
| 6770 |
?> |
| 6771 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 6772 |
<div class="ays-poll-new-upgrade-button-box"> |
| 6773 |
<div> |
| 6774 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>"> |
| 6775 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 6776 |
</div> |
| 6777 |
<div class="ays-poll-new-upgrade-button"><?php echo __("Upgrade", "poll-maker"); ?></div> |
| 6778 |
</div> |
| 6779 |
</a> |
| 6780 |
<div class="ays-poll-new-watch-video-button-box"> |
| 6781 |
<div> |
| 6782 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>"> |
| 6783 |
<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"> |
| 6784 |
</div> |
| 6785 |
<div class="ays-poll-new-watch-video-button"><?php echo __("Watch Video", "poll-maker"); ?></div> |
| 6786 |
</div> |
| 6787 |
<div class="ays-poll-center-big-main-button-box ays-poll-new-big-button-flex"> |
| 6788 |
<div class="ays-poll-center-big-watch-video-button-box"> |
| 6789 |
<div class="ays-poll-center-new-watch-video-demo-button"> |
| 6790 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/video_24x24.svg'?>" class="ays-poll-new-button-img-hide"> |
| 6791 |
<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"> |
| 6792 |
<?php echo __("Watch Video", "poll-maker"); ?> |
| 6793 |
</div> |
| 6794 |
</div> |
| 6795 |
<div class="ays-poll-center-big-upgrade-button-box"> |
| 6796 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link"> |
| 6797 |
<div class="ays-poll-center-new-big-upgrade-button"> |
| 6798 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/locked_24x24.svg'?>" class="ays-poll-new-button-img-hide"> |
| 6799 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL.'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover"> |
| 6800 |
<?php echo __("Upgrade", "poll-maker"); ?> |
| 6801 |
</div> |
| 6802 |
</a> |
| 6803 |
</div> |
| 6804 |
</div> |
| 6805 |
</div> |
| 6806 |
<hr/> |
| 6807 |
</div> |
| 6808 |
</div> |
| 6809 |
</div> |
| 6810 |
</div> |
| 6811 |
<div class="bottom-buttons-container"> |
| 6812 |
<div class="ays_save_default_button_box"> |
| 6813 |
<?php |
| 6814 |
if ( $prev_poll_id != "" && !is_null( $prev_poll_id ) ) { |
| 6815 |
|
| 6816 |
$other_attributes = array( |
| 6817 |
'id' => 'ays-polls-prev-button', |
| 6818 |
'data-message' => __( 'Are you sure you want to go to the previous poll page?', "poll-maker"), |
| 6819 |
'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $prev_poll_id ) ) |
| 6820 |
); |
| 6821 |
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); |
| 6822 |
} |
| 6823 |
|
| 6824 |
if ( $next_poll_id != "" && !is_null( $next_poll_id ) ) { |
| 6825 |
|
| 6826 |
$other_attributes = array( |
| 6827 |
'id' => 'ays-polls-next-button', |
| 6828 |
'data-message' => __( 'Are you sure you want to go to the next poll page?', "poll-maker"), |
| 6829 |
'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $next_poll_id ) ) |
| 6830 |
); |
| 6831 |
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); |
| 6832 |
} |
| 6833 |
?> |
| 6834 |
<div class="only_pro" style="position: relative; display: inline-block"> |
| 6835 |
<div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff"> |
| 6836 |
<div class="pro-features-popup-conteiner"> |
| 6837 |
<div class="pro-features-popup-title"> |
| 6838 |
<?php echo __("Save as Default feature of Poll", "poll-maker"); ?> |
| 6839 |
</div> |
| 6840 |
<div class="pro-features-popup-content" data-link="https://youtu.be/JBKbnrRNviI"> |
| 6841 |
<p> |
| 6842 |
<?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"); ?> |
| 6843 |
</p> |
| 6844 |
<p> |
| 6845 |
<?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"); ?> |
| 6846 |
</p> |
| 6847 |
</div> |
| 6848 |
<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"> |
| 6849 |
<?php echo __("Upgrade PRO NOW", "poll-maker"); ?> |
| 6850 |
</div> |
| 6851 |
</div> |
| 6852 |
</div> |
| 6853 |
<div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff; overflow: visible; position: static; padding: 0; font-size: 16px"> |
| 6854 |
<span class="ays_save_as_default_content_for_mobile"> |
| 6855 |
<a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" title="This property aviable only in pro version" style="text-decoration: none"> |
| 6856 |
<input type="button" class="button ays_default_btn ays-loader-banner" value="Save as default"> |
| 6857 |
</a> |
| 6858 |
<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" ); ?>"> |
| 6859 |
<i class="ays_poll_fas ays_poll_fa-info-circle"></i> |
| 6860 |
</a> |
| 6861 |
</span> |
| 6862 |
</div> |
| 6863 |
</div> |
| 6864 |
</div> |
| 6865 |
<div class='bottom-save-buttons-container'> |
| 6866 |
<div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile"> |
| 6867 |
<?php |
| 6868 |
echo $loader_iamge; |
| 6869 |
wp_nonce_field('poll_action', 'poll_action'); |
| 6870 |
$save_bottom_attributes = array( |
| 6871 |
'id' => 'ays-button-apply', |
| 6872 |
'title' => 'Ctrl + s', |
| 6873 |
'data-toggle' => 'tooltip', |
| 6874 |
'data-delay'=> '{"show":"1000"}' |
| 6875 |
); |
| 6876 |
submit_button(__('Save', "poll-maker"), 'ays-bottom-menu-buttons', 'ays_apply', false, $save_bottom_attributes); |
| 6877 |
$save_close_bottom_attributes = array('id' => 'ays-button'); |
| 6878 |
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); |
| 6879 |
submit_button(__('Cancel', "poll-maker"), 'ays-button ays_poll_cancel_bottom ays-bottom-menu-buttons', 'ays_poll_cancel', false, array()); |
| 6880 |
?> |
| 6881 |
</div> |
| 6882 |
</div> |
| 6883 |
</div> |
| 6884 |
</div> |
| 6885 |
<div> |
| 6886 |
<hr> |
| 6887 |
<!-- <div class="form-group row ays-poll-general-bundle-container"> |
| 6888 |
<div class="col-sm-12 ays-poll-general-bundle-box"> |
| 6889 |
<div class="ays-poll-general-bundle-row ays-poll-general-bundle-image-row"> |
| 6890 |
<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> |
| 6891 |
</div> |
| 6892 |
<div class="ays-poll-general-bundle-row"> |
| 6893 |
<div class="ays-poll-general-bundle-text"> |
| 6894 |
<?php //echo __( "Do not miss", $this->plugin_name ); ?> |
| 6895 |
<span><?php //echo __( "20% Christmas gift SALE", $this->plugin_name ); ?></span> |
| 6896 |
<?php //echo __( "on Poll Maker plugin!", $this->plugin_name ); ?> |
| 6897 |
<span class="ays-poll-general-bundle-color"> |
| 6898 |
<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> |
| 6899 |
</span> <?php //echo __( "plugin!", $this->plugin_name ); ?> |
| 6900 |
</div> |
| 6901 |
<p><?php //echo __( "Prepare your website for winter colds with the best polls.", $this->plugin_name ); ?></p> |
| 6902 |
<div class="ays-poll-general-bundle-sale-text ays-poll-general-bundle-color"> |
| 6903 |
<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> |
| 6904 |
</div> |
| 6905 |
</div> |
| 6906 |
<div class="ays-poll-general-bundle-row"> |
| 6907 |
<a href="https://ays-pro.com/wordpress/poll-maker" class="ays-poll-general-bundle-button" target="_blank">Get Now!</a> |
| 6908 |
</div> |
| 6909 |
</div> |
| 6910 |
</div> --> |
| 6911 |
<?php if($id === null): ?> |
| 6912 |
<div class="ays_poll_layer_container"> |
| 6913 |
<div class="ays_poll_layer_content"> |
| 6914 |
<div class="ays-poll-close-type"> |
| 6915 |
<a href="?page=poll-maker-ays"> |
| 6916 |
<img src="<?php echo POLL_MAKER_AYS_ADMIN_URL; ?>/images/icons/cross.png"> |
| 6917 |
</a> |
| 6918 |
</div> |
| 6919 |
<div class="ays_poll_layer_box"> |
| 6920 |
<div class="ays-poll-close-layer"> |
| 6921 |
<div class="ays-poll-choose-type"> |
| 6922 |
<p style="margin: 0;">Choose Your Poll Type</p> |
| 6923 |
</div> |
| 6924 |
</div> |
| 6925 |
<div class="ays_poll_layer_box_blocks"> |
| 6926 |
<label class='ays-poll-dblclick-layer'> |
| 6927 |
<input type="radio" class="ays-poll-content-type" value="choosing" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'choosing') ? 'checked' : '' ?> > |
| 6928 |
<div class="ays_poll_layer_item" > |
| 6929 |
<div class="ays_poll_layer_item_logo" > |
| 6930 |
<div class="ays_poll_layer_item_logo_overlay |
| 6931 |
ays_poll_layer_item_logo_overlay_choosing" > |
| 6932 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/choosing.png' ?>" |
| 6933 |
alt="<?= __('Choosing', "poll-maker") ?>"> |
| 6934 |
</div> |
| 6935 |
</div> |
| 6936 |
<div class="ays_poll_layer_item_title"> |
| 6937 |
<p style="margin:0px;"><?php echo __('Choosing', "poll-maker") ?><p> |
| 6938 |
<a class="ays_poll_view_demo_link" href="https://poll-plugin.com/image-choosing/" style="font-size:14px;" target="_blank">View demo</a> |
| 6939 |
<i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i> |
| 6940 |
</div> |
| 6941 |
<div class="ays_poll_layer_item_description"></div> |
| 6942 |
</div> |
| 6943 |
</label> |
| 6944 |
<label class='ays-poll-dblclick-layer'> |
| 6945 |
<input type="radio" class="ays-poll-content-type" value="rating" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'rating') ? 'checked' : '' ?> > |
| 6946 |
<div class="ays_poll_layer_item"> |
| 6947 |
<div class="ays_poll_layer_item_logo"> |
| 6948 |
<div class="ays_poll_layer_item_logo_overlay |
| 6949 |
ays_poll_layer_item_logo_overlay_rating"> |
| 6950 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/rating.png' ?>" |
| 6951 |
alt="<?= __('Rating', "poll-maker") ?>"> |
| 6952 |
</div> |
| 6953 |
</div> |
| 6954 |
<div class="ays_poll_layer_item_title"> |
| 6955 |
<p style="margin:0px;"><?php echo __('Rating', "poll-maker") ?><p> |
| 6956 |
<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> |
| 6957 |
<i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i> |
| 6958 |
</div> |
| 6959 |
<div class="ays_poll_layer_item_description"></div> |
| 6960 |
</div> |
| 6961 |
</label> |
| 6962 |
<label class='ays-poll-dblclick-layer'> |
| 6963 |
<input type="radio" class="ays-poll-content-type" value="text" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'text') ? '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 ays_poll_layer_item_logo_overlay_text" > |
| 6967 |
|
| 6968 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Text.png' ?>" |
| 6969 |
alt="<?= __('Text', "poll-maker") ?>"> |
| 6970 |
</div> |
| 6971 |
</div> |
| 6972 |
<div class="ays_poll_layer_item_title"> |
| 6973 |
<p style="margin:0px;"><?php echo __('Text', "poll-maker") ?><p> |
| 6974 |
<!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> --> |
| 6975 |
<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> |
| 6976 |
<i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i> |
| 6977 |
</div> |
| 6978 |
<div class="ays_poll_layer_item_description"></div> |
| 6979 |
</div> |
| 6980 |
</label> |
| 6981 |
<label class='ays-poll-dblclick-layer'> |
| 6982 |
<input type="radio" class="ays-poll-content-type" value="voting" name="ays_poll_choose_poll_type_modal[]" <?= ($poll['type'] == 'voting') ? 'checked' : '' ?> > |
| 6983 |
<div class="ays_poll_layer_item"> |
| 6984 |
<div class="ays_poll_layer_item_logo"> |
| 6985 |
<div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_voting" > |
| 6986 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/voting.png' ?>" alt="<?= __('Voting', "poll-maker") ?>"> |
| 6987 |
</div> |
| 6988 |
</div> |
| 6989 |
<div class="ays_poll_layer_item_title"> |
| 6990 |
<p style="margin:0px;"><?php echo __('Voting', "poll-maker") ?><p> |
| 6991 |
<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> |
| 6992 |
<i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i> |
| 6993 |
</div> |
| 6994 |
<div class="ays_poll_layer_item_description"></div> |
| 6995 |
</div> |
| 6996 |
</label> |
| 6997 |
<label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'> |
| 6998 |
<!-- <input type="radio" value="select" > --> |
| 6999 |
<div class="ays_poll_layer_item"> |
| 7000 |
<span class="ays_poll_layer_item_pro_version"> |
| 7001 |
<a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank"> |
| 7002 |
PRO |
| 7003 |
</a> |
| 7004 |
</span> |
| 7005 |
<div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro"> |
| 7006 |
<div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_dropdown" > |
| 7007 |
|
| 7008 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/Dropdown.png' ?>" |
| 7009 |
alt="<?= __('Dropdown', "poll-maker") ?>"> |
| 7010 |
</div> |
| 7011 |
</div> |
| 7012 |
<div class="ays_poll_layer_item_title"> |
| 7013 |
<p style="margin:0px;"> |
| 7014 |
<a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank"> |
| 7015 |
<?php echo __('Dropdown', "poll-maker") ?> |
| 7016 |
</a> |
| 7017 |
<p> |
| 7018 |
<!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> --> |
| 7019 |
<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> |
| 7020 |
<i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i> |
| 7021 |
</div> |
| 7022 |
<div class="ays_poll_layer_item_description"></div> |
| 7023 |
</div> |
| 7024 |
</label> |
| 7025 |
<label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'> |
| 7026 |
<!-- <input value="range" type="radio"> --> |
| 7027 |
<div class="ays_poll_layer_item"> |
| 7028 |
<span class="ays_poll_layer_item_pro_version"> |
| 7029 |
<a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank"> |
| 7030 |
PRO |
| 7031 |
</a> |
| 7032 |
</span> |
| 7033 |
<div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro"> |
| 7034 |
<div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_range" > |
| 7035 |
|
| 7036 |
<img src="<?= POLL_MAKER_AYS_ADMIN_URL . '/images/polls/range.png' ?>" |
| 7037 |
alt="<?= __('Range', "poll-maker") ?>"> |
| 7038 |
</div> |
| 7039 |
</div> |
| 7040 |
<div class="ays_poll_layer_item_title"> |
| 7041 |
<p style="margin:0px;"> |
| 7042 |
<a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank"> |
| 7043 |
<?php echo __('Range', "poll-maker") ?> |
| 7044 |
</a> |
| 7045 |
<p> |
| 7046 |
<!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> --> |
| 7047 |
<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> |
| 7048 |
<i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i> |
| 7049 |
</div> |
| 7050 |
<div class="ays_poll_layer_item_description"></div> |
| 7051 |
</div> |
| 7052 |
</label> |
| 7053 |
<label class='ays-poll-dblclick-layer ays-poll-type-pro-feature'> |
| 7054 |
<!-- <input value="versus" type="radio"> --> |
| 7055 |
<div class="ays_poll_layer_item"> |
| 7056 |
<span class="ays_poll_layer_item_pro_version"> |
| 7057 |
<a class="ays_poll_layer_item_pro_version_content" href="https://ays-pro.com/wordpress/poll-maker" target="_blank"> |
| 7058 |
PRO |
| 7059 |
</a> |
| 7060 |
</span> |
| 7061 |
<div class="ays_poll_layer_item_logo ays_poll_layer_item_logo_pro"> |
| 7062 |
<div class="ays_poll_layer_item_logo_overlay ays_poll_layer_item_logo_overlay_versus" > |
| 7063 |
|
| 7064 |
<span>VS</span> |
| 7065 |
</div> |
| 7066 |
</div> |
| 7067 |
<div class="ays_poll_layer_item_title"> |
| 7068 |
<p style="margin:0px;"> |
| 7069 |
<a class="ays_poll_polls_type_name" href="https://ays-pro.com/wordpress/poll-maker" target="_blank"> |
| 7070 |
<?php echo __('Versus', "poll-maker") ?> |
| 7071 |
</a> |
| 7072 |
<p> |
| 7073 |
<!-- <a href="https://bit.ly/3P42n1R" style="font-size:12px;font-style: italic;" target="_blank">View demo</a> --> |
| 7074 |
<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> |
| 7075 |
<i class="ays_poll_fas ays_poll_fa_play" aria-hidden="true"></i> |
| 7076 |
</div> |
| 7077 |
<div class="ays_poll_layer_item_description"></div> |
| 7078 |
</div> |
| 7079 |
</label> |
| 7080 |
</div> |
| 7081 |
<div class="ays_poll_select_button_layer"> |
| 7082 |
<div class="ays_poll_select_button_item"> |
| 7083 |
<input type="button" class="ays_poll_layer_button" name="" value="Next" data-type="<?php echo $poll['type']; ?>"> |
| 7084 |
<input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" > |
| 7085 |
</div> |
| 7086 |
</div> |
| 7087 |
</div> |
| 7088 |
</div> |
| 7089 |
</div> |
| 7090 |
<?php else: ?> |
| 7091 |
<input type="hidden" name="ays-poll-type" id="poll_choose_type" value="<?php echo $poll['type']; ?>" > |
| 7092 |
<?php endif; ?> |
| 7093 |
</form> |
| 7094 |
<div class="ays-modal" id="pro-features-popup-modal"> |
| 7095 |
<div class="ays-modal-content"> |
| 7096 |
<!-- Modal Header --> |
| 7097 |
<div class="ays-modal-header"> |
| 7098 |
<span class="ays-close-pro-popup">×</span> |
| 7099 |
<!-- <h2></h2> --> |
| 7100 |
</div> |
| 7101 |
|
| 7102 |
<!-- Modal body --> |
| 7103 |
<div class="ays-modal-body"> |
| 7104 |
<div class="row"> |
| 7105 |
<div class="col-sm-6 pro-features-popup-modal-left-section"> |
| 7106 |
</div> |
| 7107 |
<div class="col-sm-6 pro-features-popup-modal-right-section"> |
| 7108 |
<div class="pro-features-popup-modal-right-box"> |
| 7109 |
<div class="pro-features-popup-modal-right-box-icon"><i class="ays_poll_fa ays_poll_fa-lock"></i></div> |
| 7110 |
|
| 7111 |
<div class="pro-features-popup-modal-right-box-title"></div> |
| 7112 |
|
| 7113 |
<div class="pro-features-popup-modal-right-box-content"></div> |
| 7114 |
|
| 7115 |
<div class="pro-features-popup-modal-right-box-button"> |
| 7116 |
<a href="#" class="pro-features-popup-modal-right-box-link" target="_blank"></a> |
| 7117 |
</div> |
| 7118 |
</div> |
| 7119 |
</div> |
| 7120 |
</div> |
| 7121 |
</div> |
| 7122 |
|
| 7123 |
<!-- Modal footer --> |
| 7124 |
<div class="ays-modal-footer" style="display:none"> |
| 7125 |
</div> |
| 7126 |
</div> |
| 7127 |
</div> |
| 7128 |
</div> |
| 7129 |
</div> |