← All changes
|
includes/lists/class-poll-maker-polls-list-table.php
+23
-0
6.3.7
→
6.5.1
View file →
| @@ -451,8 +451,14 @@ | ||
| 451 | 451 | |
| 452 | 452 | // Poll schedule container on/off |
| 453 | 453 | $poll_show_container = (isset($data['ays_show_poll_container']) && $data['ays_show_poll_container'] == 'on') ? 'on' : 'off'; |
| 454 | 454 | |
| 455 | + // Show votes count per answers before voting | |
| 456 | + $show_votes_before_voting = (isset($data['ays_show_votes_before_voting']) && $data['ays_show_votes_before_voting'] == 'on') ? 'on' : 'off'; | |
| 457 | + $show_votes_before_voting_by = (isset($data['ays_show_votes_before_voting_by']) && $data['ays_show_votes_before_voting_by'] != '') ? $data['ays_show_votes_before_voting_by'] : 'by_count'; | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 455 | 461 | // Poll see results button in limitations |
| 456 | 462 | $poll_see_result_button = (isset($data['ays_see_result_show']) && $data['ays_see_result_show'] == 'on') ? 'on' : 'off'; |
| 457 | 463 | $poll_see_result_radio = (isset($data['ays_poll_see_result_show']) && $data['ays_poll_see_result_show'] != '') ? sanitize_text_field($data['ays_poll_see_result_show']) : ''; |
| 458 | 464 | |
| @@ -608,8 +614,14 @@ | ||
| 608 | 614 | |
| 609 | 615 | // Poll title font size for mobile |
| 610 | 616 | $poll_title_font_size_mobile = (isset($data['ays_poll_title_font_size_mobile']) && $data['ays_poll_title_font_size_mobile'] != "" && $data['ays_poll_title_font_size_mobile'] > 0) ? sanitize_text_field($data['ays_poll_title_font_size_mobile']) : "20"; |
| 611 | 617 | |
| 618 | + // Poll title font weight | |
| 619 | + $poll_title_font_weight = (isset($data['ays_poll_title_font_weight']) && $data['ays_poll_title_font_weight'] != "") ? sanitize_text_field($data['ays_poll_title_font_weight']) : "normal"; | |
| 620 | + | |
| 621 | + // Poll title font weight for mobile | |
| 622 | + $poll_title_font_weight_mobile = (isset($data['ays_poll_title_font_weight_mobile']) && $data['ays_poll_title_font_weight_mobile'] != "") ? sanitize_text_field($data['ays_poll_title_font_weight_mobile']) : "normal"; | |
| 623 | + | |
| 612 | 624 | // Poll title alignment |
| 613 | 625 | $poll_title_alignment = ( isset($data['ays_poll_title_alignment']) && $data['ays_poll_title_alignment'] != "" ) ? sanitize_text_field($data['ays_poll_title_alignment']) : "center"; |
| 614 | 626 | |
| 615 | 627 | // Poll title alignment mobile |
| @@ -614,8 +626,11 @@ | ||
| 614 | 626 | |
| 615 | 627 | // Poll title alignment mobile |
| 616 | 628 | $poll_title_alignment_mobile = ( isset($data['ays_poll_title_alignment_mobile']) && $data['ays_poll_title_alignment_mobile'] != "" ) ? sanitize_text_field($data['ays_poll_title_alignment_mobile']) : "center"; |
| 617 | 629 | |
| 630 | + // Poll title text transform | |
| 631 | + $poll_title_text_transform = ( isset($data['ays_poll_title_text_transform']) && $data['ays_poll_title_text_transform'] != "" ) ? sanitize_text_field($data['ays_poll_title_text_transform']) : "none"; | |
| 632 | + | |
| 618 | 633 | // ===== Poll text type options start ===== |
| 619 | 634 | $poll_text_type_length_enable = ( isset($data['ays_poll_enable_question_length']) && $data['ays_poll_enable_question_length'] != "" ) ? sanitize_text_field($data['ays_poll_enable_question_length']) : "off"; |
| 620 | 635 | $poll_text_type_limit_type = ( isset($data['ays_poll_question_limit_text_type']) && $data['ays_poll_question_limit_text_type'] != "" ) ? sanitize_text_field($data['ays_poll_question_limit_text_type']) : "characters"; |
| 621 | 636 | $poll_text_type_limit_length = ( isset($data['ays_poll_question_text_max_length']) && $data['ays_poll_question_text_max_length'] != "" ) ? sanitize_text_field($data['ays_poll_question_text_max_length']) : ""; |
| @@ -666,8 +681,9 @@ | ||
| 666 | 681 | 'twitter_link' => '', |
| 667 | 682 | 'vkontakte_link' => '', |
| 668 | 683 | 'youtube_link' => '', |
| 669 | 684 | 'tiktok_link' => '', |
| 685 | + 'instagram_link' => '', | |
| 670 | 686 | ); |
| 671 | 687 | |
| 672 | 688 | $linkedin_link = isset($ays_social_links['ays_linkedin_link']) && sanitize_text_field( $ays_social_links['ays_linkedin_link'] ) != '' ? sanitize_text_field( $ays_social_links['ays_linkedin_link'] ) : ''; |
| 673 | 689 | $facebook_link = isset($ays_social_links['ays_facebook_link']) && sanitize_text_field( $ays_social_links['ays_facebook_link'] ) != '' ? sanitize_text_field( $ays_social_links['ays_facebook_link'] ) : ''; |
| @@ -674,8 +690,9 @@ | ||
| 674 | 690 | $twitter_link = isset($ays_social_links['ays_twitter_link']) && sanitize_text_field( $ays_social_links['ays_twitter_link'] ) != '' ? sanitize_text_field( $ays_social_links['ays_twitter_link'] ) : ''; |
| 675 | 691 | $vkontakte_link = isset($ays_social_links['ays_vkontakte_link']) && sanitize_text_field( $ays_social_links['ays_vkontakte_link'] ) != '' ? sanitize_text_field( $ays_social_links['ays_vkontakte_link'] ) : ''; |
| 676 | 692 | $youtube_link = isset($ays_social_links['ays_youtube_link']) && sanitize_text_field( $ays_social_links['ays_youtube_link'] ) != '' ? sanitize_text_field( $ays_social_links['ays_youtube_link'] ) : ''; |
| 677 | 693 | $tiktok_link = isset($ays_social_links['ays_tiktok_link']) && sanitize_text_field( $ays_social_links['ays_tiktok_link'] ) != '' ? sanitize_text_field( $ays_social_links['ays_tiktok_link'] ) : ''; |
| 694 | + $instagram_link = isset($ays_social_links['ays_instagram_link']) && sanitize_text_field( $ays_social_links['ays_instagram_link'] ) != '' ? sanitize_text_field( $ays_social_links['ays_instagram_link'] ) : ''; | |
| 678 | 695 | |
| 679 | 696 | $social_links = array( |
| 680 | 697 | 'linkedin_link' => $linkedin_link, |
| 681 | 698 | 'facebook_link' => $facebook_link, |
| @@ -682,8 +699,9 @@ | ||
| 682 | 699 | 'twitter_link' => $twitter_link, |
| 683 | 700 | 'vkontakte_link' => $vkontakte_link, |
| 684 | 701 | 'youtube_link' => $youtube_link, |
| 685 | 702 | 'tiktok_link' => $tiktok_link, |
| 703 | + 'instagram_link' => $instagram_link, | |
| 686 | 704 | ); |
| 687 | 705 | |
| 688 | 706 | $show_chart_type = (isset($_POST['ays_poll_show_result_chart']) && sanitize_text_field( $_POST['ays_poll_show_result_chart'] ) != "") ? sanitize_text_field( $_POST['ays_poll_show_result_chart'] ) : 'default_bar_chart'; |
| 689 | 707 | $show_chart_type_google_height = (isset($_POST['ays_poll_show_result_chart_google_height']) && $_POST['ays_poll_show_result_chart_google_height'] != "" && $_POST['ays_poll_show_result_chart_google_height'] != 0) ? absint( intval($_POST['ays_poll_show_result_chart_google_height']) ) : 400; |
| @@ -717,8 +735,10 @@ | ||
| 717 | 735 | 'poll_answer_box_shadow_z_offset' => $poll_answer_box_shadow_z_offset, |
| 718 | 736 | 'title_bg_color' => $title_bg_color, //aray |
| 719 | 737 | 'poll_title_font_size' => $poll_title_font_size, |
| 720 | 738 | 'poll_title_font_size_mobile' => $poll_title_font_size_mobile, |
| 739 | + 'poll_title_font_weight' => $poll_title_font_weight, | |
| 740 | + 'poll_title_font_weight_mobile' => $poll_title_font_weight_mobile, | |
| 721 | 741 | 'icon_size' => $icon_size, |
| 722 | 742 | 'width' => $width, |
| 723 | 743 | 'width_for_mobile' => $width_for_mobile, |
| 724 | 744 | "poll_min_height" => $poll_min_height, |
| @@ -794,8 +814,10 @@ | ||
| 794 | 814 | "enable_view_more_button" => $enable_view_more_button, |
| 795 | 815 | "poll_view_more_button_count" => $poll_view_more_button_count, |
| 796 | 816 | "answer_sort_type" => $poll_answer_ordering, |
| 797 | 817 | "show_answers_numbering" => $show_answers_numbering, |
| 818 | + "show_votes_before_voting" => $show_votes_before_voting, | |
| 819 | + "show_votes_before_voting_by" => $show_votes_before_voting_by, | |
| 798 | 820 | // Settings tab end |
| 799 | 821 | 'hide_results' => $hide_results, |
| 800 | 822 | 'hide_result_message' => $hide_result_message, |
| 801 | 823 | 'hide_results_text' => $hide_results_text, |
| @@ -859,8 +881,9 @@ | ||
| 859 | 881 | 'poll_answer_image_height_for_mobile' => $poll_answer_image_height_for_mobile, |
| 860 | 882 | 'poll_answer_image_border_radius' => $poll_answer_image_border_radius, |
| 861 | 883 | 'poll_title_alignment' => $poll_title_alignment, |
| 862 | 884 | 'poll_title_alignment_mobile' => $poll_title_alignment_mobile, |
| 885 | + 'poll_title_text_transform' => $poll_title_text_transform, | |
| 863 | 886 | // Text type options |
| 864 | 887 | 'poll_text_type_length_enable' => $poll_text_type_length_enable, |
| 865 | 888 | 'poll_text_type_limit_type' => $poll_text_type_limit_type, |
| 866 | 889 | 'poll_text_type_limit_length' => $poll_text_type_limit_length, |