← All changes
|
includes/lists/class-poll-maker-polls-list-table.php
+15
-0
6.4.1
→
6.5.1
View file →
| @@ -614,8 +614,14 @@ | ||
| 614 | 614 | |
| 615 | 615 | // Poll title font size for mobile |
| 616 | 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"; |
| 617 | 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 | + | |
| 618 | 624 | // Poll title alignment |
| 619 | 625 | $poll_title_alignment = ( isset($data['ays_poll_title_alignment']) && $data['ays_poll_title_alignment'] != "" ) ? sanitize_text_field($data['ays_poll_title_alignment']) : "center"; |
| 620 | 626 | |
| 621 | 627 | // Poll title alignment mobile |
| @@ -620,8 +626,11 @@ | ||
| 620 | 626 | |
| 621 | 627 | // Poll title alignment mobile |
| 622 | 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"; |
| 623 | 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 | + | |
| 624 | 633 | // ===== Poll text type options start ===== |
| 625 | 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"; |
| 626 | 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"; |
| 627 | 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']) : ""; |
| @@ -672,8 +681,9 @@ | ||
| 672 | 681 | 'twitter_link' => '', |
| 673 | 682 | 'vkontakte_link' => '', |
| 674 | 683 | 'youtube_link' => '', |
| 675 | 684 | 'tiktok_link' => '', |
| 685 | + 'instagram_link' => '', | |
| 676 | 686 | ); |
| 677 | 687 | |
| 678 | 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'] ) : ''; |
| 679 | 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'] ) : ''; |
| @@ -680,8 +690,9 @@ | ||
| 680 | 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'] ) : ''; |
| 681 | 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'] ) : ''; |
| 682 | 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'] ) : ''; |
| 683 | 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'] ) : ''; | |
| 684 | 695 | |
| 685 | 696 | $social_links = array( |
| 686 | 697 | 'linkedin_link' => $linkedin_link, |
| 687 | 698 | 'facebook_link' => $facebook_link, |
| @@ -688,8 +699,9 @@ | ||
| 688 | 699 | 'twitter_link' => $twitter_link, |
| 689 | 700 | 'vkontakte_link' => $vkontakte_link, |
| 690 | 701 | 'youtube_link' => $youtube_link, |
| 691 | 702 | 'tiktok_link' => $tiktok_link, |
| 703 | + 'instagram_link' => $instagram_link, | |
| 692 | 704 | ); |
| 693 | 705 | |
| 694 | 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'; |
| 695 | 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; |
| @@ -723,8 +735,10 @@ | ||
| 723 | 735 | 'poll_answer_box_shadow_z_offset' => $poll_answer_box_shadow_z_offset, |
| 724 | 736 | 'title_bg_color' => $title_bg_color, //aray |
| 725 | 737 | 'poll_title_font_size' => $poll_title_font_size, |
| 726 | 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, | |
| 727 | 741 | 'icon_size' => $icon_size, |
| 728 | 742 | 'width' => $width, |
| 729 | 743 | 'width_for_mobile' => $width_for_mobile, |
| 730 | 744 | "poll_min_height" => $poll_min_height, |
| @@ -867,8 +881,9 @@ | ||
| 867 | 881 | 'poll_answer_image_height_for_mobile' => $poll_answer_image_height_for_mobile, |
| 868 | 882 | 'poll_answer_image_border_radius' => $poll_answer_image_border_radius, |
| 869 | 883 | 'poll_title_alignment' => $poll_title_alignment, |
| 870 | 884 | 'poll_title_alignment_mobile' => $poll_title_alignment_mobile, |
| 885 | + 'poll_title_text_transform' => $poll_title_text_transform, | |
| 871 | 886 | // Text type options |
| 872 | 887 | 'poll_text_type_length_enable' => $poll_text_type_length_enable, |
| 873 | 888 | 'poll_text_type_limit_type' => $poll_text_type_limit_type, |
| 874 | 889 | 'poll_text_type_limit_length' => $poll_text_type_limit_length, |