PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.5.1
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.5.1
6.5.1 6.5.0 6.4.9 6.4.8 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.1 6.4.0 6.3.9 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 All 154 releases
← All changes | admin/partials/poll-maker-ays-polls-actions.php +241 -174 6.3.3 → 6.5.1 View file →
@@ -68,50 +68,52 @@
68 68
69 69 $poll_category_page_url = admin_url( 'admin.php?page=poll-maker-ays-cats' );
70 70
71 71 $poll_message_vars = array(
72 - '%%user_name%%' =>esc_html__("User Name", "poll-maker"),
73 - '%%user_email%%' =>esc_html__("User Email", "poll-maker"),
74 - '%%user_phone%%' =>esc_html__("User Phone", "poll-maker"),
75 - '%%poll_title%%' =>esc_html__("Poll title", "poll-maker"),
76 - '%%poll_id%%' =>esc_html__("Poll ID", "poll-maker"),
77 - '%%users_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
78 - '%%users_last_name%%' =>esc_html__("User's Last Name", "poll-maker"),
79 - '%%creation_date%%' =>esc_html__("Creation date of the poll", "poll-maker"),
80 - '%%current_date%%' =>esc_html__("Current Date", "poll-maker"),
81 - '%%current_time%%' =>esc_html__("Current Time", "poll-maker"),
82 - '%%current_day%%' =>esc_html__("Current Day", "poll-maker"),
83 - '%%current_month%%' =>esc_html__("Current Month", "poll-maker"),
84 - '%%current_poll_author%%' =>esc_html__("Author of the current poll", "poll-maker"),
85 - '%%current_poll_author_email%%' =>esc_html__("Author's Email of the current poll", "poll-maker"),
86 - '%%current_poll_author_nickname%%' =>esc_html__("Author's Nick Name of the current poll", "poll-maker"),
87 - '%%current_poll_author_display_name%%' =>esc_html__("Author's Display Name of the current poll", "poll-maker"),
88 - '%%current_poll_author_website_url%%' =>esc_html__("Author's Website URl of the current poll", "poll-maker"),
89 - '%%admin_email%%' =>esc_html__("Admin Email", "poll-maker"),
90 - '%%user_wordpress_roles%%' =>esc_html__("User's Wordpress Roles", "poll-maker"),
91 - "%%user_wordpress_email%%" =>esc_html__("User's WordPress profile email", "poll-maker"),
92 - '%%user_wordpress_website%%' =>esc_html__("User's Wordpress Website", "poll-maker"),
93 - '%%user_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
94 - '%%user_display_name%%' =>esc_html__("User's Display Name", "poll-maker"),
95 - '%%user_nickname%%' =>esc_html__("User's Nick Name", "poll-maker"),
96 - '%%user_ip_address%%' =>esc_html__("User's IP address", "poll-maker"),
97 - '%%user_id%%' =>esc_html__("User's ID", "poll-maker"),
98 - '%%user_registered%%' =>esc_html__("User's Registered Date", "poll-maker"),
99 - '%%poll_pass_count%%' =>esc_html__("Polls pass count", "poll-maker"),
100 - '%%passed_poll_count_per_user%%' =>esc_html__("Passed polls count per user", "poll-maker"),
101 - '%%current_poll_page_link%%' =>esc_html__("Current polls posted link", "poll-maker"),
102 - '%%post_title%%' =>esc_html__("Post Title", "poll-maker"),
103 - '%%post_author_email%%' =>esc_html__("Post Author Email", "poll-maker"),
104 - '%%post_author_display_name%%' =>esc_html__("Post Author Display Name", "poll-maker"),
105 - '%%post_author_first_name%%' =>esc_html__("Post Author First Name", "poll-maker"),
106 - '%%post_author_last_name%%' =>esc_html__("Post Author Last Name", "poll-maker"),
107 - '%%post_author_nickname%%' =>esc_html__("Post Author Nickname", "poll-maker"),
108 - '%%post_author_website_url%%' =>esc_html__("Post Author Website URL", "poll-maker"),
109 - '%%post_author_roles%%' =>esc_html__("Post Author Roles", "poll-maker"),
110 - '%%post_id%%' =>esc_html__("Post ID", "poll-maker"),
111 - '%%site_title%%' =>esc_html__("Site Title", "poll-maker"),
112 - '%%site_description%%' =>esc_html__("Site Description", "poll-maker"),
113 - '%%home_page_url%%' =>esc_html__("Home Page", "poll-maker"),
72 + '%%user_name%%' =>esc_html__("User Name", "poll-maker"),
73 + '%%user_email%%' =>esc_html__("User Email", "poll-maker"),
74 + '%%user_phone%%' =>esc_html__("User Phone", "poll-maker"),
75 + '%%poll_title%%' =>esc_html__("Poll title", "poll-maker"),
76 + '%%poll_category_title%%' =>esc_html__("Poll category title", "poll-maker"),
77 + '%%poll_id%%' =>esc_html__("Poll ID", "poll-maker"),
78 + '%%users_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
79 + '%%users_last_name%%' =>esc_html__("User's Last Name", "poll-maker"),
80 + '%%creation_date%%' =>esc_html__("Creation date of the poll", "poll-maker"),
81 + '%%current_date%%' =>esc_html__("Current Date", "poll-maker"),
82 + '%%current_time%%' =>esc_html__("Current Time", "poll-maker"),
83 + '%%current_day%%' =>esc_html__("Current Day", "poll-maker"),
84 + '%%current_month%%' =>esc_html__("Current Month", "poll-maker"),
85 + '%%current_poll_author%%' =>esc_html__("Author of the current poll", "poll-maker"),
86 + '%%current_poll_author_email%%' =>esc_html__("Author's Email of the current poll", "poll-maker"),
87 + '%%current_poll_author_nickname%%' =>esc_html__("Author's Nick Name of the current poll", "poll-maker"),
88 + '%%current_poll_author_display_name%%' =>esc_html__("Author's Display Name of the current poll", "poll-maker"),
89 + '%%current_poll_author_website_url%%' =>esc_html__("Author's Website URl of the current poll", "poll-maker"),
90 + '%%current_poll_author_registered%%' =>esc_html__("Author's Registered Date of the current poll", "poll-maker"),
91 + '%%admin_email%%' =>esc_html__("Admin Email", "poll-maker"),
92 + '%%user_wordpress_roles%%' =>esc_html__("User's Wordpress Roles", "poll-maker"),
93 + "%%user_wordpress_email%%" =>esc_html__("User's WordPress profile email", "poll-maker"),
94 + '%%user_wordpress_website%%' =>esc_html__("User's Wordpress Website", "poll-maker"),
95 + '%%user_first_name%%' =>esc_html__("User's First Name", "poll-maker"),
96 + '%%user_display_name%%' =>esc_html__("User's Display Name", "poll-maker"),
97 + '%%user_nickname%%' =>esc_html__("User's Nick Name", "poll-maker"),
98 + '%%user_ip_address%%' =>esc_html__("User's IP address", "poll-maker"),
99 + '%%user_id%%' =>esc_html__("User's ID", "poll-maker"),
100 + '%%user_registered%%' =>esc_html__("User's Registered Date", "poll-maker"),
101 + '%%poll_pass_count%%' =>esc_html__("Polls pass count", "poll-maker"),
102 + '%%passed_poll_count_per_user%%' =>esc_html__("Passed polls count per user", "poll-maker"),
103 + '%%current_poll_page_link%%' =>esc_html__("Current polls posted link", "poll-maker"),
104 + '%%post_title%%' =>esc_html__("Post Title", "poll-maker"),
105 + '%%post_author_email%%' =>esc_html__("Post Author Email", "poll-maker"),
106 + '%%post_author_display_name%%' =>esc_html__("Post Author Display Name", "poll-maker"),
107 + '%%post_author_first_name%%' =>esc_html__("Post Author First Name", "poll-maker"),
108 + '%%post_author_last_name%%' =>esc_html__("Post Author Last Name", "poll-maker"),
109 + '%%post_author_nickname%%' =>esc_html__("Post Author Nickname", "poll-maker"),
110 + '%%post_author_website_url%%' =>esc_html__("Post Author Website URL", "poll-maker"),
111 + '%%post_author_roles%%' =>esc_html__("Post Author Roles", "poll-maker"),
112 + '%%post_id%%' =>esc_html__("Post ID", "poll-maker"),
113 + '%%site_title%%' =>esc_html__("Site Title", "poll-maker"),
114 + '%%site_description%%' =>esc_html__("Site Description", "poll-maker"),
115 + '%%home_page_url%%' =>esc_html__("Home Page", "poll-maker"),
114 116 );
115 117
116 118 $poll_message_vars_html = $this->ays_poll_generate_message_vars_html( $poll_message_vars );
117 119
@@ -214,8 +216,10 @@
214 216 'poll_answer_font_size_mobile' => '16',
215 217 'show_passed_users' => 'off',
216 218 'logo_image' => '',
217 219 'dont_show_poll_cont' => 'off',
220 + 'show_votes_before_voting' => 'off',
221 + 'show_votes_before_voting_by' => 'by_count',
218 222 'see_result_button' => 'on',
219 223 'see_result_radio' => 'ays_see_result_button',
220 224 'loader_font_size' => '64',
221 225 'show_answers_numbering' => 'none',
@@ -226,10 +230,13 @@
226 230 'poll_question_size_mobile' => 16,
227 231 'poll_question_image_object_fit' => "cover",
228 232 'poll_title_font_size' => 20,
229 233 'poll_title_font_size_mobile' => 20,
234 + 'poll_title_font_weight' => "normal",
235 + 'poll_title_font_weight_mobile' => "normal",
230 236 'poll_title_alignment' => "center",
231 237 'poll_title_alignment_mobile' => "center",
238 + 'poll_title_text_transform' => "none",
232 239 'poll_text_type_length_enable' => "off",
233 240 'poll_text_type_limit_type' => "characters",
234 241 'poll_text_type_limit_length' => "",
235 242 'poll_text_type_limit_message' => "off",
@@ -704,8 +711,14 @@
704 711
705 712 // Poll title font size for mobile
706 713 $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";
707 714
715 +// Poll title font weight
716 +$poll_title_font_weight = (isset($options['poll_title_font_weight']) && $options['poll_title_font_weight'] != "") ? esc_attr($options['poll_title_font_weight']) : "normal";
717 +
718 +// Poll title font weight mobile
719 +$poll_title_font_weight_mobile = (isset($options['poll_title_font_weight_mobile']) && $options['poll_title_font_weight_mobile'] != "") ? esc_attr($options['poll_title_font_weight_mobile']) : $poll_title_font_weight;
720 +
708 721 // Poll title alignment
709 722 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
710 723
711 724 // Poll title alignment mobile
@@ -710,11 +723,21 @@
710 723
711 724 // Poll title alignment mobile
712 725 $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;
713 726
727 +// Poll title text transform
728 +$poll_title_text_transform = ( isset($options['poll_title_text_transform']) && $options['poll_title_text_transform'] != "" ) ? esc_attr($options['poll_title_text_transform']) : "none";
729 +
714 730 // Poll view type
715 731 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
716 732
733 +
734 +$options['show_votes_before_voting'] = isset($options['show_votes_before_voting']) ? $options['show_votes_before_voting'] : 'off';
735 +$show_votes_before_voting = (isset($options['show_votes_before_voting']) && $options['show_votes_before_voting'] == 'on') ? true : false;
736 +$show_votes_before_voting_by = (isset($options['show_votes_before_voting_by']) && $options['show_votes_before_voting_by'] != '') ? $options['show_votes_before_voting_by'] : 'by_count';
737 +
738 +
739 +
717 740 // ===== Poll text type options start =====
718 741 $poll_text_type_length_enable = ( isset($options['poll_text_type_length_enable']) && $options['poll_text_type_length_enable'] == "on" ) ? true : false;
719 742 $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";
720 743 $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']) : "";
@@ -802,8 +825,9 @@
802 825 'twitter_link' => '',
803 826 'vkontakte_link' => '',
804 827 'instagram_link' => '',
805 828 'youtube_link' => '',
829 + 'tiktok_link' => '',
806 830 );
807 831 $linkedin_link = isset($social_links['linkedin_link']) && $social_links['linkedin_link'] != '' ? $social_links['linkedin_link'] : '';
808 832 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
809 833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
@@ -808,8 +832,10 @@
808 832 $facebook_link = isset($social_links['facebook_link']) && $social_links['facebook_link'] != '' ? $social_links['facebook_link'] : '';
809 833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
810 834 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
811 835 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
836 +$tiktok_link = isset($social_links['tiktok_link']) && $social_links['tiktok_link'] != '' ? $social_links['tiktok_link'] : '';
837 +$instagram_link = isset($social_links['instagram_link']) && $social_links['instagram_link'] != '' ? $social_links['instagram_link'] : '';
812 838 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
813 839
814 840 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
815 841 $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;
@@ -2083,8 +2109,77 @@
2083 2109 </div>
2084 2110 <hr>
2085 2111 <div class="form-group row">
2086 2112 <div class="col-sm-4">
2113 + <label for='ays_poll_title_font_weight'>
2114 + <?php echo esc_html__('Title font weight', "poll-maker"); ?>
2115 + <a class="ays_help"
2116 + data-toggle="tooltip"
2117 + data-placement="top"
2118 + title="<?php echo esc_html__("Specify the font weight of the title.", "poll-maker"); ?>">
2119 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2120 + </a>
2121 + </label>
2122 + </div>
2123 + <div class="col-sm-8 ays_divider_left">
2124 + <div>
2125 + <div>
2126 + <label for='ays_poll_title_font_weight'>
2127 + <?php echo esc_html__('On desktop', "poll-maker"); ?>
2128 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for PC devices.', "poll-maker")?>">
2129 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2130 + </a>
2131 + </label>
2132 + </div>
2133 + <div>
2134 + <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight" name="ays_poll_title_font_weight">
2135 + <option value="normal" <?php echo ($poll_title_font_weight == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2136 + <option value="bold" <?php echo ($poll_title_font_weight == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2137 + <option value="bolder" <?php echo ($poll_title_font_weight == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2138 + <option value="100" <?php echo ($poll_title_font_weight == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2139 + <option value="200" <?php echo ($poll_title_font_weight == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2140 + <option value="300" <?php echo ($poll_title_font_weight == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2141 + <option value="400" <?php echo ($poll_title_font_weight == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2142 + <option value="500" <?php echo ($poll_title_font_weight == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2143 + <option value="600" <?php echo ($poll_title_font_weight == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2144 + <option value="700" <?php echo ($poll_title_font_weight == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2145 + <option value="800" <?php echo ($poll_title_font_weight == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2146 + <option value="900" <?php echo ($poll_title_font_weight == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2147 + </select>
2148 + </div>
2149 + </div>
2150 + <hr>
2151 + <div>
2152 + <div>
2153 + <label for='ays_poll_title_font_weight_mobile'>
2154 + <?php echo esc_html__('On mobile', "poll-maker"); ?>
2155 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Define the font weight for mobile devices.', "poll-maker")?>">
2156 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2157 + </a>
2158 + </label>
2159 + </div>
2160 + <div>
2161 + <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_font_weight_mobile" name="ays_poll_title_font_weight_mobile">
2162 + <option value="normal" <?php echo ($poll_title_font_weight_mobile == "normal") ? "selected" : "";?>><?php echo esc_html__("Normal", "poll-maker"); ?></option>
2163 + <option value="bold" <?php echo ($poll_title_font_weight_mobile == "bold") ? "selected" : "";?>><?php echo esc_html__("Bold", "poll-maker"); ?></option>
2164 + <option value="bolder" <?php echo ($poll_title_font_weight_mobile == "bolder") ? "selected" : "";?>><?php echo esc_html__("Bolder", "poll-maker"); ?></option>
2165 + <option value="100" <?php echo ($poll_title_font_weight_mobile == "100") ? "selected" : "";?>><?php echo esc_html__("100", "poll-maker"); ?></option>
2166 + <option value="200" <?php echo ($poll_title_font_weight_mobile == "200") ? "selected" : "";?>><?php echo esc_html__("200", "poll-maker"); ?></option>
2167 + <option value="300" <?php echo ($poll_title_font_weight_mobile == "300") ? "selected" : "";?>><?php echo esc_html__("300", "poll-maker"); ?></option>
2168 + <option value="400" <?php echo ($poll_title_font_weight_mobile == "400") ? "selected" : "";?>><?php echo esc_html__("400", "poll-maker"); ?></option>
2169 + <option value="500" <?php echo ($poll_title_font_weight_mobile == "500") ? "selected" : "";?>><?php echo esc_html__("500", "poll-maker"); ?></option>
2170 + <option value="600" <?php echo ($poll_title_font_weight_mobile == "600") ? "selected" : "";?>><?php echo esc_html__("600", "poll-maker"); ?></option>
2171 + <option value="700" <?php echo ($poll_title_font_weight_mobile == "700") ? "selected" : "";?>><?php echo esc_html__("700", "poll-maker"); ?></option>
2172 + <option value="800" <?php echo ($poll_title_font_weight_mobile == "800") ? "selected" : "";?>><?php echo esc_html__("800", "poll-maker"); ?></option>
2173 + <option value="900" <?php echo ($poll_title_font_weight_mobile == "900") ? "selected" : "";?>><?php echo esc_html__("900", "poll-maker"); ?></option>
2174 + </select>
2175 + </div>
2176 + </div>
2177 + </div>
2178 + </div>
2179 + <hr>
2180 + <div class="form-group row">
2181 + <div class="col-sm-4">
2087 2182 <label for='ays_poll_title_alignment'>
2088 2183 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2089 2184 <a class="ays_help"
2090 2185 data-toggle="tooltip"
@@ -2132,8 +2227,30 @@
2132 2227 </div>
2133 2228 </div>
2134 2229 </div>
2135 2230 <hr>
2231 + <div class="form-group row">
2232 + <div class="col-sm-4">
2233 + <label for='ays_poll_title_text_transform'>
2234 + <?php echo esc_html__('Title text transform', "poll-maker"); ?>
2235 + <a class="ays_help"
2236 + data-toggle="tooltip"
2237 + data-placement="top"
2238 + title="<?php echo esc_html__("Specify the text transformation of the title.", "poll-maker"); ?>">
2239 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
2240 + </a>
2241 + </label>
2242 + </div>
2243 + <div class="col-sm-8 ays_divider_left">
2244 + <select class="ays_poll_aysDropdown ays-select-short" id="ays_poll_title_text_transform" name="ays_poll_title_text_transform">
2245 + <option value="none" <?php echo ($poll_title_text_transform == "none") ? "selected" : "";?>><?php echo esc_html__("None", "poll-maker"); ?></option>
2246 + <option value="capitalize" <?php echo ($poll_title_text_transform == "capitalize") ? "selected" : "";?>><?php echo esc_html__("Capitalize", "poll-maker"); ?></option>
2247 + <option value="uppercase" <?php echo ($poll_title_text_transform == "uppercase") ? "selected" : "";?>><?php echo esc_html__("Uppercase", "poll-maker"); ?></option>
2248 + <option value="lowercase" <?php echo ($poll_title_text_transform == "lowercase") ? "selected" : "";?>><?php echo esc_html__("Lowercase", "poll-maker"); ?></option>
2249 + </select>
2250 + </div>
2251 + </div>
2252 + <hr>
2136 2253 <!-- title text shadow start -->
2137 2254 <div class="form-group row">
2138 2255 <div class="col-sm-4">
2139 2256 <label for="ays_poll_enable_title_text_shadow">
@@ -4330,53 +4447,39 @@
4330 4447 </select>
4331 4448 </div>
4332 4449 </div> <!-- Show answers numbering -->
4333 4450 <hr>
4334 - <div class="form-group row">
4335 - <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4336 - <div class="pro_features" style="justify-content:flex-end;">
4337 - </div>
4338 - <div class="form-group row ays_toggle_parent">
4339 - <div class="col-sm-3">
4340 - <label for="ays_show_votes_before_voting">
4341 - <?php echo esc_html__('Show votes count per answer before voting', "poll-maker"); ?>
4342 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4343 - title="<?php echo esc_html__('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") ?>">
4344 - <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4345 - </a>
4346 - </label>
4347 - </div>
4348 - <div class="col-sm-1">
4349 - <input type="checkbox"/>
4350 - </div>
4351 - <div class="col-sm-8 ays_divider_left ays_toggle_target" >
4352 - <div class="d-flex">
4353 - <div class="form-check-inline ays_poll_loader">
4354 - <label class="form-check-label">
4355 - <input type="radio" value="by_count" />
4356 - <span><?php echo esc_html__('By count', "poll-maker"); ?></span>
4357 - </label>
4358 - </div>
4359 - <div class="form-check-inline ays_poll_loader">
4360 - <label class="form-check-label">
4361 - <input type="radio" value="by_percentage"/>
4362 - <span><?php echo esc_html__('By percentage', "poll-maker"); ?></span>
4363 - </label>
4364 - </div>
4365 - </div>
4366 - </div>
4367 - </div> <!-- Status -->
4368 - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4369 - <div class="ays-poll-new-upgrade-button-box" style="top: -20px;">
4370 - <div>
4371 - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4372 - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/unlocked_24x24.svg'?>" class="ays-poll-new-upgrade-button-hover">
4373 - </div>
4374 - <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4375 - </div>
4376 - </a>
4377 - </div>
4378 - </div>
4451 + <div class="form-group row ays_toggle_parent ays_poll_option_only_for_choosing_type" style="<?php echo ($id === null || (isset($poll['type']) && $poll['type'] != 'choosing')) ? 'display: none;' : ''; ?>">
4452 + <div class="col-sm-3">
4453 + <label for="ays_show_votes_before_voting">
4454 + <?= __('Show votes count per answer before voting', "poll-maker"); ?>
4455 + <a class="ays_help" data-toggle="tooltip" data-placement="top"
4456 + 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") ?>">
4457 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4458 + </a>
4459 + </label>
4460 + </div>
4461 + <div class="col-sm-1">
4462 + <input type="checkbox" class="ays_toggle_checkbox" id="ays_show_votes_before_voting" name="ays_show_votes_before_voting"
4463 + value="on" <?php echo ($show_votes_before_voting) ? 'checked' : ''; ?> />
4464 + </div>
4465 + <div class="col-sm-8 ays_divider_left ays_toggle_target" style="<?php echo ($show_votes_before_voting) ? '' : 'display: none'; ?>">
4466 + <div class="d-flex">
4467 + <div class="form-check-inline ays_poll_loader">
4468 + <label class="form-check-label">
4469 + <input type="radio" name="ays_show_votes_before_voting_by" value="by_count" <?php echo ($show_votes_before_voting_by == 'by_count') ? 'checked' : ''; ?> />
4470 + <span><?= __('By count', "poll-maker"); ?></span>
4471 + </label>
4472 + </div>
4473 + <div class="form-check-inline ays_poll_loader">
4474 + <label class="form-check-label">
4475 + <input type="radio" name="ays_show_votes_before_voting_by" value="by_percentage" <?php echo ($show_votes_before_voting_by == 'by_percentage') ? 'checked' : ''; ?> />
4476 + <span><?= __('By percentage', "poll-maker"); ?></span>
4477 + </label>
4478 + </div>
4479 + </div>
4480 + </div>
4481 + </div>
4379 4482 </div>
4380 4483 </div>
4381 4484 <div class="only_pro" style="position: relative; display: inline-block">
4382 4485 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
@@ -6189,35 +6292,9 @@
6189 6292 </a>
6190 6293 </label>
6191 6294 </div>
6192 6295 <?php
6193 - $allowed_tags = array(
6194 - 'div' => array(
6195 - 'class' => true
6196 - ),
6197 - 'i' => array(
6198 - 'class' => true
6199 - ),
6200 - 'span' => array(),
6201 - 'a' => array(
6202 - 'class' => true,
6203 - 'data-toggle' => true,
6204 - 'data-html' => true,
6205 - 'title' => true
6206 - ),
6207 - 'label' => array(
6208 - 'class' => true
6209 - ),
6210 - 'input' => array(
6211 - 'type' => true,
6212 - 'class' => true,
6213 - 'hidden' => true,
6214 - 'id' => true,
6215 - 'name' => true,
6216 - 'value' => true
6217 - )
6218 - );
6219 - echo wp_kses($poll_message_vars_html, $allowed_tags);
6296 + echo $poll_message_vars_html;
6220 6297 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
6221 6298 $editor_id = 'ays-poll-hide-results-text';
6222 6299 $settings = array(
6223 6300 'editor_height' => $poll_wp_editor_height,
@@ -6255,35 +6332,10 @@
6255 6332 </div>
6256 6333 <div class="col-sm-12 if_poll_hide_result_message ays_toggle_target" style="margin-top: 15px; <?php echo isset($options['hide_result_message']) && $options['hide_result_message'] ? '' : 'display:none;'; ?>">
6257 6334 <?php
6258 6335 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6259 - $allowed_tags = array(
6260 - 'div' => array(
6261 - 'class' => true
6262 - ),
6263 - 'i' => array(
6264 - 'class' => true
6265 - ),
6266 - 'span' => array(),
6267 - 'a' => array(
6268 - 'class' => true,
6269 - 'data-toggle' => true,
6270 - 'data-html' => true,
6271 - 'title' => true
6272 - ),
6273 - 'label' => array(
6274 - 'class' => true
6275 - ),
6276 - 'input' => array(
6277 - 'type' => true,
6278 - 'class' => true,
6279 - 'hidden' => true,
6280 - 'id' => true,
6281 - 'name' => true,
6282 - 'value' => true
6283 - )
6284 - );
6285 - echo wp_kses($poll_message_vars_html, $allowed_tags);
6336 +
6337 + echo $poll_message_vars_html;
6286 6338 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
6287 6339 $editor_id = 'ays_result_message';
6288 6340 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6289 6341 wp_editor($content, $editor_id, $settings);
@@ -6812,11 +6864,14 @@
6812 6864 <hr/>
6813 6865 <div class="form-group row">
6814 6866 <div class="col-sm-4">
6815 6867 <label for="ays_twitter_link">
6816 - <i class="ays_fa ays_fa_twitter_square"></i>
6817 - <?php echo esc_html__('Twitter link', "poll-maker")?>
6818 - <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Twitter profile or page link for showing after poll finish.', "poll-maker")?>">
6868 + <!-- <i class="ays_fa ays_fa_twitter_square"></i> -->
6869 + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6870 + <path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path>
6871 + </svg>
6872 + <?php echo esc_html__('X link', "poll-maker")?>
6873 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('X profile or page link for showing after poll finish.', "poll-maker")?>">
6819 6874 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6820 6875 </a>
6821 6876 </label>
6822 6877 </div>
@@ -6828,9 +6883,9 @@
6828 6883 <hr/>
6829 6884 <div class="form-group row">
6830 6885 <div class="col-sm-4">
6831 6886 <label for="ays_vkontakte_link">
6832 - <i class="ays_fa ays_fa_vk"></i>
6887 + <i class="ays_fa ays_fa_vk_square"></i>
6833 6888 <?php echo esc_html__('VKontakte link', "poll-maker")?>
6834 6889 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('VKontakte profile or page link for showing after poll finish.', "poll-maker")?>">
6835 6890 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6836 6891 </a>
@@ -6844,9 +6899,9 @@
6844 6899 <hr>
6845 6900 <div class="form-group row">
6846 6901 <div class="col-sm-4">
6847 6902 <label for="ays_youtube_link">
6848 - <i class="ays_fa ays_fa_vk"></i>
6903 + <i class="ays_fa ays_fa_youtube_square"></i>
6849 6904 <?php echo esc_html__('YouTube link', "poll-maker")?>
6850 6905 <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('YouTube profile or page link for showing after poll finish.', "poll-maker")?>">
6851 6906 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6852 6907 </a>
@@ -6856,8 +6911,43 @@
6856 6911 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6857 6912 value="<?php echo $youtube_link; ?>" />
6858 6913 </div>
6859 6914 </div>
6915 + <hr>
6916 + <div class="form-group row">
6917 + <div class="col-sm-4">
6918 + <label for="ays_tiktok_link">
6919 + <!-- <i class="ays_fa ays_fa_tiktok_square"></i> -->
6920 + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="14" height="16">
6921 + <path d="M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"></path>
6922 + </svg>
6923 + <?php echo esc_html__('TikTok link', "poll-maker")?>
6924 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Tiktok profile or page link for showing after poll finish.', "poll-maker")?>">
6925 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6926 + </a>
6927 + </label>
6928 + </div>
6929 + <div class="col-sm-8">
6930 + <input type="text" class="ays-text-input" id="ays_tiktok_link" name="ays_poll_social_links[ays_tiktok_link]"
6931 + value="<?php echo $tiktok_link; ?>" />
6932 + </div>
6933 + </div>
6934 + <hr>
6935 + <div class="form-group row">
6936 + <div class="col-sm-4">
6937 + <label for="ays_instagram_link">
6938 + <i class="ays_fa ays_fa_instagram_square"></i>
6939 + <?php echo esc_html__('Instagram link', "poll-maker")?>
6940 + <a class="ays_help" data-toggle="tooltip" title="<?php echo esc_html__('Instagram profile or page link for showing after poll finish.', "poll-maker")?>">
6941 + <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6942 + </a>
6943 + </label>
6944 + </div>
6945 + <div class="col-sm-8">
6946 + <input type="text" class="ays-text-input" id="ays_instagram_link" name="ays_poll_social_links[ays_instagram_link]"
6947 + value="<?php echo $instagram_link; ?>" />
6948 + </div>
6949 + </div>
6860 6950 </div>
6861 6951 </div>
6862 6952 <hr>
6863 6953 <div class="form-group row">
@@ -7289,31 +7379,8 @@
7289 7379 </div>
7290 7380 </div>
7291 7381 </div>
7292 7382 <div class="bottom-buttons-container">
7293 - <div class="ays_save_default_button_box">
7294 - <?php
7295 - if ( $prev_poll_id != "" && !is_null( $prev_poll_id ) ) {
7296 -
7297 - $other_attributes = array(
7298 - 'id' => 'ays-polls-prev-button',
7299 - 'data-message' =>esc_html__( 'Are you sure you want to go to the previous poll page?', "poll-maker"),
7300 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $prev_poll_id ) )
7301 - );
7302 - submit_button( esc_html__('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);
7303 - }
7304 -
7305 - if ( $next_poll_id != "" && !is_null( $next_poll_id ) ) {
7306 -
7307 - $other_attributes = array(
7308 - 'id' => 'ays-polls-next-button',
7309 - 'data-message' =>esc_html__( 'Are you sure you want to go to the next poll page?', "poll-maker"),
7310 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $next_poll_id ) )
7311 - );
7312 - submit_button( esc_html__('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);
7313 - }
7314 - ?>
7315 - </div>
7316 7383 <div class='bottom-save-buttons-container'>
7317 7384 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
7318 7385 <?php
7319 7386 echo wp_kses($loader_iamge, $loader_iamge_allow);
@@ -7361,17 +7428,17 @@
7361 7428 </div> -->
7362 7429 <?php if($id === null): ?>
7363 7430 <div class="ays_poll_layer_container">
7364 7431 <div class="ays_poll_layer_content">
7365 - <div class="ays-poll-close-type">
7366 - <a href="?page=poll-maker-ays">
7367 - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7368 - </a>
7369 - </div>
7370 7432 <div class="ays_poll_layer_box">
7371 7433 <div class="ays-poll-close-layer">
7372 7434 <div class="ays-poll-choose-type">
7373 7435 <p style="margin: 0;"><?php echo esc_html__('Choose Your Poll Type', "poll-maker"); ?></p>
7436 + </div>
7437 + <div class="ays-poll-close-type">
7438 + <a href="?page=poll-maker-ays">
7439 + <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7440 + </a>
7374 7441 </div>
7375 7442 </div>
7376 7443 <div class="ays_poll_layer_box_blocks">
7377 7444 <label class='ays-poll-dblclick-layer'>