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 +225 -175 6.3.4 → 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']) : "";
@@ -810,8 +833,9 @@
810 833 $twitter_link = isset($social_links['twitter_link']) && $social_links['twitter_link'] != '' ? $social_links['twitter_link'] : '';
811 834 $vkontakte_link = isset($social_links['vkontakte_link']) && $social_links['vkontakte_link'] != '' ? $social_links['vkontakte_link'] : '';
812 835 $youtube_link = isset($social_links['youtube_link']) && $social_links['youtube_link'] != '' ? $social_links['youtube_link'] : '';
813 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'] : '';
814 838 $poll_social_links_heading = ( isset( $options[ 'poll_social_links_heading' ] ) && $options[ 'poll_social_links_heading' ] != '' ) ? stripslashes( wpautop( $options[ 'poll_social_links_heading' ] ) ) : '';
815 839
816 840 $show_chart_type = (isset($options['show_chart_type']) && $options['show_chart_type'] != "") ? $options['show_chart_type'] : 'google_bar_chart';
817 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;
@@ -2085,8 +2109,77 @@
2085 2109 </div>
2086 2110 <hr>
2087 2111 <div class="form-group row">
2088 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">
2089 2182 <label for='ays_poll_title_alignment'>
2090 2183 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2091 2184 <a class="ays_help"
2092 2185 data-toggle="tooltip"
@@ -2134,8 +2227,30 @@
2134 2227 </div>
2135 2228 </div>
2136 2229 </div>
2137 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>
2138 2253 <!-- title text shadow start -->
2139 2254 <div class="form-group row">
2140 2255 <div class="col-sm-4">
2141 2256 <label for="ays_poll_enable_title_text_shadow">
@@ -4332,53 +4447,39 @@
4332 4447 </select>
4333 4448 </div>
4334 4449 </div> <!-- Show answers numbering -->
4335 4450 <hr>
4336 - <div class="form-group row">
4337 - <div class="col-sm-12 only_pro" style="padding:10px 15px 0 15px;">
4338 - <div class="pro_features" style="justify-content:flex-end;">
4339 - </div>
4340 - <div class="form-group row ays_toggle_parent">
4341 - <div class="col-sm-3">
4342 - <label for="ays_show_votes_before_voting">
4343 - <?php echo esc_html__('Show votes count per answer before voting', "poll-maker"); ?>
4344 - <a class="ays_help ays-poll-zindex-for-pro-tooltip" data-toggle="tooltip" data-placement="top"
4345 - 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") ?>">
4346 - <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
4347 - </a>
4348 - </label>
4349 - </div>
4350 - <div class="col-sm-1">
4351 - <input type="checkbox"/>
4352 - </div>
4353 - <div class="col-sm-8 ays_divider_left ays_toggle_target" >
4354 - <div class="d-flex">
4355 - <div class="form-check-inline ays_poll_loader">
4356 - <label class="form-check-label">
4357 - <input type="radio" value="by_count" />
4358 - <span><?php echo esc_html__('By count', "poll-maker"); ?></span>
4359 - </label>
4360 - </div>
4361 - <div class="form-check-inline ays_poll_loader">
4362 - <label class="form-check-label">
4363 - <input type="radio" value="by_percentage"/>
4364 - <span><?php echo esc_html__('By percentage', "poll-maker"); ?></span>
4365 - </label>
4366 - </div>
4367 - </div>
4368 - </div>
4369 - </div> <!-- Status -->
4370 - <a href="https://ays-pro.com/wordpress/poll-maker" target="_blank" class="ays-poll-new-upgrade-button-link">
4371 - <div class="ays-poll-new-upgrade-button-box" style="top: -20px;">
4372 - <div>
4373 - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL).'/images/icons/pro-features-icons/locked_24x24.svg'?>">
4374 - <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">
4375 - </div>
4376 - <div class="ays-poll-new-upgrade-button"><?php echo esc_html__("Upgrade", "poll-maker"); ?></div>
4377 - </div>
4378 - </a>
4379 - </div>
4380 - </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>
4381 4482 </div>
4382 4483 </div>
4383 4484 <div class="only_pro" style="position: relative; display: inline-block">
4384 4485 <div class="pro_features pro_features_popup" style="background: none; box-shadow: none; color: #fff">
@@ -6191,35 +6292,9 @@
6191 6292 </a>
6192 6293 </label>
6193 6294 </div>
6194 6295 <?php
6195 - $allowed_tags = array(
6196 - 'div' => array(
6197 - 'class' => true
6198 - ),
6199 - 'i' => array(
6200 - 'class' => true
6201 - ),
6202 - 'span' => array(),
6203 - 'a' => array(
6204 - 'class' => true,
6205 - 'data-toggle' => true,
6206 - 'data-html' => true,
6207 - 'title' => true
6208 - ),
6209 - 'label' => array(
6210 - 'class' => true
6211 - ),
6212 - 'input' => array(
6213 - 'type' => true,
6214 - 'class' => true,
6215 - 'hidden' => true,
6216 - 'id' => true,
6217 - 'name' => true,
6218 - 'value' => true
6219 - )
6220 - );
6221 - echo wp_kses($poll_message_vars_html, $allowed_tags);
6296 + echo $poll_message_vars_html;
6222 6297 $content = !empty($options['hide_results_text']) ? stripslashes($options['hide_results_text']) : stripslashes($default_options['hide_results_text']);
6223 6298 $editor_id = 'ays-poll-hide-results-text';
6224 6299 $settings = array(
6225 6300 'editor_height' => $poll_wp_editor_height,
@@ -6257,35 +6332,10 @@
6257 6332 </div>
6258 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;'; ?>">
6259 6334 <?php
6260 6335 $res_def_message = isset($poll['type']) && $poll['type'] == 'text' ? '<p style="text-align: center;">'.esc_html__("Thank you!", "poll-maker") .'</p>' : '';
6261 - $allowed_tags = array(
6262 - 'div' => array(
6263 - 'class' => true
6264 - ),
6265 - 'i' => array(
6266 - 'class' => true
6267 - ),
6268 - 'span' => array(),
6269 - 'a' => array(
6270 - 'class' => true,
6271 - 'data-toggle' => true,
6272 - 'data-html' => true,
6273 - 'title' => true
6274 - ),
6275 - 'label' => array(
6276 - 'class' => true
6277 - ),
6278 - 'input' => array(
6279 - 'type' => true,
6280 - 'class' => true,
6281 - 'hidden' => true,
6282 - 'id' => true,
6283 - 'name' => true,
6284 - 'value' => true
6285 - )
6286 - );
6287 - echo wp_kses($poll_message_vars_html, $allowed_tags);
6336 +
6337 + echo $poll_message_vars_html;
6288 6338 $content = wpautop(stripslashes((isset($options['result_message'])) ? $options['result_message'] : $res_def_message));
6289 6339 $editor_id = 'ays_result_message';
6290 6340 $settings = array('editor_height' => $poll_wp_editor_height, 'textarea_name' => 'ays_result_message', 'editor_class' => 'ays-textarea', 'media_elements' => false);
6291 6341 wp_editor($content, $editor_id, $settings);
@@ -6814,9 +6864,12 @@
6814 6864 <hr/>
6815 6865 <div class="form-group row">
6816 6866 <div class="col-sm-4">
6817 6867 <label for="ays_twitter_link">
6818 - <i class="ays_fa ays_fa_twitter_square"></i>
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>
6819 6872 <?php echo esc_html__('X link', "poll-maker")?>
6820 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")?>">
6821 6874 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6822 6875 </a>
@@ -6830,9 +6883,9 @@
6830 6883 <hr/>
6831 6884 <div class="form-group row">
6832 6885 <div class="col-sm-4">
6833 6886 <label for="ays_vkontakte_link">
6834 - <i class="ays_fa ays_fa_vk"></i>
6887 + <i class="ays_fa ays_fa_vk_square"></i>
6835 6888 <?php echo esc_html__('VKontakte link', "poll-maker")?>
6836 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")?>">
6837 6890 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6838 6891 </a>
@@ -6846,9 +6899,9 @@
6846 6899 <hr>
6847 6900 <div class="form-group row">
6848 6901 <div class="col-sm-4">
6849 6902 <label for="ays_youtube_link">
6850 - <i class="ays_fa ays_fa_vk"></i>
6903 + <i class="ays_fa ays_fa_youtube_square"></i>
6851 6904 <?php echo esc_html__('YouTube link', "poll-maker")?>
6852 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")?>">
6853 6906 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6854 6907 </a>
@@ -6858,12 +6911,16 @@
6858 6911 <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_youtube_link]"
6859 6912 value="<?php echo $youtube_link; ?>" />
6860 6913 </div>
6861 6914 </div>
6915 + <hr>
6862 6916 <div class="form-group row">
6863 6917 <div class="col-sm-4">
6864 - <label for="ays_youtube_link">
6865 - <i class="ays_fa ays_fa_vk"></i>
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>
6866 6923 <?php echo esc_html__('TikTok link', "poll-maker")?>
6867 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")?>">
6868 6925 <i class="ays_poll_fas ays_poll_fa-info-circle"></i>
6869 6926 </a>
@@ -6869,12 +6926,28 @@
6869 6926 </a>
6870 6927 </label>
6871 6928 </div>
6872 6929 <div class="col-sm-8">
6873 - <input type="text" class="ays-text-input" id="ays_youtube_link" name="ays_poll_social_links[ays_tiktok_link]"
6930 + <input type="text" class="ays-text-input" id="ays_tiktok_link" name="ays_poll_social_links[ays_tiktok_link]"
6874 6931 value="<?php echo $tiktok_link; ?>" />
6875 6932 </div>
6876 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>
6877 6950 </div>
6878 6951 </div>
6879 6952 <hr>
6880 6953 <div class="form-group row">
@@ -7306,31 +7379,8 @@
7306 7379 </div>
7307 7380 </div>
7308 7381 </div>
7309 7382 <div class="bottom-buttons-container">
7310 - <div class="ays_save_default_button_box">
7311 - <?php
7312 - if ( $prev_poll_id != "" && !is_null( $prev_poll_id ) ) {
7313 -
7314 - $other_attributes = array(
7315 - 'id' => 'ays-polls-prev-button',
7316 - 'data-message' =>esc_html__( 'Are you sure you want to go to the previous poll page?', "poll-maker"),
7317 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $prev_poll_id ) )
7318 - );
7319 - 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);
7320 - }
7321 -
7322 - if ( $next_poll_id != "" && !is_null( $next_poll_id ) ) {
7323 -
7324 - $other_attributes = array(
7325 - 'id' => 'ays-polls-next-button',
7326 - 'data-message' =>esc_html__( 'Are you sure you want to go to the next poll page?', "poll-maker"),
7327 - 'href' => sprintf( '?page=%s&action=%s&poll=%d', esc_attr( $_REQUEST['page'] ), 'edit', absint( $next_poll_id ) )
7328 - );
7329 - 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);
7330 - }
7331 - ?>
7332 - </div>
7333 7383 <div class='bottom-save-buttons-container'>
7334 7384 <div class="ays_save_buttons_box_for_mobile" id="ays-save-buttons-box-for-mobile">
7335 7385 <?php
7336 7386 echo wp_kses($loader_iamge, $loader_iamge_allow);
@@ -7378,17 +7428,17 @@
7378 7428 </div> -->
7379 7429 <?php if($id === null): ?>
7380 7430 <div class="ays_poll_layer_container">
7381 7431 <div class="ays_poll_layer_content">
7382 - <div class="ays-poll-close-type">
7383 - <a href="?page=poll-maker-ays">
7384 - <img src="<?php echo esc_url(POLL_MAKER_AYS_ADMIN_URL); ?>/images/icons/cross.png">
7385 - </a>
7386 - </div>
7387 7432 <div class="ays_poll_layer_box">
7388 7433 <div class="ays-poll-close-layer">
7389 7434 <div class="ays-poll-choose-type">
7390 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>
7391 7441 </div>
7392 7442 </div>
7393 7443 <div class="ays_poll_layer_box_blocks">
7394 7444 <label class='ays-poll-dblclick-layer'>