Changeset 3396185
- Timestamp:
- 11/15/2025 09:42:47 AM (3 months ago)
- Location:
- poll-creator/trunk
- Files:
-
- 12 edited
-
README.md (modified) (1 diff)
-
includes/Admin/PollsListTable.php (modified) (1 diff)
-
includes/REST/PollsController.php (modified) (2 diffs)
-
includes/REST/VotesController.php (modified) (2 diffs)
-
includes/Traits/Singleton.php (modified) (1 diff)
-
includes/Votes.php (modified) (1 diff)
-
languages/poll-creator.pot (modified) (13 diffs)
-
package.json (modified) (1 diff)
-
pollify.php (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
-
templates/admin/overview.php (modified) (1 diff)
-
templates/results/horizointal-bar-chart.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
poll-creator/trunk/README.md
r3361377 r3396185 5 5 **Tested up to:** 6.8.2<br> 6 6 **Requires PHP:** 8.0<br> 7 **Stable tag:** 1.0. 9<br>7 **Stable tag:** 1.0.10<br> 8 8 **License:** GPLv3 or later<br> 9 9 **License URI:** http://www.gnu.org/licenses/gpl-3.0.html<br> -
poll-creator/trunk/includes/Admin/PollsListTable.php
r3348002 r3396185 152 152 */ 153 153 public function column_type( $item ) { 154 return sprintf( '<span tooltip="%s" flow="right">%s</span>', ucfirst( $item->get_type() ?? '' ), $item->get_icon() ); 154 $icon = $item->get_icon(); 155 156 // Check if the icon is an SVG string 157 if ( strpos( $icon, '<svg' ) !== false ) { 158 // If it's an SVG, render it directly 159 $icon_html = $icon; 160 } else { 161 // If it's a dashicon class or other string, wrap it in dashicons format 162 $icon_html = sprintf( '<span class="dashicons dashicons-%s"></span>', esc_attr( $icon ) ); 163 } 164 165 return sprintf( '<span tooltip="%s" flow="right">%s</span>', ucfirst( $item->get_type() ?? '' ), $icon_html ); 155 166 } 156 167 -
poll-creator/trunk/includes/REST/PollsController.php
r3271909 r3396185 1 1 <?php 2 2 /** 3 * Miusages rest route endpoint.3 * Polls rest route endpoint. 4 4 * 5 * @package AwesomeMotive\Miusage5 * @package wpRigel\Pollify 6 6 */ 7 7 … … 19 19 20 20 /** 21 * MiusageController class.21 * PollsController class. 22 22 * 23 23 * @package wpRigel\Pollify\API -
poll-creator/trunk/includes/REST/VotesController.php
r3271909 r3396185 1 1 <?php 2 2 /** 3 * Miusages rest route endpoint.3 * Votes rest route endpoint. 4 4 * 5 * @package AwesomeMotive\Miusage5 * @package wpRigel\Pollify 6 6 */ 7 7 … … 18 18 19 19 /** 20 * MiusageController class.20 * VotesController class. 21 21 * 22 22 * @package wpRigel\Pollify\API -
poll-creator/trunk/includes/Traits/Singleton.php
r3271909 r3396185 3 3 * Singleton trait which implements Singleton pattern in any class in which this trait is used. 4 4 * 5 * @package AwesomeMotive\Miusage5 * @package wpRigel\Pollify 6 6 */ 7 7 -
poll-creator/trunk/includes/Votes.php
r3361377 r3396185 295 295 // Calculate percentage. 296 296 $options[ $key ]['percentage'] = (int) $vote['votes'] > 0 ? number_format_i18n( ( (int) $vote['votes'] / (int) $total_votes ) * 100, 2 ) : 0; 297 298 297 } 299 298 } -
poll-creator/trunk/languages/poll-creator.pot
r3361377 r3396185 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Pollify 1.0. 9\n"5 "Project-Id-Version: Pollify 1.0.10\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/poll-creator\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025- 09-14T18:38:32+00:00\n"12 "POT-Creation-Date: 2025-11-15T09:07:21+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" … … 48 48 #: includes/Admin/IPsListTable.php:79 49 49 #: includes/Admin/VotesListTable.php:77 50 #: templates/admin/overview.php:17 850 #: templates/admin/overview.php:179 51 51 msgid "Location" 52 52 msgstr "" … … 54 54 #: includes/Admin/IPsListTable.php:80 55 55 #: includes/helpers/functions.php:391 56 #: templates/admin/overview.php:12 756 #: templates/admin/overview.php:128 57 57 msgid "Votes" 58 58 msgstr "" … … 66 66 #: includes/Admin/IPsListTable.php:141 67 67 #: includes/Admin/VotesListTable.php:196 68 #: templates/admin/overview.php:14 869 #: templates/admin/overview.php:19 068 #: templates/admin/overview.php:149 69 #: templates/admin/overview.php:191 70 70 msgid "Unknown" 71 71 msgstr "" … … 77 77 78 78 #: includes/Admin/IPsListTable.php:169 79 #: includes/Admin/PollsListTable.php:3 2079 #: includes/Admin/PollsListTable.php:331 80 80 #: includes/Admin/VotesListTable.php:246 81 81 msgid "Filter" … … 158 158 msgstr "" 159 159 160 #: includes/Admin/PollsListTable.php:1 72160 #: includes/Admin/PollsListTable.php:183 161 161 msgid "Edit" 162 162 msgstr "" 163 163 164 #: includes/Admin/PollsListTable.php:1 73164 #: includes/Admin/PollsListTable.php:184 165 165 msgid "View frontend" 166 166 msgstr "" 167 167 168 #: includes/Admin/PollsListTable.php: 196169 #: includes/Admin/PollsListTable.php:2 83168 #: includes/Admin/PollsListTable.php:207 169 #: includes/Admin/PollsListTable.php:294 170 170 #: src/poll/edit.js:132 171 171 msgid "Open" 172 172 msgstr "" 173 173 174 #: includes/Admin/PollsListTable.php: 197175 #: includes/Admin/PollsListTable.php:2 11176 #: includes/Admin/PollsListTable.php:2 84174 #: includes/Admin/PollsListTable.php:208 175 #: includes/Admin/PollsListTable.php:222 176 #: includes/Admin/PollsListTable.php:295 177 177 msgid "Closed" 178 178 msgstr "" 179 179 180 #: includes/Admin/PollsListTable.php: 198180 #: includes/Admin/PollsListTable.php:209 181 181 msgid "Schedule" 182 182 msgstr "" 183 183 184 #: includes/Admin/PollsListTable.php: 199184 #: includes/Admin/PollsListTable.php:210 185 185 msgid "Trash" 186 186 msgstr "" 187 187 188 188 #. translators: %s: poll end date 189 #: includes/Admin/PollsListTable.php:2 07189 #: includes/Admin/PollsListTable.php:218 190 190 msgid "Ended at %s" 191 191 msgstr "" 192 192 193 193 #. translators: %s: poll end date 194 #: includes/Admin/PollsListTable.php:2 15194 #: includes/Admin/PollsListTable.php:226 195 195 msgid "Will be ended on %s" 196 196 msgstr "" 197 197 198 198 #. translators: %s: votes count 199 #: includes/Admin/PollsListTable.php:2 55199 #: includes/Admin/PollsListTable.php:266 200 200 #: templates/admin/overview.php:79 201 201 #: templates/results/horizointal-bar-chart.php:31 … … 203 203 msgstr "" 204 204 205 #: includes/Admin/PollsListTable.php:2 82205 #: includes/Admin/PollsListTable.php:293 206 206 msgid "All" 207 207 msgstr "" 208 208 209 #: includes/Admin/PollsListTable.php:3 05209 #: includes/Admin/PollsListTable.php:316 210 210 msgid "All types" 211 211 msgstr "" … … 224 224 225 225 #: includes/Admin/VotesListTable.php:78 226 #: templates/admin/overview.php:1 79226 #: templates/admin/overview.php:180 227 227 msgid "IP Address" 228 228 msgstr "" … … 237 237 238 238 #: includes/Admin/VotesListTable.php:137 239 #: templates/admin/overview.php:25 1239 #: templates/admin/overview.php:252 240 240 msgid "Guest" 241 241 msgstr "" … … 415 415 msgstr "" 416 416 417 #: includes/Votes.php:50 1417 #: includes/Votes.php:500 418 418 msgid "Client ID or User IP is empty." 419 419 msgstr "" 420 420 421 #: includes/Votes.php:53 6421 #: includes/Votes.php:535 422 422 msgid "Invalid vote ID." 423 423 msgstr "" … … 437 437 #. translators: %s: percentage 438 438 #: templates/admin/overview.php:85 439 #: templates/admin/overview.php:92440 439 #: templates/results/horizointal-bar-chart.php:37 441 #: templates/results/horizointal-bar-chart.php:44442 440 msgid "%s%" 443 441 msgstr "" 444 442 445 443 #. translators: %s: total votes 446 #: templates/admin/overview.php:10 2444 #: templates/admin/overview.php:103 447 445 msgid "Total votes: %s" 448 446 msgstr "" 449 447 450 #: templates/admin/overview.php:10 7451 #: templates/results/horizointal-bar-chart.php: 59448 #: templates/admin/overview.php:108 449 #: templates/results/horizointal-bar-chart.php:60 452 450 msgid "No results found for this poll" 453 451 msgstr "" 454 452 455 #: templates/admin/overview.php:11 5453 #: templates/admin/overview.php:116 456 454 msgid "Popular Location" 457 455 msgstr "" 458 456 459 #: templates/admin/overview.php:12 7457 #: templates/admin/overview.php:128 460 458 msgid "Country" 461 459 msgstr "" 462 460 463 #: templates/admin/overview.php:15 5464 #: templates/admin/overview.php:2 19461 #: templates/admin/overview.php:156 462 #: templates/admin/overview.php:220 465 463 msgid "No location data found for this poll" 466 464 msgstr "" 467 465 468 #: templates/admin/overview.php:16 2466 #: templates/admin/overview.php:163 469 467 msgid "IP overviews" 470 468 msgstr "" 471 469 472 #: templates/admin/overview.php:18 0470 #: templates/admin/overview.php:181 473 471 msgid "Vote count" 474 472 msgstr "" 475 473 476 #: templates/admin/overview.php:21 6474 #: templates/admin/overview.php:217 477 475 msgid "See all IP's" 478 476 msgstr "" 479 477 480 #: templates/admin/overview.php:22 8478 #: templates/admin/overview.php:229 481 479 msgid "Recent votes" 482 480 msgstr "" 483 481 484 #: templates/admin/overview.php:28 5482 #: templates/admin/overview.php:286 485 483 msgid "See all votes" 486 484 msgstr "" 487 485 488 #: templates/admin/overview.php:2 89486 #: templates/admin/overview.php:290 489 487 msgid "No recent votes found for this poll" 490 488 msgstr "" 491 489 492 #: templates/admin/overview.php:30 5493 #: templates/admin/overview.php:32 2490 #: templates/admin/overview.php:306 491 #: templates/admin/overview.php:323 494 492 msgid "Search by IP" 495 493 msgstr "" … … 517 515 518 516 #. translators: %s: total votes 519 #: templates/results/horizointal-bar-chart.php:5 4517 #: templates/results/horizointal-bar-chart.php:55 520 518 msgid "Total votes %s" 521 519 msgstr "" -
poll-creator/trunk/package.json
r3361377 r3396185 1 1 { 2 2 "name": "poll-creator", 3 "version": "1.0. 9",3 "version": "1.0.10", 4 4 "description": "Feedback Polls, Anonymous Polls, Up/down Voting and NPS Surveys", 5 5 "author": "wpRigel", -
poll-creator/trunk/pollify.php
r3361377 r3396185 4 4 * Plugin URI: https://wprigel.com/pollify/ 5 5 * Description: Pollify is the ultimate poll creator and survey maker plugin for WordPress, 100% powered by the Gutenberg editor. No short code required, no capping on vote counts. Enjoy the freedom & boost user engagement. 6 * Version: 1.0. 96 * Version: 1.0.10 7 7 * Author: wprigel 8 8 * Author URI: http://wprigel.com/ … … 50 50 51 51 // Define some constant for getting path and urls and version of the plugin. 52 define( 'POLLIFY_VERSION', '1.0. 9' );52 define( 'POLLIFY_VERSION', '1.0.10' ); 53 53 define( 'POLLIFY_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); 54 54 define( 'POLLIFY_ASSET_PATH', untrailingslashit( POLLIFY_PATH . '/assets' ) ); -
poll-creator/trunk/readme.txt
r3361377 r3396185 1 === Pollify - Feedback Polls, Anonymous Polls, Up/down Voting and NPS Surveys===1 === Pollify - Feedback Polls, Anonymous Polls, Up/down Voting, NPS Surveys, Export data === 2 2 Contributors: wprigel 3 3 Tags: poll plugin, poll, poll maker, vote, survey … … 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 8.0 7 Stable tag: 1.0. 97 Stable tag: 1.0.10 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 85 85 * **Up and Down vote**: Enable users to vote using like/dislike or emojis, providing quick feedback on products or content. (Pro) 86 86 * **Kudos**: feature allows users to give quick, positive feedback — such as clapping or applause — without needing to write anything (Pro) 87 * **Engagement**: Boost interaction by seamlessly gathering user feedback directly from your website’s frontend (Pro) 88 * **NPS**: Allow users to select answers within a 1-10 range. (Pro) 87 89 * **Rating**: Create rating forms, utilizing stars or emojis, to gauge user opinions on products or topics. (Upcoming in pro) 88 * **NPS**: Allow users to select answers within a 1-10 range. (Pro)89 90 * **VS**: Facilitate competition between two options, such as products or individuals, with stylish versus voting formats. (Upcoming in pro) 90 * **Feedback**: Solicit detailed responses from participants, allowing them to provide comprehensive answers using short text or paragraphs. (Upcoming in pro)91 91 92 92 === Pollify Poll Maker Plugin Free Features at a Glance: === … … 147 147 - IP blocker allows blocking votes from specific IP addresses, preventing spam or unwanted participation. 148 148 - IP and user wise vote restriction prevents multiple votes from the same IP address or user, ensuring fair polling. 149 - Engagement Block: Collect user feedback directly from the frontend using a dedicated block. 150 - Export poll results in multiple formats, including CSV, PDF, DOCX, and Excel 149 151 - VS Type of Poll (Versus) enables the creation of polls comparing options side by side (Upcoming in pro) 150 152 - Import/Export Polls help in Importing and exporting poll configurations for easy sharing or backup. (Upcoming in pro) 151 153 - Send mail to a user (integrated with email services ) (Upcoming in pro). 152 - Export Results to CSV allows exporting poll data into CSV format for further analysis or reporting. (Upcoming in pro)153 154 - Vote by user and role (Upcoming in pro). 154 155 - Email campaign using email services. (Upcoming in pro). … … 198 199 == Changelog == 199 200 201 v1.0.10 -> November 15, 2025 202 -------------------------------------------- 203 - [Fix] Fixed number format issues for other countries 204 - [Fix] Added custom svg icon support for rendering on backend poll 205 - [Fix] Fix some typo on class defination 206 - [Fix] Fixed vote location flag icon style issue. 207 200 208 v1.0.9 -> September 15, 2025 201 209 -------------------------------------------- -
poll-creator/trunk/templates/admin/overview.php
r3361377 r3396185 89 89 <div class="horizointal-bar-chart__bar-indicator"> 90 90 <?php 91 /* translators: %s: percentage */ 92 $percentage_width = wp_sprintf( __( '%s%', 'poll-creator' ), $result_option['percentage'] ); 91 // Convert localized percentage back to float and format for CSS (must use period as decimal separator). 92 $percentage_value = (float) str_replace( ',', '.', (string) $result_option['percentage'] ); 93 $percentage_width = number_format( $percentage_value, 2, '.', '' ) . '%'; 93 94 ?> 94 95 <div class="bar-fill" style="width:<?php echo esc_html( $percentage_width ); ?>"></div> -
poll-creator/trunk/templates/results/horizointal-bar-chart.php
r3109668 r3396185 41 41 <div class="horizointal-bar-chart__bar-indicator"> 42 42 <?php 43 /* translators: %s: percentage */ 44 $percentage_style = wp_sprintf( __( '%s%', 'poll-creator' ), $result_option['percentage'] ) 43 // Convert localized percentage back to float and format for CSS (must use period as decimal separator). 44 $percentage_value = (float) str_replace( ',', '.', (string) $result_option['percentage'] ); 45 $percentage_style = number_format( $percentage_value, 2, '.', '' ) . '%'; 45 46 ?> 46 47 <div class="bar-fill" style="width:<?php echo esc_html( $percentage_style ); ?>"></div>
Note: See TracChangeset
for help on using the changeset viewer.