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 +147 -42 6.4.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
@@ -228,10 +230,13 @@
228 230 'poll_question_size_mobile' => 16,
229 231 'poll_question_image_object_fit' => "cover",
230 232 'poll_title_font_size' => 20,
231 233 'poll_title_font_size_mobile' => 20,
234 + 'poll_title_font_weight' => "normal",
235 + 'poll_title_font_weight_mobile' => "normal",
232 236 'poll_title_alignment' => "center",
233 237 'poll_title_alignment_mobile' => "center",
238 + 'poll_title_text_transform' => "none",
234 239 'poll_text_type_length_enable' => "off",
235 240 'poll_text_type_limit_type' => "characters",
236 241 'poll_text_type_limit_length' => "",
237 242 'poll_text_type_limit_message' => "off",
@@ -706,8 +711,14 @@
706 711
707 712 // Poll title font size for mobile
708 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";
709 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 +
710 721 // Poll title alignment
711 722 $poll_title_alignment = ( isset($options['poll_title_alignment']) && $options['poll_title_alignment'] != "" ) ? esc_attr($options['poll_title_alignment']) : "center";
712 723
713 724 // Poll title alignment mobile
@@ -712,8 +723,11 @@
712 723
713 724 // Poll title alignment mobile
714 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;
715 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 +
716 730 // Poll view type
717 731 $poll_view_type_for_text = ( isset($poll['view_type']) && $poll['view_type'] == "paragraph" ) ? "paragraph" : "short_text";
718 732
719 733
@@ -2095,8 +2109,77 @@
2095 2109 </div>
2096 2110 <hr>
2097 2111 <div class="form-group row">
2098 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">
2099 2182 <label for='ays_poll_title_alignment'>
2100 2183 <?php echo esc_html__('Title alignment', "poll-maker"); ?>
2101 2184 <a class="ays_help"
2102 2185 data-toggle="tooltip"
@@ -2141,8 +2224,30 @@
2141 2224 <option value="right" <?php echo ($poll_title_alignment_mobile == "right") ? "selected" : "";?>><?php echo esc_html__("Right", "poll-maker"); ?></option>
2142 2225 </select>
2143 2226 </div>
2144 2227 </div>
2228 + </div>
2229 + </div>
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>
2145 2250 </div>
2146 2251 </div>
2147 2252 <hr>
2148 2253 <!-- title text shadow start -->