Version Description
- fixed XSS bugs
- fixed issue with validating email addresses when sending notifications for votes
- added tags for messages - [strong][/strong], [u][/u], [i][/i], [br]
- added tags for elements - [strong][/strong], [u][/u], [i][/i], [br]
- added support for links in the consent text
- added new option for yop_poll_archive shortcode. Now it supports displaying only polls that accept votes. Usage - [yop_poll_archive sort=date_added/num_votes sortdir=asc/desc max=0/number-desired show=active/ended/all]
Download this release
Release Info
Developer | yourownprogrammer |
Plugin | YOP Poll |
Version | 6.3.3 |
Comparing to | |
See all releases |
Code changes from version 6.3.2 to 6.3.3
- admin/admin.php +4 -0
- admin/assets/css/{admin-6.3.2.css → admin-6.3.3.css} +0 -0
- admin/assets/js/{admin-6.3.2.min.js → admin-6.3.3.min.js} +0 -0
- admin/inc/Helper.php +21 -0
- admin/inc/maintenance.php +3 -0
- admin/models/OtherAnswers.php +3 -3
- admin/models/bans.php +11 -11
- admin/models/elements.php +3 -3
- admin/models/logs.php +10 -10
- admin/models/polls.php +115 -48
- admin/models/settings.php +130 -120
- admin/models/votes.php +8 -6
- languages/yop-poll.pot +278 -278
- public/assets/css/{yop-poll-public-6.3.2.css → yop-poll-public-6.3.3.css} +0 -0
- public/assets/js/{yop-poll-public-6.3.2.min.js → yop-poll-public-6.3.3.min.js} +0 -0
- public/inc/basic.php +2 -2
- public/public.php +80 -24
- readme.txt +9 -1
- yop_poll.php +2 -2
admin/admin.php
CHANGED
@@ -326,6 +326,10 @@ class YOP_Poll_Admin {
|
|
326 |
$maintenance = new YOP_POLL_Maintenance();
|
327 |
$maintenance->update_to_version_6_3_2();
|
328 |
}
|
|
|
|
|
|
|
|
|
329 |
}
|
330 |
}
|
331 |
public function load_translations() {
|
326 |
$maintenance = new YOP_POLL_Maintenance();
|
327 |
$maintenance->update_to_version_6_3_2();
|
328 |
}
|
329 |
+
if ( true === version_compare( $installed_version, '6.3.3', '<' ) ) {
|
330 |
+
$maintenance = new YOP_POLL_Maintenance();
|
331 |
+
$maintenance->update_to_version_6_3_3();
|
332 |
+
}
|
333 |
}
|
334 |
}
|
335 |
public function load_translations() {
|
admin/assets/css/{admin-6.3.2.css → admin-6.3.3.css}
RENAMED
File without changes
|
admin/assets/js/{admin-6.3.2.min.js → admin-6.3.3.min.js}
RENAMED
File without changes
|
admin/inc/Helper.php
CHANGED
@@ -53,4 +53,25 @@ class YOP_Poll_Helper {
|
|
53 |
public static function anonymize_ipv6( $address ) {
|
54 |
return inet_ntop( inet_pton( $address ) & inet_pton( self::$ipv6NetMask ) );
|
55 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
53 |
public static function anonymize_ipv6( $address ) {
|
54 |
return inet_ntop( inet_pton( $address ) & inet_pton( self::$ipv6NetMask ) );
|
55 |
}
|
56 |
+
public static function replace_tags( $text ) {
|
57 |
+
$initial_tags = array(
|
58 |
+
'[br]',
|
59 |
+
'[strong]',
|
60 |
+
'[/strong]',
|
61 |
+
'[i]',
|
62 |
+
'[/i]',
|
63 |
+
'[u]',
|
64 |
+
'[/u]'
|
65 |
+
);
|
66 |
+
$new_tags = array(
|
67 |
+
'<br>',
|
68 |
+
'<strong>',
|
69 |
+
'</strong>',
|
70 |
+
'<i>',
|
71 |
+
'</i>',
|
72 |
+
'<u>',
|
73 |
+
'</u>'
|
74 |
+
);
|
75 |
+
return str_ireplace( $initial_tags, $new_tags, esc_html( $text ) );
|
76 |
+
}
|
77 |
}
|
admin/inc/maintenance.php
CHANGED
@@ -143,6 +143,9 @@ class YOP_POLL_Maintenance {
|
|
143 |
public function update_to_version_6_3_2() {
|
144 |
update_option( 'yop_poll_version', '6.3.2' );
|
145 |
}
|
|
|
|
|
|
|
146 |
public function create_archive_page() {
|
147 |
$poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
|
148 |
if ( ! $poll_archive_page ) {
|
143 |
public function update_to_version_6_3_2() {
|
144 |
update_option( 'yop_poll_version', '6.3.2' );
|
145 |
}
|
146 |
+
public function update_to_version_6_3_3() {
|
147 |
+
update_option( 'yop_poll_version', '6.3.3' );
|
148 |
+
}
|
149 |
public function create_archive_page() {
|
150 |
$poll_archive_page = get_page_by_path( 'yop-poll-archive', ARRAY_A );
|
151 |
if ( ! $poll_archive_page ) {
|
admin/models/OtherAnswers.php
CHANGED
@@ -6,9 +6,9 @@ class YOP_Poll_Other_Answers {
|
|
6 |
if ( true === isset ( $poll_id ) && ( $poll_id > 0 ) ) {
|
7 |
if ( true === isset( $vote_id ) && ( $vote_id > 0 ) ) {
|
8 |
$data = array(
|
9 |
-
'poll_id' => $poll_id,
|
10 |
-
'element_id' => $element_id,
|
11 |
-
'vote_id' => $vote_id,
|
12 |
'answer' => sanitize_text_field( $answer ),
|
13 |
'status' => 'active',
|
14 |
'added_date' => current_time( 'mysql' ),
|
6 |
if ( true === isset ( $poll_id ) && ( $poll_id > 0 ) ) {
|
7 |
if ( true === isset( $vote_id ) && ( $vote_id > 0 ) ) {
|
8 |
$data = array(
|
9 |
+
'poll_id' => sanitize_text_field( $poll_id ),
|
10 |
+
'element_id' => sanitize_text_field( $element_id ),
|
11 |
+
'vote_id' => sanitize_text_field( $vote_id ),
|
12 |
'answer' => sanitize_text_field( $answer ),
|
13 |
'status' => 'active',
|
14 |
'added_date' => current_time( 'mysql' ),
|
admin/models/bans.php
CHANGED
@@ -294,9 +294,9 @@ class YOP_Poll_Bans {
|
|
294 |
if ( false === self::$errors_present ) {
|
295 |
$data = array(
|
296 |
'author' => $current_user->ID,
|
297 |
-
'poll_id' => $ban->ban->poll_id,
|
298 |
-
'b_by' => $ban->ban->b_by,
|
299 |
-
'b_value' => $ban->ban->b_value,
|
300 |
'added_date' => current_time( 'mysql' ),
|
301 |
'modified_date' => current_time( 'mysql' )
|
302 |
);
|
@@ -321,9 +321,9 @@ class YOP_Poll_Bans {
|
|
321 |
if ( false === self::$errors_present ) {
|
322 |
$data = array(
|
323 |
'author' => $current_user->ID,
|
324 |
-
'poll_id' => $ban->ban->poll_id,
|
325 |
-
'b_by' => $ban->ban->b_by,
|
326 |
-
'b_value' => $ban->ban->b_value,
|
327 |
'modified_date' => current_time( 'mysql' )
|
328 |
);
|
329 |
if ( false !== $GLOBALS['wpdb']->update( $GLOBALS['wpdb']->yop_poll_bans, $data, array( 'id' => $ban_id ) ) ) {
|
@@ -346,7 +346,7 @@ class YOP_Poll_Bans {
|
|
346 |
$delete_ban_result = $GLOBALS['wpdb']->delete(
|
347 |
$GLOBALS['wpdb']->yop_poll_bans,
|
348 |
array(
|
349 |
-
'id' => $ban_id
|
350 |
)
|
351 |
);
|
352 |
if ( false !== $delete_ban_result ) {
|
@@ -365,7 +365,7 @@ class YOP_Poll_Bans {
|
|
365 |
$delete_bans_result = $GLOBALS['wpdb']->delete(
|
366 |
$GLOBALS['wpdb']->yop_poll_bans,
|
367 |
array(
|
368 |
-
'poll_id' => $poll_id
|
369 |
)
|
370 |
);
|
371 |
if ( false !== $delete_bans_result ) {
|
@@ -404,7 +404,7 @@ class YOP_Poll_Bans {
|
|
404 |
if (
|
405 |
( false === self::$errors_present ) &&
|
406 |
( !isset( $ban->poll_id ) ||
|
407 |
-
( '' ===
|
408 |
) {
|
409 |
self::$errors_present = true;
|
410 |
self::$error_text = __( 'Data for "Poll" is invalid', 'yop-poll' );
|
@@ -412,7 +412,7 @@ class YOP_Poll_Bans {
|
|
412 |
if (
|
413 |
( false === self::$errors_present ) &&
|
414 |
( !isset( $ban->b_by ) ||
|
415 |
-
( '' ===
|
416 |
( false === in_array( $ban->b_by, self::$by_allowed ) )
|
417 |
)
|
418 |
) {
|
@@ -422,7 +422,7 @@ class YOP_Poll_Bans {
|
|
422 |
if (
|
423 |
( false === self::$errors_present ) &&
|
424 |
( !isset( $ban->b_value ) ||
|
425 |
-
( '' ===
|
426 |
) {
|
427 |
self::$errors_present = true;
|
428 |
self::$error_text = __( 'Data for "Ban Value" is invalid', 'yop-poll' );
|
294 |
if ( false === self::$errors_present ) {
|
295 |
$data = array(
|
296 |
'author' => $current_user->ID,
|
297 |
+
'poll_id' => sanitize_text_field( $ban->ban->poll_id ),
|
298 |
+
'b_by' => sanitize_text_field( $ban->ban->b_by ),
|
299 |
+
'b_value' => sanitize_text_field( $ban->ban->b_value ),
|
300 |
'added_date' => current_time( 'mysql' ),
|
301 |
'modified_date' => current_time( 'mysql' )
|
302 |
);
|
321 |
if ( false === self::$errors_present ) {
|
322 |
$data = array(
|
323 |
'author' => $current_user->ID,
|
324 |
+
'poll_id' => sanitize_text_field( $ban->ban->poll_id ),
|
325 |
+
'b_by' => sanitize_text_field( $ban->ban->b_by ),
|
326 |
+
'b_value' => sanitize_text_field( $ban->ban->b_value ),
|
327 |
'modified_date' => current_time( 'mysql' )
|
328 |
);
|
329 |
if ( false !== $GLOBALS['wpdb']->update( $GLOBALS['wpdb']->yop_poll_bans, $data, array( 'id' => $ban_id ) ) ) {
|
346 |
$delete_ban_result = $GLOBALS['wpdb']->delete(
|
347 |
$GLOBALS['wpdb']->yop_poll_bans,
|
348 |
array(
|
349 |
+
'id' => sanitize_text_field( $ban_id )
|
350 |
)
|
351 |
);
|
352 |
if ( false !== $delete_ban_result ) {
|
365 |
$delete_bans_result = $GLOBALS['wpdb']->delete(
|
366 |
$GLOBALS['wpdb']->yop_poll_bans,
|
367 |
array(
|
368 |
+
'poll_id' => sanitize_text_field( $poll_id )
|
369 |
)
|
370 |
);
|
371 |
if ( false !== $delete_bans_result ) {
|
404 |
if (
|
405 |
( false === self::$errors_present ) &&
|
406 |
( !isset( $ban->poll_id ) ||
|
407 |
+
( '' === sanitize_text_field( $ban->poll_id ) ) )
|
408 |
) {
|
409 |
self::$errors_present = true;
|
410 |
self::$error_text = __( 'Data for "Poll" is invalid', 'yop-poll' );
|
412 |
if (
|
413 |
( false === self::$errors_present ) &&
|
414 |
( !isset( $ban->b_by ) ||
|
415 |
+
( '' === sanitize_text_field( $ban->b_by ) ) ||
|
416 |
( false === in_array( $ban->b_by, self::$by_allowed ) )
|
417 |
)
|
418 |
) {
|
422 |
if (
|
423 |
( false === self::$errors_present ) &&
|
424 |
( !isset( $ban->b_value ) ||
|
425 |
+
( '' === sanitize_text_field( $ban->b_value ) ) )
|
426 |
) {
|
427 |
self::$errors_present = true;
|
428 |
self::$error_text = __( 'Data for "Ban Value" is invalid', 'yop-poll' );
|
admin/models/elements.php
CHANGED
@@ -120,8 +120,8 @@ class YOP_POLL_Elements {
|
|
120 |
$GLOBALS['wpdb']->yop_poll_elements,
|
121 |
$data,
|
122 |
array(
|
123 |
-
'id' => $element_id,
|
124 |
-
'poll_id' => $poll_id
|
125 |
)
|
126 |
);
|
127 |
if ( false === $delete_result ) {
|
@@ -146,7 +146,7 @@ class YOP_POLL_Elements {
|
|
146 |
$GLOBALS['wpdb']->yop_poll_elements,
|
147 |
$data,
|
148 |
array(
|
149 |
-
'poll_id' => $poll_id
|
150 |
)
|
151 |
);
|
152 |
if ( false !== $delete_result ) {
|
120 |
$GLOBALS['wpdb']->yop_poll_elements,
|
121 |
$data,
|
122 |
array(
|
123 |
+
'id' => sanitize_text_field( $element_id ),
|
124 |
+
'poll_id' => sanitize_text_field( $poll_id )
|
125 |
)
|
126 |
);
|
127 |
if ( false === $delete_result ) {
|
146 |
$GLOBALS['wpdb']->yop_poll_elements,
|
147 |
$data,
|
148 |
array(
|
149 |
+
'poll_id' => sanitize_text_field( $poll_id )
|
150 |
)
|
151 |
);
|
152 |
if ( false !== $delete_result ) {
|
admin/models/logs.php
CHANGED
@@ -18,18 +18,18 @@ class YOP_Poll_Logs {
|
|
18 |
array_push( $message, 'success' );
|
19 |
}
|
20 |
$data = array(
|
21 |
-
'poll_id' => $vote->pollId,
|
22 |
-
'poll_author' => $vote->pollAuthor,
|
23 |
-
'user_id' => $vote->user->id,
|
24 |
-
'user_email' => $vote->user->email,
|
25 |
-
'user_type' => $vote->user->type,
|
26 |
-
'ipaddress' => $vote->user->ipaddress,
|
27 |
-
'tracking_id' => $vote->trackingId,
|
28 |
-
'voter_id' => $vote->user->c_data,
|
29 |
-
'voter_fingerprint' => $vote->user->f_data,
|
30 |
'vote_data' => serialize( YOP_Poll_Votes::create_meta_data( $vote ) ),
|
31 |
'vote_message' => serialize( $message ),
|
32 |
-
'added_date' => $vote->added_date
|
33 |
);
|
34 |
$GLOBALS['wpdb']->insert( $GLOBALS['wpdb']->yop_poll_logs, $data );
|
35 |
}
|
18 |
array_push( $message, 'success' );
|
19 |
}
|
20 |
$data = array(
|
21 |
+
'poll_id' => sanitize_text_field( $vote->pollId ),
|
22 |
+
'poll_author' => sanitize_text_field( $vote->pollAuthor ),
|
23 |
+
'user_id' => sanitize_text_field( $vote->user->id ),
|
24 |
+
'user_email' => sanitize_text_field( $vote->user->email ),
|
25 |
+
'user_type' => sanitize_text_field( $vote->user->type ),
|
26 |
+
'ipaddress' => sanitize_text_field( $vote->user->ipaddress ),
|
27 |
+
'tracking_id' => sanitize_text_field( $vote->trackingId ),
|
28 |
+
'voter_id' => sanitize_text_field( $vote->user->c_data ),
|
29 |
+
'voter_fingerprint' => sanitize_text_field( $vote->user->f_data ),
|
30 |
'vote_data' => serialize( YOP_Poll_Votes::create_meta_data( $vote ) ),
|
31 |
'vote_message' => serialize( $message ),
|
32 |
+
'added_date' => sanitize_text_field( $vote->added_date )
|
33 |
);
|
34 |
$GLOBALS['wpdb']->insert( $GLOBALS['wpdb']->yop_poll_logs, $data );
|
35 |
}
|
admin/models/polls.php
CHANGED
@@ -375,8 +375,8 @@ class YOP_Poll_Polls {
|
|
375 |
'meta_data' => serialize( $poll_meta_data ),
|
376 |
'total_submits' => 0,
|
377 |
'total_submited_answers' => 0,
|
378 |
-
'added_date' => isset( $poll->added_date ) ? $poll->added_date : current_time( 'mysql' ),
|
379 |
-
'modified_date' => isset( $poll->modified_date ) ? $poll->modified_date : current_time( 'mysql' )
|
380 |
);
|
381 |
if ( isset( $poll->ID ) && is_numeric($poll->ID ) ) {
|
382 |
$data['id'] = $poll->ID;
|
@@ -731,10 +731,25 @@ class YOP_Poll_Polls {
|
|
731 |
'emailNotificationsFromEmail' => sanitize_text_field( $poll->options->poll->emailNotificationsFromEmail ),
|
732 |
'emailNotificationsRecipients' => sanitize_text_field( $poll->options->poll->emailNotificationsRecipients ),
|
733 |
'emailNotificationsSubject' => sanitize_text_field( $poll->options->poll->emailNotificationsSubject ),
|
734 |
-
'emailNotificationsMessage' =>
|
|
|
|
|
|
|
|
|
|
|
735 |
'enableGdpr' => sanitize_text_field( $poll->options->poll->enableGdpr ),
|
736 |
'gdprSolution' => sanitize_text_field( $poll->options->poll->gdprSolution ),
|
737 |
-
'gdprConsentText' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
738 |
'loadWithAjax' => sanitize_text_field( $poll->options->poll->loadWithAjax ),
|
739 |
'notificationMessageLocation' => sanitize_text_field( $poll->options->poll->notificationMessageLocation )
|
740 |
),
|
@@ -771,7 +786,7 @@ class YOP_Poll_Polls {
|
|
771 |
if (
|
772 |
( false === self::$errors_present ) &&
|
773 |
( !isset( $poll->name ) ||
|
774 |
-
( '' ===
|
775 |
) {
|
776 |
self::$errors_present = true;
|
777 |
self::$error_text = __( 'Data for "Poll Name" is invalid', 'yop-poll' );
|
@@ -779,7 +794,7 @@ class YOP_Poll_Polls {
|
|
779 |
if (
|
780 |
( false === self::$errors_present ) &&
|
781 |
( !isset( $poll->design->template ) ||
|
782 |
-
( '' ===
|
783 |
( 0 === intval( $poll->design->template ) ) )
|
784 |
) {
|
785 |
self::$errors_present = true;
|
@@ -788,7 +803,7 @@ class YOP_Poll_Polls {
|
|
788 |
if (
|
789 |
( false === self::$errors_present ) &&
|
790 |
( !isset( $poll->design->style->poll->backgroundColor ) ||
|
791 |
-
( '' ===
|
792 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->poll->backgroundColor ) ) ) )
|
793 |
) {
|
794 |
self::$errors_present = true;
|
@@ -797,7 +812,7 @@ class YOP_Poll_Polls {
|
|
797 |
if (
|
798 |
( false === self::$errors_present ) &&
|
799 |
( !isset( $poll->design->style->poll->borderSize ) ||
|
800 |
-
( '' ===
|
801 |
( !ctype_digit( (string) $poll->design->style->poll->borderSize ) ) )
|
802 |
) {
|
803 |
self::$errors_present = true;
|
@@ -806,7 +821,7 @@ class YOP_Poll_Polls {
|
|
806 |
if (
|
807 |
( false === self::$errors_present ) &&
|
808 |
( !isset( $poll->design->style->poll->borderColor ) ||
|
809 |
-
( '' ===
|
810 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->poll->borderColor ) ) ) )
|
811 |
) {
|
812 |
self::$errors_present = true;
|
@@ -815,7 +830,7 @@ class YOP_Poll_Polls {
|
|
815 |
if (
|
816 |
( false === self::$errors_present ) &&
|
817 |
( !isset( $poll->design->style->poll->borderRadius ) ||
|
818 |
-
( '' ===
|
819 |
( !ctype_digit( (string) $poll->design->style->poll->borderRadius ) ) )
|
820 |
) {
|
821 |
self::$errors_present = true;
|
@@ -824,7 +839,7 @@ class YOP_Poll_Polls {
|
|
824 |
if (
|
825 |
( false === self::$errors_present ) &&
|
826 |
( !isset( $poll->design->style->poll->paddingLeftRight ) ||
|
827 |
-
( '' ===
|
828 |
( !ctype_digit( (string) $poll->design->style->poll->paddingLeftRight ) ) )
|
829 |
) {
|
830 |
self::$errors_present = true;
|
@@ -833,7 +848,7 @@ class YOP_Poll_Polls {
|
|
833 |
if (
|
834 |
( false === self::$errors_present ) &&
|
835 |
( !isset( $poll->design->style->poll->paddingTopBottom ) ||
|
836 |
-
( '' ===
|
837 |
( !ctype_digit( (string) $poll->design->style->poll->paddingTopBottom ) ) )
|
838 |
) {
|
839 |
self::$errors_present = true;
|
@@ -843,7 +858,7 @@ class YOP_Poll_Polls {
|
|
843 |
if (
|
844 |
( false === self::$errors_present ) &&
|
845 |
( !isset( $poll->design->style->questions->textColor ) ||
|
846 |
-
( '' ===
|
847 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->questions->textColor ) ) ) )
|
848 |
) {
|
849 |
self::$errors_present = true;
|
@@ -852,7 +867,7 @@ class YOP_Poll_Polls {
|
|
852 |
if (
|
853 |
( false === self::$errors_present ) &&
|
854 |
( !isset( $poll->design->style->questions->textSize ) ||
|
855 |
-
( '' ===
|
856 |
) {
|
857 |
self::$errors_present = true;
|
858 |
self::$error_text = __( 'Data for "Question Text Size" is invalid', 'yop-poll' );
|
@@ -860,7 +875,7 @@ class YOP_Poll_Polls {
|
|
860 |
if (
|
861 |
( false === self::$errors_present ) &&
|
862 |
( !isset( $poll->design->style->questions->textWeight ) ||
|
863 |
-
( '' ===
|
864 |
( !in_array( $poll->design->style->questions->textWeight, self::$text_weight_allowed ) ) )
|
865 |
) {
|
866 |
self::$errors_present = true;
|
@@ -869,7 +884,7 @@ class YOP_Poll_Polls {
|
|
869 |
if (
|
870 |
( false === self::$errors_present ) &&
|
871 |
( !isset( $poll->design->style->questions->textAlign ) ||
|
872 |
-
( '' ===
|
873 |
( !in_array( $poll->design->style->questions->textAlign, self::$text_align_allowed ) ) )
|
874 |
) {
|
875 |
self::$errors_present = true;
|
@@ -879,7 +894,7 @@ class YOP_Poll_Polls {
|
|
879 |
if (
|
880 |
( false === self::$errors_present ) &&
|
881 |
( !isset( $poll->design->style->answers->paddingLeftRight ) ||
|
882 |
-
( '' ===
|
883 |
( !ctype_digit( (string) $poll->design->style->answers->paddingLeftRight ) ) )
|
884 |
) {
|
885 |
self::$errors_present = true;
|
@@ -888,7 +903,7 @@ class YOP_Poll_Polls {
|
|
888 |
if (
|
889 |
( false === self::$errors_present ) &&
|
890 |
( !isset( $poll->design->style->answers->paddingTopBottom ) ||
|
891 |
-
( '' ===
|
892 |
( !ctype_digit( (string) $poll->design->style->answers->paddingTopBottom ) ) )
|
893 |
) {
|
894 |
self::$errors_present = true;
|
@@ -897,7 +912,7 @@ class YOP_Poll_Polls {
|
|
897 |
if (
|
898 |
( false === self::$errors_present ) &&
|
899 |
( !isset( $poll->design->style->answers->textColor ) ||
|
900 |
-
( '' ===
|
901 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->answers->textColor ) ) ) )
|
902 |
) {
|
903 |
self::$errors_present = true;
|
@@ -906,7 +921,7 @@ class YOP_Poll_Polls {
|
|
906 |
if (
|
907 |
( false === self::$errors_present ) &&
|
908 |
( !isset( $poll->design->style->answers->textSize ) ||
|
909 |
-
( '' ===
|
910 |
) {
|
911 |
self::$errors_present = true;
|
912 |
self::$error_text = __( 'Data for "Answers Text Size" is invalid', 'yop-poll' );
|
@@ -914,7 +929,7 @@ class YOP_Poll_Polls {
|
|
914 |
if (
|
915 |
( false === self::$errors_present ) &&
|
916 |
( !isset( $poll->design->style->answers->textWeight ) ||
|
917 |
-
( '' ===
|
918 |
( !in_array( $poll->design->style->answers->textWeight, self::$text_weight_allowed ) ) )
|
919 |
) {
|
920 |
self::$errors_present = true;
|
@@ -924,7 +939,7 @@ class YOP_Poll_Polls {
|
|
924 |
if (
|
925 |
( false === self::$errors_present ) &&
|
926 |
( !isset( $poll->design->style->buttons->backgroundColor ) ||
|
927 |
-
( '' ===
|
928 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->buttons->backgroundColor ) ) ) )
|
929 |
) {
|
930 |
self::$errors_present = true;
|
@@ -933,7 +948,7 @@ class YOP_Poll_Polls {
|
|
933 |
if (
|
934 |
( false === self::$errors_present ) &&
|
935 |
( !isset( $poll->design->style->buttons->borderSize ) ||
|
936 |
-
( '' ===
|
937 |
( !ctype_digit( (string) $poll->design->style->buttons->borderSize ) ) )
|
938 |
) {
|
939 |
self::$errors_present = true;
|
@@ -942,7 +957,7 @@ class YOP_Poll_Polls {
|
|
942 |
if (
|
943 |
( false === self::$errors_present ) &&
|
944 |
( !isset( $poll->design->style->buttons->borderColor ) ||
|
945 |
-
( '' ===
|
946 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->buttons->borderColor ) ) ) )
|
947 |
) {
|
948 |
self::$errors_present = true;
|
@@ -951,7 +966,7 @@ class YOP_Poll_Polls {
|
|
951 |
if (
|
952 |
( false === self::$errors_present ) &&
|
953 |
( !isset( $poll->design->style->buttons->borderRadius ) ||
|
954 |
-
( '' ===
|
955 |
( !ctype_digit( (string) $poll->design->style->buttons->borderRadius ) ) )
|
956 |
) {
|
957 |
self::$errors_present = true;
|
@@ -960,7 +975,7 @@ class YOP_Poll_Polls {
|
|
960 |
if (
|
961 |
( false === self::$errors_present ) &&
|
962 |
( !isset( $poll->design->style->buttons->paddingLeftRight ) ||
|
963 |
-
( '' ===
|
964 |
( !ctype_digit( (string) $poll->design->style->buttons->paddingLeftRight ) ) )
|
965 |
) {
|
966 |
self::$errors_present = true;
|
@@ -969,7 +984,7 @@ class YOP_Poll_Polls {
|
|
969 |
if (
|
970 |
( false === self::$errors_present ) &&
|
971 |
( !isset( $poll->design->style->buttons->paddingTopBottom ) ||
|
972 |
-
( '' ===
|
973 |
( !ctype_digit( (string) $poll->design->style->buttons->paddingTopBottom ) ) )
|
974 |
) {
|
975 |
self::$errors_present = true;
|
@@ -978,7 +993,7 @@ class YOP_Poll_Polls {
|
|
978 |
if (
|
979 |
( false === self::$errors_present ) &&
|
980 |
( !isset( $poll->design->style->buttons->textColor ) ||
|
981 |
-
( '' ===
|
982 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->buttons->textColor ) ) ) )
|
983 |
) {
|
984 |
self::$errors_present = true;
|
@@ -987,7 +1002,7 @@ class YOP_Poll_Polls {
|
|
987 |
if (
|
988 |
( false === self::$errors_present ) &&
|
989 |
( !isset( $poll->design->style->buttons->textSize ) ||
|
990 |
-
( '' ===
|
991 |
) {
|
992 |
self::$errors_present = true;
|
993 |
self::$error_text = __( 'Data for "Buttons Text Size" is invalid', 'yop-poll' );
|
@@ -995,7 +1010,7 @@ class YOP_Poll_Polls {
|
|
995 |
if (
|
996 |
( false === self::$errors_present ) &&
|
997 |
( !isset( $poll->design->style->buttons->textWeight ) ||
|
998 |
-
( '' ===
|
999 |
( !in_array( $poll->design->style->answers->textWeight, self::$text_weight_allowed ) ) )
|
1000 |
) {
|
1001 |
self::$errors_present = true;
|
@@ -1005,7 +1020,7 @@ class YOP_Poll_Polls {
|
|
1005 |
if (
|
1006 |
( false === self::$errors_present ) &&
|
1007 |
( !isset( $poll->design->style->errors->borderLeftColorForSuccess ) ||
|
1008 |
-
( '' ===
|
1009 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->errors->borderLeftColorForSuccess ) ) ) )
|
1010 |
) {
|
1011 |
self::$errors_present = true;
|
@@ -1014,7 +1029,7 @@ class YOP_Poll_Polls {
|
|
1014 |
if (
|
1015 |
( false === self::$errors_present ) &&
|
1016 |
( !isset( $poll->design->style->errors->borderLeftColorForError ) ||
|
1017 |
-
( '' ===
|
1018 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->errors->borderLeftColorForError ) ) ) )
|
1019 |
) {
|
1020 |
self::$errors_present = true;
|
@@ -1023,7 +1038,7 @@ class YOP_Poll_Polls {
|
|
1023 |
if (
|
1024 |
( false === self::$errors_present ) &&
|
1025 |
( !isset( $poll->design->style->errors->borderLeftSize ) ||
|
1026 |
-
( '' ===
|
1027 |
( !ctype_digit( (string) $poll->design->style->errors->borderLeftSize ) ) )
|
1028 |
) {
|
1029 |
self::$errors_present = true;
|
@@ -1032,7 +1047,7 @@ class YOP_Poll_Polls {
|
|
1032 |
if (
|
1033 |
( false === self::$errors_present ) &&
|
1034 |
( !isset( $poll->design->style->errors->paddingTopBottom ) ||
|
1035 |
-
( '' ===
|
1036 |
( !ctype_digit( (string) $poll->design->style->errors->paddingTopBottom ) ) )
|
1037 |
) {
|
1038 |
self::$errors_present = true;
|
@@ -1041,7 +1056,7 @@ class YOP_Poll_Polls {
|
|
1041 |
if (
|
1042 |
( false === self::$errors_present ) &&
|
1043 |
( !isset( $poll->design->style->errors->textColor ) ||
|
1044 |
-
( '' ===
|
1045 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->errors->textColor ) ) ) )
|
1046 |
) {
|
1047 |
self::$errors_present = true;
|
@@ -1050,7 +1065,7 @@ class YOP_Poll_Polls {
|
|
1050 |
if (
|
1051 |
( false === self::$errors_present ) &&
|
1052 |
( !isset( $poll->design->style->errors->textSize ) ||
|
1053 |
-
( '' ===
|
1054 |
) {
|
1055 |
self::$errors_present = true;
|
1056 |
self::$error_text = __( 'Data for "Messages Text Size" is invalid', 'yop-poll' );
|
@@ -1058,7 +1073,7 @@ class YOP_Poll_Polls {
|
|
1058 |
if (
|
1059 |
( false === self::$errors_present ) &&
|
1060 |
( !isset( $poll->design->style->errors->textWeight ) ||
|
1061 |
-
( '' ===
|
1062 |
( !in_array( $poll->design->style->answers->textWeight, self::$text_weight_allowed ) ) )
|
1063 |
) {
|
1064 |
self::$errors_present = true;
|
@@ -1125,7 +1140,7 @@ class YOP_Poll_Polls {
|
|
1125 |
( false === self::$errors_present ) &&
|
1126 |
( 'yes' === $answer->options->makeLink ) &&
|
1127 |
( ( !isset( $answer->options->link ) ) ||
|
1128 |
-
( '' ===
|
1129 |
!filter_var( $answer->options->link, FILTER_VALIDATE_URL ) )
|
1130 |
) {
|
1131 |
self::$errors_present = true;
|
@@ -1174,7 +1189,7 @@ class YOP_Poll_Polls {
|
|
1174 |
if (
|
1175 |
( false === self::$errors_present ) &&
|
1176 |
( !isset( $element->options->multipleAnswersMinim ) ||
|
1177 |
-
( '' ===
|
1178 |
){
|
1179 |
self::$errors_present = true;
|
1180 |
self::$error_text = __( 'Data for "Minimum answers required" is invalid', 'yop-poll' );
|
@@ -1205,7 +1220,7 @@ class YOP_Poll_Polls {
|
|
1205 |
( false === self::$errors_present ) &&
|
1206 |
( 'columns' === $element->options->answersDisplay ) &&
|
1207 |
( !isset( $element->options->answersColumns ) ||
|
1208 |
-
( '' ===
|
1209 |
( 0 === intval( $element->options->answersColumns ) ) )
|
1210 |
){
|
1211 |
self::$errors_present = true;
|
@@ -1300,7 +1315,7 @@ class YOP_Poll_Polls {
|
|
1300 |
( false === self::$errors_present ) &&
|
1301 |
( 'custom' === $poll->options->poll->startDateOption ) &&
|
1302 |
( !isset( $poll->options->poll->startDateCustom ) ||
|
1303 |
-
( '' ===
|
1304 |
) {
|
1305 |
self::$errors_present = true;
|
1306 |
self::$error_text = __( 'Data for "Start Date" is invalid', 'yop-poll' );
|
@@ -1316,7 +1331,7 @@ class YOP_Poll_Polls {
|
|
1316 |
( false === self::$errors_present ) &&
|
1317 |
( 'custom' === $poll->options->poll->endDateOption ) &&
|
1318 |
( !isset( $poll->options->poll->endDateCustom ) ||
|
1319 |
-
( '' ===
|
1320 |
) {
|
1321 |
self::$errors_present = true;
|
1322 |
self::$error_text = __( 'Data for "End Date" is invalid', 'yop-poll' );
|
@@ -1378,7 +1393,7 @@ class YOP_Poll_Polls {
|
|
1378 |
( false === self::$errors_present ) &&
|
1379 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1380 |
( !isset( $poll->options->poll->emailNotificationsFromName ) ||
|
1381 |
-
( '' ===
|
1382 |
) {
|
1383 |
self::$errors_present = true;
|
1384 |
self::$error_text = __( 'Data for "From Name" is invalid', 'yop-poll' );
|
@@ -1387,7 +1402,7 @@ class YOP_Poll_Polls {
|
|
1387 |
( false === self::$errors_present ) &&
|
1388 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1389 |
( !isset( $poll->options->poll->emailNotificationsFromEmail ) ||
|
1390 |
-
( '' ===
|
1391 |
) {
|
1392 |
self::$errors_present = true;
|
1393 |
self::$error_text = __( 'Data for "From Email" is invalid', 'yop-poll' );
|
@@ -1396,7 +1411,7 @@ class YOP_Poll_Polls {
|
|
1396 |
( false === self::$errors_present ) &&
|
1397 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1398 |
( !isset( $poll->options->poll->emailNotificationsRecipients ) ||
|
1399 |
-
( '' ===
|
1400 |
) {
|
1401 |
self::$errors_present = true;
|
1402 |
self::$error_text = __( 'Data for "Recipients" is invalid', 'yop-poll' );
|
@@ -1405,7 +1420,7 @@ class YOP_Poll_Polls {
|
|
1405 |
( false === self::$errors_present ) &&
|
1406 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1407 |
( !isset( $poll->options->poll->emailNotificationsSubject ) ||
|
1408 |
-
( '' ===
|
1409 |
) {
|
1410 |
self::$errors_present = true;
|
1411 |
self::$error_text = __( 'Data for "Subject" is invalid', 'yop-poll' );
|
@@ -1414,7 +1429,7 @@ class YOP_Poll_Polls {
|
|
1414 |
( false === self::$errors_present ) &&
|
1415 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1416 |
( !isset( $poll->options->poll->emailNotificationsMessage ) ||
|
1417 |
-
( '' ===
|
1418 |
) {
|
1419 |
self::$errors_present = true;
|
1420 |
self::$error_text = __( 'Data for "Message" is invalid', 'yop-poll' );
|
@@ -1432,7 +1447,7 @@ class YOP_Poll_Polls {
|
|
1432 |
( false === self::$errors_present ) &&
|
1433 |
( in_array( 'custom-date', $poll->options->results->showResultsMoment ) ) &&
|
1434 |
( !isset( $poll->options->results->customDateResults ) ||
|
1435 |
-
( '' ===
|
1436 |
) {
|
1437 |
self::$errors_present = true;
|
1438 |
self::$error_text = __( 'Data for "Show Results" is invalid', 'yop-poll' );
|
@@ -2377,4 +2392,56 @@ class YOP_Poll_Polls {
|
|
2377 |
return false;
|
2378 |
}
|
2379 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2380 |
}
|
375 |
'meta_data' => serialize( $poll_meta_data ),
|
376 |
'total_submits' => 0,
|
377 |
'total_submited_answers' => 0,
|
378 |
+
'added_date' => isset( $poll->added_date ) ? sanitize_text_field( $poll->added_date ) : current_time( 'mysql' ),
|
379 |
+
'modified_date' => isset( $poll->modified_date ) ? sanitize_text_field( $poll->modified_date ) : current_time( 'mysql' )
|
380 |
);
|
381 |
if ( isset( $poll->ID ) && is_numeric($poll->ID ) ) {
|
382 |
$data['id'] = $poll->ID;
|
731 |
'emailNotificationsFromEmail' => sanitize_text_field( $poll->options->poll->emailNotificationsFromEmail ),
|
732 |
'emailNotificationsRecipients' => sanitize_text_field( $poll->options->poll->emailNotificationsRecipients ),
|
733 |
'emailNotificationsSubject' => sanitize_text_field( $poll->options->poll->emailNotificationsSubject ),
|
734 |
+
'emailNotificationsMessage' => wp_kses(
|
735 |
+
$poll->options->poll->emailNotificationsMessage,
|
736 |
+
array(
|
737 |
+
'br' => array()
|
738 |
+
)
|
739 |
+
),
|
740 |
'enableGdpr' => sanitize_text_field( $poll->options->poll->enableGdpr ),
|
741 |
'gdprSolution' => sanitize_text_field( $poll->options->poll->gdprSolution ),
|
742 |
+
'gdprConsentText' => wp_kses(
|
743 |
+
$poll->options->poll->gdprConsentText,
|
744 |
+
array(
|
745 |
+
'a' => array(
|
746 |
+
'href' => array(),
|
747 |
+
'target' => array(),
|
748 |
+
'title' => array(),
|
749 |
+
'rel' => array()
|
750 |
+
)
|
751 |
+
)
|
752 |
+
),
|
753 |
'loadWithAjax' => sanitize_text_field( $poll->options->poll->loadWithAjax ),
|
754 |
'notificationMessageLocation' => sanitize_text_field( $poll->options->poll->notificationMessageLocation )
|
755 |
),
|
786 |
if (
|
787 |
( false === self::$errors_present ) &&
|
788 |
( !isset( $poll->name ) ||
|
789 |
+
( '' === sanitize_text_field( $poll->name ) ) )
|
790 |
) {
|
791 |
self::$errors_present = true;
|
792 |
self::$error_text = __( 'Data for "Poll Name" is invalid', 'yop-poll' );
|
794 |
if (
|
795 |
( false === self::$errors_present ) &&
|
796 |
( !isset( $poll->design->template ) ||
|
797 |
+
( '' === sanitize_text_field( $poll->design->template ) ) ||
|
798 |
( 0 === intval( $poll->design->template ) ) )
|
799 |
) {
|
800 |
self::$errors_present = true;
|
803 |
if (
|
804 |
( false === self::$errors_present ) &&
|
805 |
( !isset( $poll->design->style->poll->backgroundColor ) ||
|
806 |
+
( '' === sanitize_text_field( $poll->design->style->poll->backgroundColor ) ) ||
|
807 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->poll->backgroundColor ) ) ) )
|
808 |
) {
|
809 |
self::$errors_present = true;
|
812 |
if (
|
813 |
( false === self::$errors_present ) &&
|
814 |
( !isset( $poll->design->style->poll->borderSize ) ||
|
815 |
+
( '' === sanitize_text_field( $poll->design->style->poll->borderSize ) ) ||
|
816 |
( !ctype_digit( (string) $poll->design->style->poll->borderSize ) ) )
|
817 |
) {
|
818 |
self::$errors_present = true;
|
821 |
if (
|
822 |
( false === self::$errors_present ) &&
|
823 |
( !isset( $poll->design->style->poll->borderColor ) ||
|
824 |
+
( '' === sanitize_text_field( $poll->design->style->poll->borderColor ) ) ||
|
825 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->poll->borderColor ) ) ) )
|
826 |
) {
|
827 |
self::$errors_present = true;
|
830 |
if (
|
831 |
( false === self::$errors_present ) &&
|
832 |
( !isset( $poll->design->style->poll->borderRadius ) ||
|
833 |
+
( '' === sanitize_text_field( $poll->design->style->poll->borderRadius ) ) ||
|
834 |
( !ctype_digit( (string) $poll->design->style->poll->borderRadius ) ) )
|
835 |
) {
|
836 |
self::$errors_present = true;
|
839 |
if (
|
840 |
( false === self::$errors_present ) &&
|
841 |
( !isset( $poll->design->style->poll->paddingLeftRight ) ||
|
842 |
+
( '' === sanitize_text_field( $poll->design->style->poll->paddingLeftRight ) ) ||
|
843 |
( !ctype_digit( (string) $poll->design->style->poll->paddingLeftRight ) ) )
|
844 |
) {
|
845 |
self::$errors_present = true;
|
848 |
if (
|
849 |
( false === self::$errors_present ) &&
|
850 |
( !isset( $poll->design->style->poll->paddingTopBottom ) ||
|
851 |
+
( '' === sanitize_text_field( $poll->design->style->poll->paddingTopBottom ) ) ||
|
852 |
( !ctype_digit( (string) $poll->design->style->poll->paddingTopBottom ) ) )
|
853 |
) {
|
854 |
self::$errors_present = true;
|
858 |
if (
|
859 |
( false === self::$errors_present ) &&
|
860 |
( !isset( $poll->design->style->questions->textColor ) ||
|
861 |
+
( '' === sanitize_text_field( $poll->design->style->questions->textColor ) ) ||
|
862 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->questions->textColor ) ) ) )
|
863 |
) {
|
864 |
self::$errors_present = true;
|
867 |
if (
|
868 |
( false === self::$errors_present ) &&
|
869 |
( !isset( $poll->design->style->questions->textSize ) ||
|
870 |
+
( '' === sanitize_text_field( $poll->design->style->questions->textSize ) ) )
|
871 |
) {
|
872 |
self::$errors_present = true;
|
873 |
self::$error_text = __( 'Data for "Question Text Size" is invalid', 'yop-poll' );
|
875 |
if (
|
876 |
( false === self::$errors_present ) &&
|
877 |
( !isset( $poll->design->style->questions->textWeight ) ||
|
878 |
+
( '' === sanitize_text_field( $poll->design->style->questions->textWeight ) ) ||
|
879 |
( !in_array( $poll->design->style->questions->textWeight, self::$text_weight_allowed ) ) )
|
880 |
) {
|
881 |
self::$errors_present = true;
|
884 |
if (
|
885 |
( false === self::$errors_present ) &&
|
886 |
( !isset( $poll->design->style->questions->textAlign ) ||
|
887 |
+
( '' === sanitize_text_field( $poll->design->style->questions->textAlign ) ) ||
|
888 |
( !in_array( $poll->design->style->questions->textAlign, self::$text_align_allowed ) ) )
|
889 |
) {
|
890 |
self::$errors_present = true;
|
894 |
if (
|
895 |
( false === self::$errors_present ) &&
|
896 |
( !isset( $poll->design->style->answers->paddingLeftRight ) ||
|
897 |
+
( '' === sanitize_text_field( $poll->design->style->answers->paddingLeftRight ) ) ||
|
898 |
( !ctype_digit( (string) $poll->design->style->answers->paddingLeftRight ) ) )
|
899 |
) {
|
900 |
self::$errors_present = true;
|
903 |
if (
|
904 |
( false === self::$errors_present ) &&
|
905 |
( !isset( $poll->design->style->answers->paddingTopBottom ) ||
|
906 |
+
( '' === sanitize_text_field( $poll->design->style->answers->paddingTopBottom ) ) ||
|
907 |
( !ctype_digit( (string) $poll->design->style->answers->paddingTopBottom ) ) )
|
908 |
) {
|
909 |
self::$errors_present = true;
|
912 |
if (
|
913 |
( false === self::$errors_present ) &&
|
914 |
( !isset( $poll->design->style->answers->textColor ) ||
|
915 |
+
( '' === sanitize_text_field( $poll->design->style->answers->textColor ) ) ||
|
916 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->answers->textColor ) ) ) )
|
917 |
) {
|
918 |
self::$errors_present = true;
|
921 |
if (
|
922 |
( false === self::$errors_present ) &&
|
923 |
( !isset( $poll->design->style->answers->textSize ) ||
|
924 |
+
( '' === sanitize_text_field( $poll->design->style->answers->textSize ) ) )
|
925 |
) {
|
926 |
self::$errors_present = true;
|
927 |
self::$error_text = __( 'Data for "Answers Text Size" is invalid', 'yop-poll' );
|
929 |
if (
|
930 |
( false === self::$errors_present ) &&
|
931 |
( !isset( $poll->design->style->answers->textWeight ) ||
|
932 |
+
( '' === sanitize_text_field( $poll->design->style->answers->textWeight ) ) ||
|
933 |
( !in_array( $poll->design->style->answers->textWeight, self::$text_weight_allowed ) ) )
|
934 |
) {
|
935 |
self::$errors_present = true;
|
939 |
if (
|
940 |
( false === self::$errors_present ) &&
|
941 |
( !isset( $poll->design->style->buttons->backgroundColor ) ||
|
942 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->backgroundColor ) ) ||
|
943 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->buttons->backgroundColor ) ) ) )
|
944 |
) {
|
945 |
self::$errors_present = true;
|
948 |
if (
|
949 |
( false === self::$errors_present ) &&
|
950 |
( !isset( $poll->design->style->buttons->borderSize ) ||
|
951 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->borderSize ) ) ||
|
952 |
( !ctype_digit( (string) $poll->design->style->buttons->borderSize ) ) )
|
953 |
) {
|
954 |
self::$errors_present = true;
|
957 |
if (
|
958 |
( false === self::$errors_present ) &&
|
959 |
( !isset( $poll->design->style->buttons->borderColor ) ||
|
960 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->borderColor ) ) ||
|
961 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->buttons->borderColor ) ) ) )
|
962 |
) {
|
963 |
self::$errors_present = true;
|
966 |
if (
|
967 |
( false === self::$errors_present ) &&
|
968 |
( !isset( $poll->design->style->buttons->borderRadius ) ||
|
969 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->borderRadius ) ) ||
|
970 |
( !ctype_digit( (string) $poll->design->style->buttons->borderRadius ) ) )
|
971 |
) {
|
972 |
self::$errors_present = true;
|
975 |
if (
|
976 |
( false === self::$errors_present ) &&
|
977 |
( !isset( $poll->design->style->buttons->paddingLeftRight ) ||
|
978 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->paddingLeftRight ) ) ||
|
979 |
( !ctype_digit( (string) $poll->design->style->buttons->paddingLeftRight ) ) )
|
980 |
) {
|
981 |
self::$errors_present = true;
|
984 |
if (
|
985 |
( false === self::$errors_present ) &&
|
986 |
( !isset( $poll->design->style->buttons->paddingTopBottom ) ||
|
987 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->paddingTopBottom ) ) ||
|
988 |
( !ctype_digit( (string) $poll->design->style->buttons->paddingTopBottom ) ) )
|
989 |
) {
|
990 |
self::$errors_present = true;
|
993 |
if (
|
994 |
( false === self::$errors_present ) &&
|
995 |
( !isset( $poll->design->style->buttons->textColor ) ||
|
996 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->textColor ) ) ||
|
997 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->buttons->textColor ) ) ) )
|
998 |
) {
|
999 |
self::$errors_present = true;
|
1002 |
if (
|
1003 |
( false === self::$errors_present ) &&
|
1004 |
( !isset( $poll->design->style->buttons->textSize ) ||
|
1005 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->textSize ) ) )
|
1006 |
) {
|
1007 |
self::$errors_present = true;
|
1008 |
self::$error_text = __( 'Data for "Buttons Text Size" is invalid', 'yop-poll' );
|
1010 |
if (
|
1011 |
( false === self::$errors_present ) &&
|
1012 |
( !isset( $poll->design->style->buttons->textWeight ) ||
|
1013 |
+
( '' === sanitize_text_field( $poll->design->style->buttons->textWeight ) ) ||
|
1014 |
( !in_array( $poll->design->style->answers->textWeight, self::$text_weight_allowed ) ) )
|
1015 |
) {
|
1016 |
self::$errors_present = true;
|
1020 |
if (
|
1021 |
( false === self::$errors_present ) &&
|
1022 |
( !isset( $poll->design->style->errors->borderLeftColorForSuccess ) ||
|
1023 |
+
( '' === sanitize_text_field( $poll->design->style->errors->borderLeftColorForSuccess ) ) ||
|
1024 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->errors->borderLeftColorForSuccess ) ) ) )
|
1025 |
) {
|
1026 |
self::$errors_present = true;
|
1029 |
if (
|
1030 |
( false === self::$errors_present ) &&
|
1031 |
( !isset( $poll->design->style->errors->borderLeftColorForError ) ||
|
1032 |
+
( '' === sanitize_text_field( $poll->design->style->errors->borderLeftColorForError ) ) ||
|
1033 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->errors->borderLeftColorForError ) ) ) )
|
1034 |
) {
|
1035 |
self::$errors_present = true;
|
1038 |
if (
|
1039 |
( false === self::$errors_present ) &&
|
1040 |
( !isset( $poll->design->style->errors->borderLeftSize ) ||
|
1041 |
+
( '' === sanitize_text_field( $poll->design->style->errors->borderLeftSize ) ) ||
|
1042 |
( !ctype_digit( (string) $poll->design->style->errors->borderLeftSize ) ) )
|
1043 |
) {
|
1044 |
self::$errors_present = true;
|
1047 |
if (
|
1048 |
( false === self::$errors_present ) &&
|
1049 |
( !isset( $poll->design->style->errors->paddingTopBottom ) ||
|
1050 |
+
( '' === sanitize_text_field( $poll->design->style->errors->paddingTopBottom ) ) ||
|
1051 |
( !ctype_digit( (string) $poll->design->style->errors->paddingTopBottom ) ) )
|
1052 |
) {
|
1053 |
self::$errors_present = true;
|
1056 |
if (
|
1057 |
( false === self::$errors_present ) &&
|
1058 |
( !isset( $poll->design->style->errors->textColor ) ||
|
1059 |
+
( '' === sanitize_text_field( $poll->design->style->errors->textColor ) ) ||
|
1060 |
( !ctype_alnum( str_replace( '#', '', $poll->design->style->errors->textColor ) ) ) )
|
1061 |
) {
|
1062 |
self::$errors_present = true;
|
1065 |
if (
|
1066 |
( false === self::$errors_present ) &&
|
1067 |
( !isset( $poll->design->style->errors->textSize ) ||
|
1068 |
+
( '' === sanitize_text_field( $poll->design->style->errors->textSize ) ) )
|
1069 |
) {
|
1070 |
self::$errors_present = true;
|
1071 |
self::$error_text = __( 'Data for "Messages Text Size" is invalid', 'yop-poll' );
|
1073 |
if (
|
1074 |
( false === self::$errors_present ) &&
|
1075 |
( !isset( $poll->design->style->errors->textWeight ) ||
|
1076 |
+
( '' === sanitize_text_field( $poll->design->style->errors->textWeight ) ) ||
|
1077 |
( !in_array( $poll->design->style->answers->textWeight, self::$text_weight_allowed ) ) )
|
1078 |
) {
|
1079 |
self::$errors_present = true;
|
1140 |
( false === self::$errors_present ) &&
|
1141 |
( 'yes' === $answer->options->makeLink ) &&
|
1142 |
( ( !isset( $answer->options->link ) ) ||
|
1143 |
+
( '' === sanitize_text_field( $answer->options->link ) ) ||
|
1144 |
!filter_var( $answer->options->link, FILTER_VALIDATE_URL ) )
|
1145 |
) {
|
1146 |
self::$errors_present = true;
|
1189 |
if (
|
1190 |
( false === self::$errors_present ) &&
|
1191 |
( !isset( $element->options->multipleAnswersMinim ) ||
|
1192 |
+
( '' === sanitize_text_field( $element->options->multipleAnswersMinim ) ) )
|
1193 |
){
|
1194 |
self::$errors_present = true;
|
1195 |
self::$error_text = __( 'Data for "Minimum answers required" is invalid', 'yop-poll' );
|
1220 |
( false === self::$errors_present ) &&
|
1221 |
( 'columns' === $element->options->answersDisplay ) &&
|
1222 |
( !isset( $element->options->answersColumns ) ||
|
1223 |
+
( '' === sanitize_text_field( $element->options->answersColumns ) ) ||
|
1224 |
( 0 === intval( $element->options->answersColumns ) ) )
|
1225 |
){
|
1226 |
self::$errors_present = true;
|
1315 |
( false === self::$errors_present ) &&
|
1316 |
( 'custom' === $poll->options->poll->startDateOption ) &&
|
1317 |
( !isset( $poll->options->poll->startDateCustom ) ||
|
1318 |
+
( '' === sanitize_text_field( $poll->options->poll->startDateCustom ) ) )
|
1319 |
) {
|
1320 |
self::$errors_present = true;
|
1321 |
self::$error_text = __( 'Data for "Start Date" is invalid', 'yop-poll' );
|
1331 |
( false === self::$errors_present ) &&
|
1332 |
( 'custom' === $poll->options->poll->endDateOption ) &&
|
1333 |
( !isset( $poll->options->poll->endDateCustom ) ||
|
1334 |
+
( '' === sanitize_text_field( $poll->options->poll->endDateCustom ) ) )
|
1335 |
) {
|
1336 |
self::$errors_present = true;
|
1337 |
self::$error_text = __( 'Data for "End Date" is invalid', 'yop-poll' );
|
1393 |
( false === self::$errors_present ) &&
|
1394 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1395 |
( !isset( $poll->options->poll->emailNotificationsFromName ) ||
|
1396 |
+
( '' === sanitize_text_field( $poll->options->poll->emailNotificationsFromName ) ) )
|
1397 |
) {
|
1398 |
self::$errors_present = true;
|
1399 |
self::$error_text = __( 'Data for "From Name" is invalid', 'yop-poll' );
|
1402 |
( false === self::$errors_present ) &&
|
1403 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1404 |
( !isset( $poll->options->poll->emailNotificationsFromEmail ) ||
|
1405 |
+
( '' === sanitize_text_field( $poll->options->poll->emailNotificationsFromEmail ) ) )
|
1406 |
) {
|
1407 |
self::$errors_present = true;
|
1408 |
self::$error_text = __( 'Data for "From Email" is invalid', 'yop-poll' );
|
1411 |
( false === self::$errors_present ) &&
|
1412 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1413 |
( !isset( $poll->options->poll->emailNotificationsRecipients ) ||
|
1414 |
+
( '' === sanitize_text_field( $poll->options->poll->emailNotificationsRecipients ) ) )
|
1415 |
) {
|
1416 |
self::$errors_present = true;
|
1417 |
self::$error_text = __( 'Data for "Recipients" is invalid', 'yop-poll' );
|
1420 |
( false === self::$errors_present ) &&
|
1421 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1422 |
( !isset( $poll->options->poll->emailNotificationsSubject ) ||
|
1423 |
+
( '' === sanitize_text_field( $poll->options->poll->emailNotificationsSubject ) ) )
|
1424 |
) {
|
1425 |
self::$errors_present = true;
|
1426 |
self::$error_text = __( 'Data for "Subject" is invalid', 'yop-poll' );
|
1429 |
( false === self::$errors_present ) &&
|
1430 |
( 'yes' === $poll->options->poll->sendEmailNotifications ) &&
|
1431 |
( !isset( $poll->options->poll->emailNotificationsMessage ) ||
|
1432 |
+
( '' === sanitize_text_field( $poll->options->poll->emailNotificationsMessage ) ) )
|
1433 |
) {
|
1434 |
self::$errors_present = true;
|
1435 |
self::$error_text = __( 'Data for "Message" is invalid', 'yop-poll' );
|
1447 |
( false === self::$errors_present ) &&
|
1448 |
( in_array( 'custom-date', $poll->options->results->showResultsMoment ) ) &&
|
1449 |
( !isset( $poll->options->results->customDateResults ) ||
|
1450 |
+
( '' === sanitize_text_field( $poll->options->results->customDateResults ) ) )
|
1451 |
) {
|
1452 |
self::$errors_present = true;
|
1453 |
self::$error_text = __( 'Data for "Show Results" is invalid', 'yop-poll' );
|
2392 |
return false;
|
2393 |
}
|
2394 |
}
|
2395 |
+
public static function get_all_polls_for_archive( $params, $order_by ) {
|
2396 |
+
if ( 0 !== $params['max'] ) {
|
2397 |
+
$limit = "LIMIT %d";
|
2398 |
+
$query = "SELECT `id` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by} LIMIT %d";
|
2399 |
+
$query_ready =$GLOBALS['wpdb']->prepare(
|
2400 |
+
$query,
|
2401 |
+
$params['max']
|
2402 |
+
);
|
2403 |
+
} else {
|
2404 |
+
$query_ready = "SELECT `id` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by}";
|
2405 |
+
}
|
2406 |
+
$polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
|
2407 |
+
return $polls;
|
2408 |
+
}
|
2409 |
+
public static function get_active_polls_for_archive( $params, $order_by ) {
|
2410 |
+
$polls_for_display = array();
|
2411 |
+
$nr_added = 0;
|
2412 |
+
$query_ready = "SELECT `id`, `meta_data` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by}";
|
2413 |
+
$polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
|
2414 |
+
foreach ( $polls as $poll ) {
|
2415 |
+
if ( false === YOP_Poll_Polls::is_ended( $poll, false ) ) {
|
2416 |
+
if ( 0 === $params['max'] ) {
|
2417 |
+
$polls_for_display[]['id'] = $poll['id'];
|
2418 |
+
} else {
|
2419 |
+
if ( $nr_added < $params['max'] ) {
|
2420 |
+
$polls_for_display[]['id'] = $poll['id'];
|
2421 |
+
$nr_added++;
|
2422 |
+
}
|
2423 |
+
}
|
2424 |
+
}
|
2425 |
+
}
|
2426 |
+
return $polls_for_display;
|
2427 |
+
}
|
2428 |
+
public static function get_ended_polls_for_archive( $params, $order_by ) {
|
2429 |
+
$polls_for_display = array();
|
2430 |
+
$nr_added = 0;
|
2431 |
+
$query_ready = "SELECT `id`, `meta_data` FROM `{$GLOBALS['wpdb']->yop_poll_polls}` WHERE `status` != 'deleted' {$order_by}";
|
2432 |
+
$polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
|
2433 |
+
foreach ( $polls as $poll ) {
|
2434 |
+
if ( true === YOP_Poll_Polls::is_ended( $poll, false ) ) {
|
2435 |
+
if ( 0 === $params['max'] ) {
|
2436 |
+
$polls_for_display[]['id'] = $poll['id'];
|
2437 |
+
} else {
|
2438 |
+
if ( $nr_added < $params['max'] ) {
|
2439 |
+
$polls_for_display[]['id'] = $poll['id'];
|
2440 |
+
$nr_added++;
|
2441 |
+
}
|
2442 |
+
}
|
2443 |
+
}
|
2444 |
+
}
|
2445 |
+
return $polls_for_display;
|
2446 |
+
}
|
2447 |
}
|
admin/models/settings.php
CHANGED
@@ -124,11 +124,11 @@ class YOP_Poll_Settings {
|
|
124 |
'i-date' => current_time( 'mysql' )
|
125 |
),
|
126 |
'email' => array(
|
127 |
-
'from-name' => isset( $old_settings['email_notifications_from_name'] ) ? $old_settings['email_notifications_from_name']: 'Your Name Here',
|
128 |
-
'from-email' => isset( $old_settings['email_notifications_from_email'] ) ? $old_settings['email_notifications_from_email']: 'Your Email Address Here',
|
129 |
-
'recipients' => isset( $old_settings['email_notifications_recipients'] ) ? $old_settings['email_notifications_recipients']: '',
|
130 |
-
'subject' => isset( $old_settings['email_notifications_subject'] ) ? $old_settings['email_notifications_subject']: 'Your Subject Here',
|
131 |
-
'message' => isset( $old_settings['email_notifications_body'] ) ? $old_settings['email_notifications_body'] : 'Your Message Here'
|
132 |
),
|
133 |
'integrations' => array(
|
134 |
'reCaptcha' => array(
|
@@ -148,13 +148,13 @@ class YOP_Poll_Settings {
|
|
148 |
'min-allowed-score' => ''
|
149 |
),
|
150 |
'facebook' => array(
|
151 |
-
'enabled' => isset( $old_settings['facebook_integration'] ) ? $old_settings['facebook_integration'] : 'no',
|
152 |
-
'app-id' => isset( $old_settings['facebook_appID'] ) ? $old_settings['facebook_appID'] : '',
|
153 |
),
|
154 |
'google' => array(
|
155 |
-
'enabled' => isset( $old_settings['google_integration'] ) ? $old_settings['google_integration'] : 'no',
|
156 |
-
'app-id' => isset( $old_settings['google_appID'] ) ? $old_settings['google_appID']: '',
|
157 |
-
'app-secret' => isset( $old_settings['google_appSecret'] ) ? $old_settings['google_appSecret']: ''
|
158 |
)
|
159 |
),
|
160 |
'messages' => array(
|
@@ -212,29 +212,29 @@ class YOP_Poll_Settings {
|
|
212 |
}
|
213 |
$new_settings = array(
|
214 |
'general' => array(
|
215 |
-
'i-date' => isset( $current_settings_decoded['general']['idate'] ) ? $current_settings_decoded['general']['idate'] : current_time( 'mysql' )
|
216 |
),
|
217 |
'email' => array(
|
218 |
-
'from-name' => isset( $current_settings_decoded['email']['from_name'] ) ? $current_settings_decoded['email']['from_name'] : '',
|
219 |
-
'from-email' => isset( $current_settings_decoded['email']['from_email'] )
|
220 |
-
'recipients' => isset( $current_settings_decoded['email']['recipients'] ) ? $current_settings_decoded['email']['recipients'] : '',
|
221 |
-
'subject' => isset( $current_settings_decoded['email']['subject'] ) ? $current_settings_decoded['email']['subject'] : '',
|
222 |
-
'message' => isset( $current_settings_decoded['email']['message'] ) ? $current_settings_decoded['email']['message'] : ''
|
223 |
),
|
224 |
'integrations' => array(
|
225 |
'reCaptcha' => array(
|
226 |
-
'enabled' => $captcha_enabled,
|
227 |
-
'site-key' => isset( $current_settings_decoded['integrations']['reCaptcha']['site_key'] ) ? $current_settings_decoded['integrations']['reCaptcha']['site_key'] : '',
|
228 |
-
'secret-key' => isset( $current_settings_decoded['integrations']['reCaptcha']['secret_key'] ) ? $current_settings_decoded['integrations']['reCaptcha']['secret_key']: '',
|
229 |
),
|
230 |
'facebook' => array(
|
231 |
-
'enabled' => isset( $current_settings_decoded['integrations']['facebook']['integration'] ) ? $current_settings_decoded['integrations']['facebook']['integration'] : 'no',
|
232 |
-
'app-id' => isset( $current_settings_decoded['integrations']['facebook']['app_id'] ) ? $current_settings_decoded['integrations']['facebook']['app_id'] : '',
|
233 |
),
|
234 |
'google' => array(
|
235 |
-
'enabled' => isset( $current_settings_decoded['integrations']['google']['integration'] ) ? $current_settings_decoded['integrations']['google']['integration'] : 'no',
|
236 |
-
'app-id' => isset( $current_settings_decoded['integrations']['google']['app_id'] ) ? $current_settings_decoded['integrations']['google']['app_id'] : '',
|
237 |
-
'app-secret' => isset( $current_settings_decoded['integrations']['google']['app_secret'] ) ? $current_settings_decoded['integrations']['google']['app_secret'] : '',
|
238 |
)
|
239 |
),
|
240 |
'messages' => array(
|
@@ -284,11 +284,16 @@ class YOP_Poll_Settings {
|
|
284 |
$current_settings['general']['remove-data'] = 'no';
|
285 |
$current_settings['notifications'] =array(
|
286 |
'new-vote' => array(
|
287 |
-
'from-name' => isset( $current_settings['email']['from-name'] ) ? $current_settings['email']['from-name'] : 'Your Name Here',
|
288 |
-
'from-email' => isset( $current_settings['email']['from-email'] ) ? $current_settings['email']['from-email'] : 'Your Email Address Here',
|
289 |
-
'recipients' => isset( $current_settings['email']['recipients'] ) ? $current_settings['email']['recipients'] : '',
|
290 |
-
'subject' => isset( $current_settings['email']['subject'] ) ? $current_settings['email']['subject'] : 'New vote for %POLL-NAME% on %VOTE-DATE%',
|
291 |
-
'message' => isset( $current_settings['email']['message'] ) ?
|
|
|
|
|
|
|
|
|
|
|
292 |
Here are the details
|
293 |
|
294 |
[QUESTION]
|
@@ -481,41 +486,41 @@ class YOP_Poll_Settings {
|
|
481 |
if (
|
482 |
( false === self::$errors_present ) &&
|
483 |
( !isset( $settings->integrations->reCaptcha->{'enabled'} ) ||
|
484 |
-
( '' ===
|
485 |
) {
|
486 |
self::$errors_present = true;
|
487 |
self::$error_text = __( 'Data for "Use Google reCaptcha" is invalid', 'yop-poll' );
|
488 |
}
|
489 |
if ( 'yes' === $settings->integrations->reCaptcha->{'enabled'} ) {
|
490 |
-
if ( ( false === isset( $settings->integrations->reCaptcha->{'site-key'} ) ) || ( '' ===
|
491 |
self::$errors_present = true;
|
492 |
self::$error_text = __( 'Data for "Site Key" is invalid', 'yop-poll' );
|
493 |
}
|
494 |
-
if ( ( false === isset( $settings->integrations->reCaptcha->{'secret-key'} ) ) || ( '' ===
|
495 |
self::$errors_present = true;
|
496 |
self::$error_text = __( 'Data for "Secret Key" is invalid', 'yop-poll' );
|
497 |
}
|
498 |
}
|
499 |
if ( 'yes' === $settings->integrations->reCaptchaV2Invisible->{'enabled'} ) {
|
500 |
-
if ( ( false === isset( $settings->integrations->reCaptchaV2Invisible->{'site-key'} ) ) || ( '' ===
|
501 |
self::$errors_present = true;
|
502 |
self::$error_text = __( 'Data for "Site Key" is invalid', 'yop-poll' );
|
503 |
}
|
504 |
-
if ( ( false === isset( $settings->integrations->reCaptchaV2Invisible->{'secret-key'} ) ) || ( '' ===
|
505 |
self::$errors_present = true;
|
506 |
self::$error_text = __( 'Data for "Secret Key" is invalid', 'yop-poll' );
|
507 |
}
|
508 |
}
|
509 |
if ( 'yes' === $settings->integrations->reCaptchaV3->{'enabled'} ) {
|
510 |
-
if ( ( false === isset( $settings->integrations->reCaptchaV3->{'site-key'} ) ) || ( '' ===
|
511 |
self::$errors_present = true;
|
512 |
self::$error_text = __( 'Data for "Site Key" is invalid', 'yop-poll' );
|
513 |
}
|
514 |
-
if ( ( false === isset( $settings->integrations->reCaptchaV3->{'secret-key'} ) ) || ( '' ===
|
515 |
self::$errors_present = true;
|
516 |
self::$error_text = __( 'Data for "Secret Key" is invalid', 'yop-poll' );
|
517 |
}
|
518 |
-
if ( ( false === isset( $settings->integrations->reCaptchaV3->{'min-allowed-score'} ) ) || ( '' ===
|
519 |
self::$errors_present = true;
|
520 |
self::$error_text = __( 'Data for "Min Allowed Score" is invalid', 'yop-poll' );
|
521 |
}
|
@@ -523,13 +528,13 @@ class YOP_Poll_Settings {
|
|
523 |
if (
|
524 |
( false === self::$errors_present ) &&
|
525 |
( !isset( $settings->integrations->facebook->{'enabled'} ) ||
|
526 |
-
( '' ===
|
527 |
) {
|
528 |
self::$errors_present = true;
|
529 |
self::$error_text = __( 'Data for "Use Facebook integration" is invalid', 'yop-poll' );
|
530 |
}
|
531 |
if ( 'yes' === $settings->integrations->facebook->{'enabled'} ) {
|
532 |
-
if ( ( false === isset( $settings->integrations->facebook->{'app-id'} ) ) || ( '' ===
|
533 |
self::$errors_present = true;
|
534 |
self::$error_text = __( 'Data for "App ID" is invalid', 'yop-poll' );
|
535 |
}
|
@@ -543,11 +548,11 @@ class YOP_Poll_Settings {
|
|
543 |
self::$error_text = __( 'Data for "Use Google integration" is invalid', 'yop-poll' );
|
544 |
}
|
545 |
if ( 'yes' === $settings->integrations->google->enabled ) {
|
546 |
-
if ( ( false === isset( $settings->integrations->google->{'app-id'} ) ) || ( '' ===
|
547 |
self::$errors_present = true;
|
548 |
self::$error_text = __( 'Data for "App ID" is invalid', 'yop-poll' );
|
549 |
}
|
550 |
-
if ( ( false === isset( $settings->integrations->google->{'app-secret'} ) ) || ( '' ===
|
551 |
self::$errors_present = true;
|
552 |
self::$error_text = __( 'Data for "App Secret" is invalid', 'yop-poll' );
|
553 |
}
|
@@ -555,7 +560,7 @@ class YOP_Poll_Settings {
|
|
555 |
if (
|
556 |
( false === self::$errors_present ) &&
|
557 |
( !isset( $settings->messages->buttons->{'anonymous'} ) ||
|
558 |
-
( '' ===
|
559 |
) {
|
560 |
self::$errors_present = true;
|
561 |
self::$error_text = __( 'Data for "Vote as anonymous" is invalid', 'yop-poll' );
|
@@ -563,7 +568,7 @@ class YOP_Poll_Settings {
|
|
563 |
if (
|
564 |
( false === self::$errors_present ) &&
|
565 |
( !isset( $settings->messages->buttons->{'wordpress'} ) ||
|
566 |
-
( '' ===
|
567 |
) {
|
568 |
self::$errors_present = true;
|
569 |
self::$error_text = __( 'Data for "Vote with your WordPress account" is invalid', 'yop-poll' );
|
@@ -571,7 +576,7 @@ class YOP_Poll_Settings {
|
|
571 |
if (
|
572 |
( false === self::$errors_present ) &&
|
573 |
( !isset( $settings->messages->buttons->{'facebook'} ) ||
|
574 |
-
( '' ===
|
575 |
) {
|
576 |
self::$errors_present = true;
|
577 |
self::$error_text = __( 'Data for "Vote with your Facebook account" is invalid', 'yop-poll' );
|
@@ -579,7 +584,7 @@ class YOP_Poll_Settings {
|
|
579 |
if (
|
580 |
( false === self::$errors_present ) &&
|
581 |
( !isset( $settings->messages->buttons->{'google'} ) ||
|
582 |
-
( '' ===
|
583 |
) {
|
584 |
self::$errors_present = true;
|
585 |
self::$error_text = __( 'Data for "Vote with your Google account" is invalid', 'yop-poll' );
|
@@ -587,7 +592,7 @@ class YOP_Poll_Settings {
|
|
587 |
if (
|
588 |
( false === self::$errors_present ) &&
|
589 |
( !isset( $settings->messages->voting->{'poll-ended'} ) ||
|
590 |
-
( '' ===
|
591 |
) {
|
592 |
self::$errors_present = true;
|
593 |
self::$error_text = __( 'Data for "Poll Ended" is invalid', 'yop-poll' );
|
@@ -595,7 +600,7 @@ class YOP_Poll_Settings {
|
|
595 |
if (
|
596 |
( false === self::$errors_present ) &&
|
597 |
( !isset( $settings->messages->voting->{'poll-not-started'} ) ||
|
598 |
-
( '' ===
|
599 |
) {
|
600 |
self::$errors_present = true;
|
601 |
self::$error_text = __( 'Data for "Poll Not Started" is invalid', 'yop-poll' );
|
@@ -603,7 +608,7 @@ class YOP_Poll_Settings {
|
|
603 |
if (
|
604 |
( false === self::$errors_present ) &&
|
605 |
( !isset( $settings->messages->voting->{'already-voted-on-poll'} ) ||
|
606 |
-
( '' ===
|
607 |
) {
|
608 |
self::$errors_present = true;
|
609 |
self::$error_text = __( 'Data for "Already voted on poll" is invalid', 'yop-poll' );
|
@@ -611,7 +616,7 @@ class YOP_Poll_Settings {
|
|
611 |
if (
|
612 |
( false === self::$errors_present ) &&
|
613 |
( !isset( $settings->messages->voting->{'invalid-poll'} ) ||
|
614 |
-
( '' ===
|
615 |
) {
|
616 |
self::$errors_present = true;
|
617 |
self::$error_text = __( 'Data for "Invalid Poll" is invalid', 'yop-poll' );
|
@@ -619,7 +624,7 @@ class YOP_Poll_Settings {
|
|
619 |
if (
|
620 |
( false === self::$errors_present ) &&
|
621 |
( !isset( $settings->messages->voting->{'no-answers-selected'} ) ||
|
622 |
-
( '' ===
|
623 |
) {
|
624 |
self::$errors_present = true;
|
625 |
self::$error_text = __( 'Data for "No Answer(s) selected" is invalid', 'yop-poll' );
|
@@ -627,7 +632,7 @@ class YOP_Poll_Settings {
|
|
627 |
if (
|
628 |
( false === self::$errors_present ) &&
|
629 |
( !isset( $settings->messages->voting->{'min-answers-required'} ) ||
|
630 |
-
( '' ===
|
631 |
) {
|
632 |
self::$errors_present = true;
|
633 |
self::$error_text = __( 'Data for "Minimum answers required" is invalid', 'yop-poll' );
|
@@ -635,7 +640,7 @@ class YOP_Poll_Settings {
|
|
635 |
if (
|
636 |
( false === self::$errors_present ) &&
|
637 |
( !isset( $settings->messages->voting->{'max-answers-required'} ) ||
|
638 |
-
( '' ===
|
639 |
) {
|
640 |
self::$errors_present = true;
|
641 |
self::$error_text = __( 'Data for "Maximum answers required" is invalid', 'yop-poll' );
|
@@ -643,7 +648,7 @@ class YOP_Poll_Settings {
|
|
643 |
if (
|
644 |
( false === self::$errors_present ) &&
|
645 |
( !isset( $settings->messages->voting->{'no-answer-for-other'} ) ||
|
646 |
-
( '' ===
|
647 |
) {
|
648 |
self::$errors_present = true;
|
649 |
self::$error_text = __( 'Data for "No value for other" is invalid', 'yop-poll' );
|
@@ -651,7 +656,7 @@ class YOP_Poll_Settings {
|
|
651 |
if (
|
652 |
( false === self::$errors_present ) &&
|
653 |
( !isset( $settings->messages->voting->{'no-value-for-custom-field'} ) ||
|
654 |
-
( '' ===
|
655 |
) {
|
656 |
self::$errors_present = true;
|
657 |
self::$error_text = __( 'Data for "No value for custom field" is invalid', 'yop-poll' );
|
@@ -659,7 +664,7 @@ class YOP_Poll_Settings {
|
|
659 |
if (
|
660 |
( false === self::$errors_present ) &&
|
661 |
( !isset( $settings->messages->voting->{'consent-not-checked'} ) ||
|
662 |
-
( '' ===
|
663 |
) {
|
664 |
self::$errors_present = true;
|
665 |
self::$error_text = __( 'Data for "Consent not checked" is invalid', 'yop-poll' );
|
@@ -667,7 +672,7 @@ class YOP_Poll_Settings {
|
|
667 |
if (
|
668 |
( false === self::$errors_present ) &&
|
669 |
( !isset( $settings->messages->voting->{'no-captcha-selected'} ) ||
|
670 |
-
( '' ===
|
671 |
) {
|
672 |
self::$errors_present = true;
|
673 |
self::$error_text = __( 'Data for "Captcha missing" is invalid', 'yop-poll' );
|
@@ -675,7 +680,7 @@ class YOP_Poll_Settings {
|
|
675 |
if (
|
676 |
( false === self::$errors_present ) &&
|
677 |
( !isset( $settings->messages->voting->{'not-allowed-by-ban'} ) ||
|
678 |
-
( '' ===
|
679 |
) {
|
680 |
self::$errors_present = true;
|
681 |
self::$error_text = __( 'Data for "Vote not allowed by ban setting" is invalid', 'yop-poll' );
|
@@ -683,7 +688,7 @@ class YOP_Poll_Settings {
|
|
683 |
if (
|
684 |
( false === self::$errors_present ) &&
|
685 |
( !isset( $settings->messages->voting->{'not-allowed-by-block'} ) ||
|
686 |
-
( '' ===
|
687 |
) {
|
688 |
self::$errors_present = true;
|
689 |
self::$error_text = __( 'Data for "Vote not allowed by block setting" is invalid', 'yop-poll' );
|
@@ -691,7 +696,7 @@ class YOP_Poll_Settings {
|
|
691 |
if (
|
692 |
( false === self::$errors_present ) &&
|
693 |
( !isset( $settings->messages->voting->{'not-allowed-by-limit'} ) ||
|
694 |
-
( '' ===
|
695 |
) {
|
696 |
self::$errors_present = true;
|
697 |
self::$error_text = __( 'Data for "Vote not allowed by limit setting" is invalid', 'yop-poll' );
|
@@ -699,7 +704,7 @@ class YOP_Poll_Settings {
|
|
699 |
if (
|
700 |
( false === self::$errors_present ) &&
|
701 |
( !isset( $settings->messages->voting->{'thank-you'} ) ||
|
702 |
-
( '' ===
|
703 |
) {
|
704 |
self::$errors_present = true;
|
705 |
self::$error_text = __( 'Data for "Thank you for your vote" is invalid', 'yop-poll' );
|
@@ -707,7 +712,7 @@ class YOP_Poll_Settings {
|
|
707 |
if (
|
708 |
( false === self::$errors_present ) &&
|
709 |
( !isset( $settings->messages->results->{'single-vote'} ) ||
|
710 |
-
( '' ===
|
711 |
) {
|
712 |
self::$errors_present = true;
|
713 |
self::$error_text = __( 'Data for "Single Vote" is invalid', 'yop-poll' );
|
@@ -715,7 +720,7 @@ class YOP_Poll_Settings {
|
|
715 |
if (
|
716 |
( false === self::$errors_present ) &&
|
717 |
( !isset( $settings->messages->results->{'multiple-votes'} ) ||
|
718 |
-
( '' ===
|
719 |
) {
|
720 |
self::$errors_present = true;
|
721 |
self::$error_text = __( 'Data for "Multiple Votes" is invalid', 'yop-poll' );
|
@@ -723,7 +728,7 @@ class YOP_Poll_Settings {
|
|
723 |
if (
|
724 |
( false === self::$errors_present ) &&
|
725 |
( !isset( $settings->messages->results->{'single-answer'} ) ||
|
726 |
-
( '' ===
|
727 |
) {
|
728 |
self::$errors_present = true;
|
729 |
self::$error_text = __( 'Data for "Single Answer" is invalid', 'yop-poll' );
|
@@ -731,7 +736,7 @@ class YOP_Poll_Settings {
|
|
731 |
if (
|
732 |
( false === self::$errors_present ) &&
|
733 |
( !isset( $settings->messages->results->{'multiple-answers'} ) ||
|
734 |
-
( '' ===
|
735 |
) {
|
736 |
self::$errors_present = true;
|
737 |
self::$error_text = __( 'Data for "Multiple Answers" is invalid', 'yop-poll' );
|
@@ -739,7 +744,7 @@ class YOP_Poll_Settings {
|
|
739 |
if (
|
740 |
( false === self::$errors_present ) &&
|
741 |
( !isset( $settings->messages->captcha->{'accessibility-alt'} ) ||
|
742 |
-
( '' ===
|
743 |
) {
|
744 |
self::$errors_present = true;
|
745 |
self::$error_text = __( 'Data for "Accessibility Alt" is invalid', 'yop-poll' );
|
@@ -747,7 +752,7 @@ class YOP_Poll_Settings {
|
|
747 |
if (
|
748 |
( false === self::$errors_present ) &&
|
749 |
( !isset( $settings->messages->captcha->{'accessibility-title'} ) ||
|
750 |
-
( '' ===
|
751 |
) {
|
752 |
self::$errors_present = true;
|
753 |
self::$error_text = __( 'Data for "Accessibility Title" is invalid', 'yop-poll' );
|
@@ -755,7 +760,7 @@ class YOP_Poll_Settings {
|
|
755 |
if (
|
756 |
( false === self::$errors_present ) &&
|
757 |
( !isset( $settings->messages->captcha->{'accessibility-description'} ) ||
|
758 |
-
( '' ===
|
759 |
) {
|
760 |
self::$errors_present = true;
|
761 |
self::$error_text = __( 'Data for "Accessibility Description" is invalid', 'yop-poll' );
|
@@ -763,7 +768,7 @@ class YOP_Poll_Settings {
|
|
763 |
if (
|
764 |
( false === self::$errors_present ) &&
|
765 |
( !isset( $settings->messages->captcha->{'explanation'} ) ||
|
766 |
-
( '' ===
|
767 |
) {
|
768 |
self::$errors_present = true;
|
769 |
self::$error_text = __( 'Data for "Accessibility Explanation" is invalid', 'yop-poll' );
|
@@ -771,7 +776,7 @@ class YOP_Poll_Settings {
|
|
771 |
if (
|
772 |
( false === self::$errors_present ) &&
|
773 |
( !isset( $settings->messages->captcha->{'refresh-alt'} ) ||
|
774 |
-
( '' ===
|
775 |
) {
|
776 |
self::$errors_present = true;
|
777 |
self::$error_text = __( 'Data for "Refresh Alt" is invalid', 'yop-poll' );
|
@@ -779,7 +784,7 @@ class YOP_Poll_Settings {
|
|
779 |
if (
|
780 |
( false === self::$errors_present ) &&
|
781 |
( !isset( $settings->messages->captcha->{'refresh-title'} ) ||
|
782 |
-
( '' ===
|
783 |
) {
|
784 |
self::$errors_present = true;
|
785 |
self::$error_text = __( 'Data for "Refresh Title" is invalid', 'yop-poll' );
|
@@ -793,15 +798,20 @@ class YOP_Poll_Settings {
|
|
793 |
'general' => array(
|
794 |
'i-date' => self::get_install_date(),
|
795 |
'show-guide' => self::get_show_guide(),
|
796 |
-
'remove-data' => $settings->general->{'remove-data'}
|
797 |
),
|
798 |
'notifications' => array(
|
799 |
'new-vote' => array(
|
800 |
-
'from-name' => $settings->notifications->{'new-vote'}->{'from-name'},
|
801 |
-
'from-email' => $settings->notifications->{'new-vote'}->{'from-email'},
|
802 |
-
'recipients' => $settings->notifications->{'new-vote'}->{'recipients'},
|
803 |
-
'subject' => $settings->notifications->{'new-vote'}->{'subject'},
|
804 |
-
'message' =>
|
|
|
|
|
|
|
|
|
|
|
805 |
),
|
806 |
'automatically-reset-votes' => array(
|
807 |
'from-name' => 'Your Name Here',
|
@@ -825,68 +835,68 @@ class YOP_Poll_Settings {
|
|
825 |
),
|
826 |
'integrations' => array(
|
827 |
'reCaptcha' => array(
|
828 |
-
'enabled' => $settings->integrations->reCaptcha->{'enabled'},
|
829 |
-
'site-key' => $settings->integrations->reCaptcha->{'site-key'},
|
830 |
-
'secret-key' => $settings->integrations->reCaptcha->{'secret-key'}
|
831 |
),
|
832 |
'reCaptchaV2Invisible' => array(
|
833 |
-
'enabled' => $settings->integrations->reCaptchaV2Invisible->{'enabled'},
|
834 |
-
'site-key' =>
|
835 |
-
'secret-key' =>
|
836 |
),
|
837 |
'reCaptchaV3' => array(
|
838 |
-
'enabled' => $settings->integrations->reCaptchaV3->{'enabled'},
|
839 |
-
'site-key' =>
|
840 |
-
'secret-key' =>
|
841 |
-
'min-allowed-score' =>
|
842 |
),
|
843 |
'facebook' => array(
|
844 |
-
'enabled' => $settings->integrations->facebook->{'enabled'},
|
845 |
-
'app-id'
|
846 |
),
|
847 |
'google' => array(
|
848 |
-
'enabled' => $settings->integrations->google->{'enabled'},
|
849 |
-
'app-id' => $settings->integrations->google->{'app-id'},
|
850 |
-
'app-secret' => $settings->integrations->google->{'app-secret'}
|
851 |
)
|
852 |
),
|
853 |
'messages' => array(
|
854 |
'captcha' => array(
|
855 |
-
'accessibility-alt' => $settings->messages->captcha->{'accessibility-alt'},
|
856 |
-
'accessibility-title' => $settings->messages->captcha->{'accessibility-title'},
|
857 |
-
'accessibility-description' => $settings->messages->captcha->{'accessibility-description'},
|
858 |
-
'explanation' => $settings->messages->captcha->{'explanation'},
|
859 |
-
'refresh-alt' => $settings->messages->captcha->{'refresh-alt'},
|
860 |
-
'refresh-title' => $settings->messages->captcha->{'refresh-title'},
|
861 |
),
|
862 |
'buttons'=> array(
|
863 |
-
'anonymous' => $settings->messages->buttons->{'anonymous'},
|
864 |
-
'wordpress' => $settings->messages->buttons->{'wordpress'},
|
865 |
-
'facebook' => $settings->messages->buttons->{'facebook'},
|
866 |
-
'google' => $settings->messages->buttons->{'google'}
|
867 |
),
|
868 |
'voting' => array(
|
869 |
-
'poll-ended' => $settings->messages->voting->{'poll-ended'},
|
870 |
-
'poll-not-started' => $settings->messages->voting->{'poll-not-started'},
|
871 |
-
'already-voted-on-poll' => $settings->messages->voting->{'already-voted-on-poll'},
|
872 |
-
'invalid-poll' => $settings->messages->voting->{'invalid-poll'},
|
873 |
-
'no-answers-selected' => $settings->messages->voting->{'no-answers-selected'},
|
874 |
-
'min-answers-required' => $settings->messages->voting->{'min-answers-required'},
|
875 |
-
'max-answers-required' => $settings->messages->voting->{'max-answers-required'},
|
876 |
-
'no-answer-for-other' => $settings->messages->voting->{'no-answer-for-other'},
|
877 |
-
'no-value-for-custom-field' => $settings->messages->voting->{'no-value-for-custom-field'},
|
878 |
-
'consent-not-checked' => $settings->messages->voting->{'consent-not-checked'},
|
879 |
-
'no-captcha-selected' => $settings->messages->voting->{'no-captcha-selected'},
|
880 |
-
'not-allowed-by-ban' => $settings->messages->voting->{'not-allowed-by-ban'},
|
881 |
-
'not-allowed-by-block' => $settings->messages->voting->{'not-allowed-by-block'},
|
882 |
-
'not-allowed-by-limit' => $settings->messages->voting->{'not-allowed-by-limit'},
|
883 |
-
'thank-you' => $settings->messages->voting->{'thank-you'}
|
884 |
),
|
885 |
'results' => array(
|
886 |
-
'single-vote' => $settings->messages->results->{'single-vote'},
|
887 |
-
'multiple-votes' => $settings->messages->results->{'multiple-votes'},
|
888 |
-
'single-answer' => $settings->messages->results->{'single-answer'},
|
889 |
-
'multiple-answers' => $settings->messages->results->{'multiple-answers'}
|
890 |
)
|
891 |
)
|
892 |
);
|
124 |
'i-date' => current_time( 'mysql' )
|
125 |
),
|
126 |
'email' => array(
|
127 |
+
'from-name' => isset( $old_settings['email_notifications_from_name'] ) ? sanitize_text_field( $old_settings['email_notifications_from_name'] ) : 'Your Name Here',
|
128 |
+
'from-email' => isset( $old_settings['email_notifications_from_email'] ) ? sanitize_text_field( $old_settings['email_notifications_from_email'] ) : 'Your Email Address Here',
|
129 |
+
'recipients' => isset( $old_settings['email_notifications_recipients'] ) ? sanitize_text_field( $old_settings['email_notifications_recipients'] ) : '',
|
130 |
+
'subject' => isset( $old_settings['email_notifications_subject'] ) ? sanitize_text_field( $old_settings['email_notifications_subject'] ) : 'Your Subject Here',
|
131 |
+
'message' => isset( $old_settings['email_notifications_body'] ) ? sanitize_text_field( $old_settings['email_notifications_body'] ) : 'Your Message Here'
|
132 |
),
|
133 |
'integrations' => array(
|
134 |
'reCaptcha' => array(
|
148 |
'min-allowed-score' => ''
|
149 |
),
|
150 |
'facebook' => array(
|
151 |
+
'enabled' => isset( $old_settings['facebook_integration'] ) ? sanitize_text_field( $old_settings['facebook_integration'] ) : 'no',
|
152 |
+
'app-id' => isset( $old_settings['facebook_appID'] ) ? sanitize_text_field( $old_settings['facebook_appID'] ) : '',
|
153 |
),
|
154 |
'google' => array(
|
155 |
+
'enabled' => isset( $old_settings['google_integration'] ) ? sanitize_text_field( $old_settings['google_integration'] ) : 'no',
|
156 |
+
'app-id' => isset( $old_settings['google_appID'] ) ? sanitize_text_field( $old_settings['google_appID'] ) : '',
|
157 |
+
'app-secret' => isset( $old_settings['google_appSecret'] ) ? sanitize_text_field( $old_settings['google_appSecret'] ) : ''
|
158 |
)
|
159 |
),
|
160 |
'messages' => array(
|
212 |
}
|
213 |
$new_settings = array(
|
214 |
'general' => array(
|
215 |
+
'i-date' => isset( $current_settings_decoded['general']['idate'] ) ? sanitize_text_field( $current_settings_decoded['general']['idate'] ) : current_time( 'mysql' )
|
216 |
),
|
217 |
'email' => array(
|
218 |
+
'from-name' => isset( $current_settings_decoded['email']['from_name'] ) ? sanitize_text_field( $current_settings_decoded['email']['from_name'] ) : '',
|
219 |
+
'from-email' => isset( $current_settings_decoded['email']['from_email'] ) ? sanitize_text_field( $current_settings_decoded['email']['from_email'] ) : '',
|
220 |
+
'recipients' => isset( $current_settings_decoded['email']['recipients'] ) ? sanitize_text_field( $current_settings_decoded['email']['recipients'] ) : '',
|
221 |
+
'subject' => isset( $current_settings_decoded['email']['subject'] ) ? sanitize_text_field( $current_settings_decoded['email']['subject'] ) : '',
|
222 |
+
'message' => isset( $current_settings_decoded['email']['message'] ) ? sanitize_text_field( $current_settings_decoded['email']['message'] ) : ''
|
223 |
),
|
224 |
'integrations' => array(
|
225 |
'reCaptcha' => array(
|
226 |
+
'enabled' => sanitize_text_field( $captcha_enabled ),
|
227 |
+
'site-key' => isset( $current_settings_decoded['integrations']['reCaptcha']['site_key'] ) ? sanitize_text_field( $current_settings_decoded['integrations']['reCaptcha']['site_key'] ) : '',
|
228 |
+
'secret-key' => isset( $current_settings_decoded['integrations']['reCaptcha']['secret_key'] ) ? sanitize_text_field( $current_settings_decoded['integrations']['reCaptcha']['secret_key'] ) : '',
|
229 |
),
|
230 |
'facebook' => array(
|
231 |
+
'enabled' => isset( $current_settings_decoded['integrations']['facebook']['integration'] ) ? sanitize_text_field( $current_settings_decoded['integrations']['facebook']['integration'] ) : 'no',
|
232 |
+
'app-id' => isset( $current_settings_decoded['integrations']['facebook']['app_id'] ) ? sanitize_text_field( $current_settings_decoded['integrations']['facebook']['app_id'] ) : '',
|
233 |
),
|
234 |
'google' => array(
|
235 |
+
'enabled' => isset( $current_settings_decoded['integrations']['google']['integration'] ) ? sanitize_text_field( $current_settings_decoded['integrations']['google']['integration'] ) : 'no',
|
236 |
+
'app-id' => isset( $current_settings_decoded['integrations']['google']['app_id'] ) ? sanitize_text_field( $current_settings_decoded['integrations']['google']['app_id'] ) : '',
|
237 |
+
'app-secret' => isset( $current_settings_decoded['integrations']['google']['app_secret'] ) ? sanitize_text_field( $current_settings_decoded['integrations']['google']['app_secret'] ) : '',
|
238 |
)
|
239 |
),
|
240 |
'messages' => array(
|
284 |
$current_settings['general']['remove-data'] = 'no';
|
285 |
$current_settings['notifications'] =array(
|
286 |
'new-vote' => array(
|
287 |
+
'from-name' => isset( $current_settings['email']['from-name'] ) ? sanitize_text_field( $current_settings['email']['from-name'] ) : 'Your Name Here',
|
288 |
+
'from-email' => isset( $current_settings['email']['from-email'] ) ? sanitize_text_field( $current_settings['email']['from-email'] ) : 'Your Email Address Here',
|
289 |
+
'recipients' => isset( $current_settings['email']['recipients'] ) ? sanitize_text_field( $current_settings['email']['recipients'] ) : '',
|
290 |
+
'subject' => isset( $current_settings['email']['subject'] ) ? sanitize_text_field( $current_settings['email']['subject'] ) : 'New vote for %POLL-NAME% on %VOTE-DATE%',
|
291 |
+
'message' => isset( $current_settings['email']['message'] ) ? wp_kses(
|
292 |
+
$current_settings['email']['message'],
|
293 |
+
array(
|
294 |
+
'br' => array()
|
295 |
+
)
|
296 |
+
) : 'There is a new vote for %POLL-NAME%
|
297 |
Here are the details
|
298 |
|
299 |
[QUESTION]
|
486 |
if (
|
487 |
( false === self::$errors_present ) &&
|
488 |
( !isset( $settings->integrations->reCaptcha->{'enabled'} ) ||
|
489 |
+
( '' === sanitize_text_field( $settings->integrations->reCaptcha->{'enabled'} ) ) )
|
490 |
) {
|
491 |
self::$errors_present = true;
|
492 |
self::$error_text = __( 'Data for "Use Google reCaptcha" is invalid', 'yop-poll' );
|
493 |
}
|
494 |
if ( 'yes' === $settings->integrations->reCaptcha->{'enabled'} ) {
|
495 |
+
if ( ( false === isset( $settings->integrations->reCaptcha->{'site-key'} ) ) || ( '' === sanitize_text_field( $settings->integrations->reCaptcha->{'site-key'} ) ) ) {
|
496 |
self::$errors_present = true;
|
497 |
self::$error_text = __( 'Data for "Site Key" is invalid', 'yop-poll' );
|
498 |
}
|
499 |
+
if ( ( false === isset( $settings->integrations->reCaptcha->{'secret-key'} ) ) || ( '' === sanitize_text_field( $settings->integrations->reCaptcha->{'secret-key'} ) ) ) {
|
500 |
self::$errors_present = true;
|
501 |
self::$error_text = __( 'Data for "Secret Key" is invalid', 'yop-poll' );
|
502 |
}
|
503 |
}
|
504 |
if ( 'yes' === $settings->integrations->reCaptchaV2Invisible->{'enabled'} ) {
|
505 |
+
if ( ( false === isset( $settings->integrations->reCaptchaV2Invisible->{'site-key'} ) ) || ( '' === sanitize_text_field( $settings->integrations->reCaptchaV2Invisible->{'site-key'} ) ) ) {
|
506 |
self::$errors_present = true;
|
507 |
self::$error_text = __( 'Data for "Site Key" is invalid', 'yop-poll' );
|
508 |
}
|
509 |
+
if ( ( false === isset( $settings->integrations->reCaptchaV2Invisible->{'secret-key'} ) ) || ( '' === sanitize_text_field( $settings->integrations->reCaptchaV2Invisible->{'secret-key'} ) ) ) {
|
510 |
self::$errors_present = true;
|
511 |
self::$error_text = __( 'Data for "Secret Key" is invalid', 'yop-poll' );
|
512 |
}
|
513 |
}
|
514 |
if ( 'yes' === $settings->integrations->reCaptchaV3->{'enabled'} ) {
|
515 |
+
if ( ( false === isset( $settings->integrations->reCaptchaV3->{'site-key'} ) ) || ( '' === sanitize_text_field( $settings->integrations->reCaptchaV3->{'site-key'} ) ) ) {
|
516 |
self::$errors_present = true;
|
517 |
self::$error_text = __( 'Data for "Site Key" is invalid', 'yop-poll' );
|
518 |
}
|
519 |
+
if ( ( false === isset( $settings->integrations->reCaptchaV3->{'secret-key'} ) ) || ( '' === sanitize_text_field( $settings->integrations->reCaptchaV3->{'secret-key'} ) ) ) {
|
520 |
self::$errors_present = true;
|
521 |
self::$error_text = __( 'Data for "Secret Key" is invalid', 'yop-poll' );
|
522 |
}
|
523 |
+
if ( ( false === isset( $settings->integrations->reCaptchaV3->{'min-allowed-score'} ) ) || ( '' === sanitize_text_field( $settings->integrations->reCaptchaV3->{'min-allowed-score'} ) ) ) {
|
524 |
self::$errors_present = true;
|
525 |
self::$error_text = __( 'Data for "Min Allowed Score" is invalid', 'yop-poll' );
|
526 |
}
|
528 |
if (
|
529 |
( false === self::$errors_present ) &&
|
530 |
( !isset( $settings->integrations->facebook->{'enabled'} ) ||
|
531 |
+
( '' === sanitize_text_field( $settings->integrations->facebook->{'enabled'} ) ) )
|
532 |
) {
|
533 |
self::$errors_present = true;
|
534 |
self::$error_text = __( 'Data for "Use Facebook integration" is invalid', 'yop-poll' );
|
535 |
}
|
536 |
if ( 'yes' === $settings->integrations->facebook->{'enabled'} ) {
|
537 |
+
if ( ( false === isset( $settings->integrations->facebook->{'app-id'} ) ) || ( '' === sanitize_text_field( $settings->integrations->facebook->{'app-id'} ) ) ) {
|
538 |
self::$errors_present = true;
|
539 |
self::$error_text = __( 'Data for "App ID" is invalid', 'yop-poll' );
|
540 |
}
|
548 |
self::$error_text = __( 'Data for "Use Google integration" is invalid', 'yop-poll' );
|
549 |
}
|
550 |
if ( 'yes' === $settings->integrations->google->enabled ) {
|
551 |
+
if ( ( false === isset( $settings->integrations->google->{'app-id'} ) ) || ( '' === sanitize_text_field( $settings->integrations->google->{'app-id'} ) ) ) {
|
552 |
self::$errors_present = true;
|
553 |
self::$error_text = __( 'Data for "App ID" is invalid', 'yop-poll' );
|
554 |
}
|
555 |
+
if ( ( false === isset( $settings->integrations->google->{'app-secret'} ) ) || ( '' === sanitize_text_field( $settings->integrations->google->{'app-secret'} ) ) ) {
|
556 |
self::$errors_present = true;
|
557 |
self::$error_text = __( 'Data for "App Secret" is invalid', 'yop-poll' );
|
558 |
}
|
560 |
if (
|
561 |
( false === self::$errors_present ) &&
|
562 |
( !isset( $settings->messages->buttons->{'anonymous'} ) ||
|
563 |
+
( '' === sanitize_text_field( $settings->messages->buttons->{'anonymous'} ) ) )
|
564 |
) {
|
565 |
self::$errors_present = true;
|
566 |
self::$error_text = __( 'Data for "Vote as anonymous" is invalid', 'yop-poll' );
|
568 |
if (
|
569 |
( false === self::$errors_present ) &&
|
570 |
( !isset( $settings->messages->buttons->{'wordpress'} ) ||
|
571 |
+
( '' === sanitize_text_field( $settings->messages->buttons->{'wordpress'} ) ) )
|
572 |
) {
|
573 |
self::$errors_present = true;
|
574 |
self::$error_text = __( 'Data for "Vote with your WordPress account" is invalid', 'yop-poll' );
|
576 |
if (
|
577 |
( false === self::$errors_present ) &&
|
578 |
( !isset( $settings->messages->buttons->{'facebook'} ) ||
|
579 |
+
( '' === sanitize_text_field( $settings->messages->buttons->{'facebook'} ) ) )
|
580 |
) {
|
581 |
self::$errors_present = true;
|
582 |
self::$error_text = __( 'Data for "Vote with your Facebook account" is invalid', 'yop-poll' );
|
584 |
if (
|
585 |
( false === self::$errors_present ) &&
|
586 |
( !isset( $settings->messages->buttons->{'google'} ) ||
|
587 |
+
( '' === sanitize_text_field( $settings->messages->buttons->{'google'} ) ) )
|
588 |
) {
|
589 |
self::$errors_present = true;
|
590 |
self::$error_text = __( 'Data for "Vote with your Google account" is invalid', 'yop-poll' );
|
592 |
if (
|
593 |
( false === self::$errors_present ) &&
|
594 |
( !isset( $settings->messages->voting->{'poll-ended'} ) ||
|
595 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'poll-ended'} ) ) )
|
596 |
) {
|
597 |
self::$errors_present = true;
|
598 |
self::$error_text = __( 'Data for "Poll Ended" is invalid', 'yop-poll' );
|
600 |
if (
|
601 |
( false === self::$errors_present ) &&
|
602 |
( !isset( $settings->messages->voting->{'poll-not-started'} ) ||
|
603 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'poll-not-started'} ) ) )
|
604 |
) {
|
605 |
self::$errors_present = true;
|
606 |
self::$error_text = __( 'Data for "Poll Not Started" is invalid', 'yop-poll' );
|
608 |
if (
|
609 |
( false === self::$errors_present ) &&
|
610 |
( !isset( $settings->messages->voting->{'already-voted-on-poll'} ) ||
|
611 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'already-voted-on-poll'} ) ) )
|
612 |
) {
|
613 |
self::$errors_present = true;
|
614 |
self::$error_text = __( 'Data for "Already voted on poll" is invalid', 'yop-poll' );
|
616 |
if (
|
617 |
( false === self::$errors_present ) &&
|
618 |
( !isset( $settings->messages->voting->{'invalid-poll'} ) ||
|
619 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'invalid-poll'} ) ) )
|
620 |
) {
|
621 |
self::$errors_present = true;
|
622 |
self::$error_text = __( 'Data for "Invalid Poll" is invalid', 'yop-poll' );
|
624 |
if (
|
625 |
( false === self::$errors_present ) &&
|
626 |
( !isset( $settings->messages->voting->{'no-answers-selected'} ) ||
|
627 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'no-answers-selected'} ) ) )
|
628 |
) {
|
629 |
self::$errors_present = true;
|
630 |
self::$error_text = __( 'Data for "No Answer(s) selected" is invalid', 'yop-poll' );
|
632 |
if (
|
633 |
( false === self::$errors_present ) &&
|
634 |
( !isset( $settings->messages->voting->{'min-answers-required'} ) ||
|
635 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'min-answers-required'} ) ) )
|
636 |
) {
|
637 |
self::$errors_present = true;
|
638 |
self::$error_text = __( 'Data for "Minimum answers required" is invalid', 'yop-poll' );
|
640 |
if (
|
641 |
( false === self::$errors_present ) &&
|
642 |
( !isset( $settings->messages->voting->{'max-answers-required'} ) ||
|
643 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'max-answers-required'} ) ) )
|
644 |
) {
|
645 |
self::$errors_present = true;
|
646 |
self::$error_text = __( 'Data for "Maximum answers required" is invalid', 'yop-poll' );
|
648 |
if (
|
649 |
( false === self::$errors_present ) &&
|
650 |
( !isset( $settings->messages->voting->{'no-answer-for-other'} ) ||
|
651 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'no-answer-for-other'} ) ) )
|
652 |
) {
|
653 |
self::$errors_present = true;
|
654 |
self::$error_text = __( 'Data for "No value for other" is invalid', 'yop-poll' );
|
656 |
if (
|
657 |
( false === self::$errors_present ) &&
|
658 |
( !isset( $settings->messages->voting->{'no-value-for-custom-field'} ) ||
|
659 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'no-value-for-custom-field'} ) ) )
|
660 |
) {
|
661 |
self::$errors_present = true;
|
662 |
self::$error_text = __( 'Data for "No value for custom field" is invalid', 'yop-poll' );
|
664 |
if (
|
665 |
( false === self::$errors_present ) &&
|
666 |
( !isset( $settings->messages->voting->{'consent-not-checked'} ) ||
|
667 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'consent-not-checked'} ) ) )
|
668 |
) {
|
669 |
self::$errors_present = true;
|
670 |
self::$error_text = __( 'Data for "Consent not checked" is invalid', 'yop-poll' );
|
672 |
if (
|
673 |
( false === self::$errors_present ) &&
|
674 |
( !isset( $settings->messages->voting->{'no-captcha-selected'} ) ||
|
675 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'no-captcha-selected'} ) ) )
|
676 |
) {
|
677 |
self::$errors_present = true;
|
678 |
self::$error_text = __( 'Data for "Captcha missing" is invalid', 'yop-poll' );
|
680 |
if (
|
681 |
( false === self::$errors_present ) &&
|
682 |
( !isset( $settings->messages->voting->{'not-allowed-by-ban'} ) ||
|
683 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'not-allowed-by-ban'} ) ) )
|
684 |
) {
|
685 |
self::$errors_present = true;
|
686 |
self::$error_text = __( 'Data for "Vote not allowed by ban setting" is invalid', 'yop-poll' );
|
688 |
if (
|
689 |
( false === self::$errors_present ) &&
|
690 |
( !isset( $settings->messages->voting->{'not-allowed-by-block'} ) ||
|
691 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'not-allowed-by-block'} ) ) )
|
692 |
) {
|
693 |
self::$errors_present = true;
|
694 |
self::$error_text = __( 'Data for "Vote not allowed by block setting" is invalid', 'yop-poll' );
|
696 |
if (
|
697 |
( false === self::$errors_present ) &&
|
698 |
( !isset( $settings->messages->voting->{'not-allowed-by-limit'} ) ||
|
699 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'not-allowed-by-limit'} ) ) )
|
700 |
) {
|
701 |
self::$errors_present = true;
|
702 |
self::$error_text = __( 'Data for "Vote not allowed by limit setting" is invalid', 'yop-poll' );
|
704 |
if (
|
705 |
( false === self::$errors_present ) &&
|
706 |
( !isset( $settings->messages->voting->{'thank-you'} ) ||
|
707 |
+
( '' === sanitize_text_field( $settings->messages->voting->{'thank-you'} ) ) )
|
708 |
) {
|
709 |
self::$errors_present = true;
|
710 |
self::$error_text = __( 'Data for "Thank you for your vote" is invalid', 'yop-poll' );
|
712 |
if (
|
713 |
( false === self::$errors_present ) &&
|
714 |
( !isset( $settings->messages->results->{'single-vote'} ) ||
|
715 |
+
( '' === sanitize_text_field( $settings->messages->results->{'single-vote'} ) ) )
|
716 |
) {
|
717 |
self::$errors_present = true;
|
718 |
self::$error_text = __( 'Data for "Single Vote" is invalid', 'yop-poll' );
|
720 |
if (
|
721 |
( false === self::$errors_present ) &&
|
722 |
( !isset( $settings->messages->results->{'multiple-votes'} ) ||
|
723 |
+
( '' === sanitize_text_field( $settings->messages->results->{'multiple-votes'} ) ) )
|
724 |
) {
|
725 |
self::$errors_present = true;
|
726 |
self::$error_text = __( 'Data for "Multiple Votes" is invalid', 'yop-poll' );
|
728 |
if (
|
729 |
( false === self::$errors_present ) &&
|
730 |
( !isset( $settings->messages->results->{'single-answer'} ) ||
|
731 |
+
( '' === sanitize_text_field( $settings->messages->results->{'single-answer'} ) ) )
|
732 |
) {
|
733 |
self::$errors_present = true;
|
734 |
self::$error_text = __( 'Data for "Single Answer" is invalid', 'yop-poll' );
|
736 |
if (
|
737 |
( false === self::$errors_present ) &&
|
738 |
( !isset( $settings->messages->results->{'multiple-answers'} ) ||
|
739 |
+
( '' === sanitize_text_field( $settings->messages->results->{'multiple-answers'} ) ) )
|
740 |
) {
|
741 |
self::$errors_present = true;
|
742 |
self::$error_text = __( 'Data for "Multiple Answers" is invalid', 'yop-poll' );
|
744 |
if (
|
745 |
( false === self::$errors_present ) &&
|
746 |
( !isset( $settings->messages->captcha->{'accessibility-alt'} ) ||
|
747 |
+
( '' === sanitize_text_field( $settings->messages->captcha->{'accessibility-alt'} ) ) )
|
748 |
) {
|
749 |
self::$errors_present = true;
|
750 |
self::$error_text = __( 'Data for "Accessibility Alt" is invalid', 'yop-poll' );
|
752 |
if (
|
753 |
( false === self::$errors_present ) &&
|
754 |
( !isset( $settings->messages->captcha->{'accessibility-title'} ) ||
|
755 |
+
( '' === sanitize_text_field( $settings->messages->captcha->{'accessibility-title'} ) ) )
|
756 |
) {
|
757 |
self::$errors_present = true;
|
758 |
self::$error_text = __( 'Data for "Accessibility Title" is invalid', 'yop-poll' );
|
760 |
if (
|
761 |
( false === self::$errors_present ) &&
|
762 |
( !isset( $settings->messages->captcha->{'accessibility-description'} ) ||
|
763 |
+
( '' === sanitize_text_field( $settings->messages->captcha->{'accessibility-description'} ) ) )
|
764 |
) {
|
765 |
self::$errors_present = true;
|
766 |
self::$error_text = __( 'Data for "Accessibility Description" is invalid', 'yop-poll' );
|
768 |
if (
|
769 |
( false === self::$errors_present ) &&
|
770 |
( !isset( $settings->messages->captcha->{'explanation'} ) ||
|
771 |
+
( '' === sanitize_text_field( $settings->messages->captcha->{'explanation'} ) ) )
|
772 |
) {
|
773 |
self::$errors_present = true;
|
774 |
self::$error_text = __( 'Data for "Accessibility Explanation" is invalid', 'yop-poll' );
|
776 |
if (
|
777 |
( false === self::$errors_present ) &&
|
778 |
( !isset( $settings->messages->captcha->{'refresh-alt'} ) ||
|
779 |
+
( '' === sanitize_text_field( $settings->messages->captcha->{'refresh-alt'} ) ) )
|
780 |
) {
|
781 |
self::$errors_present = true;
|
782 |
self::$error_text = __( 'Data for "Refresh Alt" is invalid', 'yop-poll' );
|
784 |
if (
|
785 |
( false === self::$errors_present ) &&
|
786 |
( !isset( $settings->messages->captcha->{'refresh-title'} ) ||
|
787 |
+
( '' === sanitize_text_field( $settings->messages->captcha->{'refresh-title'} ) ) )
|
788 |
) {
|
789 |
self::$errors_present = true;
|
790 |
self::$error_text = __( 'Data for "Refresh Title" is invalid', 'yop-poll' );
|
798 |
'general' => array(
|
799 |
'i-date' => self::get_install_date(),
|
800 |
'show-guide' => self::get_show_guide(),
|
801 |
+
'remove-data' => sanitize_text_field( $settings->general->{'remove-data'} )
|
802 |
),
|
803 |
'notifications' => array(
|
804 |
'new-vote' => array(
|
805 |
+
'from-name' => sanitize_text_field( $settings->notifications->{'new-vote'}->{'from-name'} ),
|
806 |
+
'from-email' => sanitize_text_field( $settings->notifications->{'new-vote'}->{'from-email'} ),
|
807 |
+
'recipients' => sanitize_text_field( $settings->notifications->{'new-vote'}->{'recipients'} ),
|
808 |
+
'subject' => sanitize_text_field( $settings->notifications->{'new-vote'}->{'subject'} ),
|
809 |
+
'message' => wp_kses(
|
810 |
+
$settings->notifications->{'new-vote'}->{'message'},
|
811 |
+
array(
|
812 |
+
'br' => array()
|
813 |
+
)
|
814 |
+
)
|
815 |
),
|
816 |
'automatically-reset-votes' => array(
|
817 |
'from-name' => 'Your Name Here',
|
835 |
),
|
836 |
'integrations' => array(
|
837 |
'reCaptcha' => array(
|
838 |
+
'enabled' => sanitize_text_field( $settings->integrations->reCaptcha->{'enabled'} ),
|
839 |
+
'site-key' => sanitize_text_field( $settings->integrations->reCaptcha->{'site-key'} ),
|
840 |
+
'secret-key' => sanitize_text_field( $settings->integrations->reCaptcha->{'secret-key'} )
|
841 |
),
|
842 |
'reCaptchaV2Invisible' => array(
|
843 |
+
'enabled' => sanitize_text_field( $settings->integrations->reCaptchaV2Invisible->{'enabled'} ),
|
844 |
+
'site-key' => sanitize_text_field( $settings->integrations->reCaptchaV2Invisible->{'site-key'} ),
|
845 |
+
'secret-key' => sanitize_text_field( $settings->integrations->reCaptchaV2Invisible->{'secret-key'} )
|
846 |
),
|
847 |
'reCaptchaV3' => array(
|
848 |
+
'enabled' => sanitize_text_field( $settings->integrations->reCaptchaV3->{'enabled'} ),
|
849 |
+
'site-key' => sanitize_text_field( $settings->integrations->reCaptchaV3->{'site-key'} ),
|
850 |
+
'secret-key' => sanitize_text_field( $settings->integrations->reCaptchaV3->{'secret-key'} ),
|
851 |
+
'min-allowed-score' => sanitize_text_field( $settings->integrations->reCaptchaV3->{'min-allowed-score'} )
|
852 |
),
|
853 |
'facebook' => array(
|
854 |
+
'enabled' => sanitize_text_field( $settings->integrations->facebook->{'enabled'} ),
|
855 |
+
'app-id' => sanitize_text_field( $settings->integrations->facebook->{'app-id'} ),
|
856 |
),
|
857 |
'google' => array(
|
858 |
+
'enabled' => sanitize_text_field( $settings->integrations->google->{'enabled'} ),
|
859 |
+
'app-id' => sanitize_text_field( $settings->integrations->google->{'app-id'} ),
|
860 |
+
'app-secret' => sanitize_text_field( $settings->integrations->google->{'app-secret'} )
|
861 |
)
|
862 |
),
|
863 |
'messages' => array(
|
864 |
'captcha' => array(
|
865 |
+
'accessibility-alt' => sanitize_text_field( $settings->messages->captcha->{'accessibility-alt'} ),
|
866 |
+
'accessibility-title' => sanitize_text_field( $settings->messages->captcha->{'accessibility-title'} ),
|
867 |
+
'accessibility-description' => sanitize_text_field( $settings->messages->captcha->{'accessibility-description'} ),
|
868 |
+
'explanation' => sanitize_text_field( $settings->messages->captcha->{'explanation'} ),
|
869 |
+
'refresh-alt' => sanitize_text_field( $settings->messages->captcha->{'refresh-alt'} ),
|
870 |
+
'refresh-title' => sanitize_text_field( $settings->messages->captcha->{'refresh-title'} ),
|
871 |
),
|
872 |
'buttons'=> array(
|
873 |
+
'anonymous' => sanitize_text_field( $settings->messages->buttons->{'anonymous'} ),
|
874 |
+
'wordpress' => sanitize_text_field( $settings->messages->buttons->{'wordpress'} ),
|
875 |
+
'facebook' => sanitize_text_field( $settings->messages->buttons->{'facebook'} ),
|
876 |
+
'google' => sanitize_text_field( $settings->messages->buttons->{'google'} )
|
877 |
),
|
878 |
'voting' => array(
|
879 |
+
'poll-ended' => sanitize_text_field( $settings->messages->voting->{'poll-ended'} ),
|
880 |
+
'poll-not-started' => sanitize_text_field( $settings->messages->voting->{'poll-not-started'} ),
|
881 |
+
'already-voted-on-poll' => sanitize_text_field( $settings->messages->voting->{'already-voted-on-poll'} ),
|
882 |
+
'invalid-poll' => sanitize_text_field( $settings->messages->voting->{'invalid-poll'} ),
|
883 |
+
'no-answers-selected' => sanitize_text_field( $settings->messages->voting->{'no-answers-selected'} ),
|
884 |
+
'min-answers-required' => sanitize_text_field( $settings->messages->voting->{'min-answers-required'} ),
|
885 |
+
'max-answers-required' => sanitize_text_field( $settings->messages->voting->{'max-answers-required'} ),
|
886 |
+
'no-answer-for-other' => sanitize_text_field( $settings->messages->voting->{'no-answer-for-other'} ),
|
887 |
+
'no-value-for-custom-field' => sanitize_text_field( $settings->messages->voting->{'no-value-for-custom-field'} ),
|
888 |
+
'consent-not-checked' => sanitize_text_field( $settings->messages->voting->{'consent-not-checked'} ),
|
889 |
+
'no-captcha-selected' => sanitize_text_field( $settings->messages->voting->{'no-captcha-selected'} ),
|
890 |
+
'not-allowed-by-ban' => sanitize_text_field( $settings->messages->voting->{'not-allowed-by-ban'} ),
|
891 |
+
'not-allowed-by-block' => sanitize_text_field( $settings->messages->voting->{'not-allowed-by-block'} ),
|
892 |
+
'not-allowed-by-limit' => sanitize_text_field( $settings->messages->voting->{'not-allowed-by-limit'} ),
|
893 |
+
'thank-you' => sanitize_text_field( $settings->messages->voting->{'thank-you'} )
|
894 |
),
|
895 |
'results' => array(
|
896 |
+
'single-vote' => sanitize_text_field( $settings->messages->results->{'single-vote'} ),
|
897 |
+
'multiple-votes' => sanitize_text_field( $settings->messages->results->{'multiple-votes'} ),
|
898 |
+
'single-answer' => sanitize_text_field( $settings->messages->results->{'single-answer'} ),
|
899 |
+
'multiple-answers' => sanitize_text_field( $settings->messages->results->{'multiple-answers'} )
|
900 |
)
|
901 |
)
|
902 |
);
|
admin/models/votes.php
CHANGED
@@ -869,9 +869,13 @@ class YOP_Poll_Votes {
|
|
869 |
if ( count ( $recipients_array ) > 0 ) {
|
870 |
foreach ( $recipients_array as $ra ) {
|
871 |
if ( ( '%VOTER-EMAIL%' === trim( $ra ) ) && ( '' !== $vote->user->email ) ) {
|
872 |
-
|
873 |
-
|
874 |
-
|
|
|
|
|
|
|
|
|
875 |
}
|
876 |
}
|
877 |
}
|
@@ -962,9 +966,7 @@ class YOP_Poll_Votes {
|
|
962 |
);
|
963 |
$email_body = str_replace( $custom_fields_tag, $custom_fields_block, $email_body );
|
964 |
foreach ( $email_to as $eto ) {
|
965 |
-
|
966 |
-
wp_mail( $eto, $email_subject, $email_body, $email_headers );
|
967 |
-
}
|
968 |
}
|
969 |
}
|
970 |
public static function get_vote_by_poll ( $poll_id, $limit, $offset ) {
|
869 |
if ( count ( $recipients_array ) > 0 ) {
|
870 |
foreach ( $recipients_array as $ra ) {
|
871 |
if ( ( '%VOTER-EMAIL%' === trim( $ra ) ) && ( '' !== $vote->user->email ) ) {
|
872 |
+
if ( filter_var( str_replace( '%VOTER-EMAIL%', $vote->user->email, trim( $ra ) ), FILTER_VALIDATE_EMAIL ) ) {
|
873 |
+
$email_to[] = str_replace( '%VOTER-EMAIL%', $vote->user->email, trim( $ra ) );
|
874 |
+
}
|
875 |
+
} else {
|
876 |
+
if ( filter_var( trim( $ra ), FILTER_VALIDATE_EMAIL ) ) {
|
877 |
+
$email_to[] = trim( $ra );
|
878 |
+
}
|
879 |
}
|
880 |
}
|
881 |
}
|
966 |
);
|
967 |
$email_body = str_replace( $custom_fields_tag, $custom_fields_block, $email_body );
|
968 |
foreach ( $email_to as $eto ) {
|
969 |
+
wp_mail( $eto, $email_subject, $email_body, $email_headers );
|
|
|
|
|
970 |
}
|
971 |
}
|
972 |
public static function get_vote_by_poll ( $poll_id, $limit, $offset ) {
|
languages/yop-poll.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the GPL2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: YOP Poll 6.3.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yop-poll-free\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
@@ -71,200 +71,200 @@ msgstr ""
|
|
71 |
msgid "Skip and Deactivate"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: admin/admin.php:
|
75 |
msgid "Yop Poll"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: admin/admin.php:
|
79 |
#: admin/views/bans/add.php:23 admin/views/bans/edit.php:25
|
80 |
#: admin/views/bans/edit.php:31 admin/views/polls/view.php:155
|
81 |
#: admin/views/results/view.php:17 admin/views/results/votes.php:95
|
82 |
msgid "All Polls"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: admin/admin.php:
|
86 |
#: admin/views/polls/view.php:166
|
87 |
msgid "Add New"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: admin/admin.php:
|
91 |
msgid "Bans"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: admin/admin.php:
|
95 |
msgid "Logs"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: admin/admin.php:
|
99 |
msgid "Settings"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: admin/admin.php:
|
103 |
msgid "Migrate old records"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: admin/admin.php:
|
107 |
msgid "Upgrade to Pro"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: admin/admin.php:
|
111 |
msgid "New Custom Field"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: admin/admin.php:
|
115 |
msgid "Warning"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: admin/admin.php:
|
119 |
msgid "Are you sure you want to delete this poll?"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: admin/admin.php:
|
123 |
msgid "Are you sure you want to delete these polls?"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: admin/admin.php:
|
127 |
msgid "Are you sure you want to clone this poll?"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: admin/admin.php:
|
131 |
msgid "Are you sure you want to clone these polls?"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: admin/admin.php:
|
135 |
msgid "Are you sure you want to reset votes for this poll?"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: admin/admin.php:
|
139 |
msgid "Are you sure you want to reset votes for these polls?"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: admin/admin.php:
|
143 |
msgid "No bulk action selected"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: admin/admin.php:
|
147 |
msgid "No polls selected"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: admin/admin.php:
|
151 |
msgid "No bans selected"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: admin/admin.php:
|
155 |
msgid "No logs selected"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: admin/admin.php:
|
159 |
msgid "No votes selected"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: admin/admin.php:
|
163 |
msgid "Are you sure you want to delete this ban?"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: admin/admin.php:
|
167 |
msgid "Are you sure you want to delete these bans?"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: admin/admin.php:
|
171 |
msgid "Are you sure you want to delete this log?"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: admin/admin.php:
|
175 |
msgid "Are you sure you want to delete these logs?"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: admin/admin.php:
|
179 |
msgid "Are you sure you want to delete this vote?"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: admin/admin.php:
|
183 |
msgid "Are you sure you want to delete these votes?"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: admin/admin.php:
|
187 |
msgid "Are you sure you want to delete this answer?"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: admin/admin.php:
|
191 |
msgid "Answer can't be deleted. At least one answer is required!"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: admin/admin.php:
|
195 |
msgid "Are you sure you want to delete this custom field?"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: admin/admin.php:
|
199 |
#: admin/views/polls/edit/main.php:213 admin/views/results/votes.php:196
|
200 |
msgid "Cancel"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: admin/admin.php:
|
204 |
msgid "Ok"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: admin/admin.php:
|
208 |
msgid "Before generating the preview a template is required"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: admin/admin.php:
|
212 |
msgid "Before generating the preview a skin is required"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: admin/admin.php:
|
216 |
msgid "Number of columns is missing"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: admin/admin.php:
|
220 |
msgid "Too many columns. Max 12 allowed"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: admin/admin.php:
|
224 |
msgid "Click to select"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: admin/admin.php:
|
228 |
msgid "Publish immediately"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: admin/admin.php:
|
232 |
msgid "Schedule for"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: admin/admin.php:
|
236 |
msgid "Code Copied To Clipboard"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: admin/admin.php:
|
240 |
msgid "Press"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: admin/admin.php:
|
244 |
msgid " to copy"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: admin/admin.php:
|
248 |
msgid "No Support"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: admin/admin.php:
|
252 |
msgid "Element added"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: admin/admin.php:
|
256 |
msgid "Poll Preview"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: admin/admin.php:
|
260 |
msgid "Show preview for"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: admin/admin.php:
|
264 |
msgid "Voting"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: admin/admin.php:
|
268 |
#: admin/views/polls/add/options-poll.php:40
|
269 |
#: admin/views/polls/edit/main.php:124 admin/views/polls/view.php:345
|
270 |
#: admin/views/polls/view.php:630 admin/views/results/view.php:24
|
@@ -272,94 +272,94 @@ msgstr ""
|
|
272 |
msgid "Results"
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: admin/admin.php:
|
276 |
msgid "Template is missing"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: admin/admin.php:
|
280 |
msgid "Skin is missing"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: admin/admin.php:
|
284 |
msgid " is missing"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: admin/admin.php:
|
288 |
msgid "Poll name is missing"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: admin/admin.php:
|
292 |
msgid "Question Text is missing"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: admin/admin.php:
|
296 |
msgid "Answer Text is missing"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: admin/admin.php:
|
300 |
msgid "Answer Link is missing"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: admin/admin.php:
|
304 |
msgid "Answer Embed is missing"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: admin/admin.php:
|
308 |
msgid "Label for Other is missing"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: admin/admin.php:
|
312 |
msgid "Minimum answers is missing"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: admin/admin.php:
|
316 |
msgid "Maximum answers is missing"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: admin/admin.php:
|
320 |
msgid "Custom Field Name is missing"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: admin/admin.php:
|
324 |
msgid "Poll Start Date is missing"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: admin/admin.php:
|
328 |
msgid "Poll End Date is missing"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: admin/admin.php:
|
332 |
msgid "Custom Date for displaying results is missing"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: admin/admin.php:
|
336 |
msgid "Show Results Time is missing"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: admin/admin.php:
|
340 |
msgid "Show Results To is missing"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: admin/admin.php:
|
344 |
msgid "Vote As WordPress User is missing"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: admin/admin.php:
|
348 |
msgid "Ban For is missing"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: admin/admin.php:
|
352 |
msgid "Ban Value is missing"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: admin/admin.php:
|
356 |
-
#: admin/models/logs.php:410 admin/models/votes.php:
|
357 |
msgid "Question"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: admin/admin.php:
|
361 |
-
#: admin/admin.php:
|
362 |
-
#: admin/models/logs.php:412 admin/models/votes.php:
|
363 |
#: admin/views/polls/add/elements.php:107
|
364 |
#: admin/views/polls/add/elements.php:181
|
365 |
#: admin/views/polls/edit/elements.php:115
|
@@ -367,114 +367,114 @@ msgstr ""
|
|
367 |
msgid "Answer"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: admin/admin.php:
|
371 |
#: admin/views/results/votes.php:404
|
372 |
msgid "View Details"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: admin/admin.php:
|
376 |
msgid "Hide Details"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: admin/admin.php:
|
380 |
msgid "Number of Votes"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: admin/admin.php:
|
384 |
msgid "vote"
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: admin/admin.php:
|
388 |
msgid "votes"
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: admin/admin.php:
|
392 |
msgid "Got It. Continue with the migration"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: admin/admin.php:
|
396 |
msgid "Hold On. I want to change settings"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: admin/admin.php:
|
400 |
msgid "Please review your settings before continue"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: admin/admin.php:
|
404 |
msgid "Your selection"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: admin/admin.php:
|
408 |
msgid ""
|
409 |
"This setting will migrate all data from previous version without any "
|
410 |
"anonymization"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: admin/admin.php:
|
414 |
msgid ""
|
415 |
"This setting will migrate all data from previous version but ips will be "
|
416 |
"anonymized"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: admin/admin.php:
|
420 |
msgid "This setting will migrate everything except ip addresses. "
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: admin/admin.php:
|
424 |
msgid "Response:"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: admin/admin.php:
|
428 |
msgid "All done."
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: admin/admin.php:
|
432 |
msgid "Migration started"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: admin/admin.php:
|
436 |
msgid "Edit Poll"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: admin/admin.php:
|
440 |
msgid "View Poll Results"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: admin/admin.php:
|
444 |
msgid "View Logs"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: admin/admin.php:
|
448 |
msgid "Add Ban"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: admin/admin.php:
|
452 |
msgid "Edit Ban"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: admin/admin.php:
|
456 |
msgid "All Bans"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: admin/admin.php:
|
460 |
msgid "You don't have sufficient permissions to access this page"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: admin/admin.php:
|
464 |
msgid "Poll successfully added"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: admin/admin.php:
|
468 |
-
#: admin/admin.php:
|
469 |
-
#: admin/admin.php:
|
470 |
-
#: admin/admin.php:
|
471 |
-
#: admin/admin.php:
|
472 |
-
#: admin/admin.php:
|
473 |
-
#: admin/admin.php:
|
474 |
-
#: admin/admin.php:
|
475 |
-
#: admin/admin.php:
|
476 |
-
#: admin/admin.php:
|
477 |
-
#: admin/admin.php:
|
478 |
#: admin/inc/ClassYopPollImporter4x.php:744
|
479 |
#: admin/inc/ClassYopPollImporter4x.php:796
|
480 |
#: admin/inc/ClassYopPollImporter5x.php:2587
|
@@ -482,39 +482,39 @@ msgstr ""
|
|
482 |
msgid "You are not allowed to perform this action"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: admin/admin.php:
|
486 |
msgid "Poll successfully updated"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: admin/admin.php:
|
490 |
msgid "Poll successfully deleted"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: admin/admin.php:
|
494 |
msgid "Error deleting poll"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: admin/admin.php:
|
498 |
msgid "Poll successfully cloned"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: admin/admin.php:
|
502 |
msgid "Error cloning poll"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: admin/admin.php:
|
506 |
msgid "Votes successfully reset"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: admin/admin.php:
|
510 |
msgid "Error resetting votes"
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: admin/admin.php:
|
514 |
msgid "Invalid poll"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: admin/admin.php:
|
518 |
#: admin/views/custom-field.php:31 admin/views/polls/add/elements.php:15
|
519 |
#: admin/views/polls/edit/elements.php:15
|
520 |
#: admin/views/polls/edit/elements.php:496
|
@@ -523,67 +523,67 @@ msgstr ""
|
|
523 |
msgid "Custom Field"
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: admin/admin.php:
|
527 |
msgid "Ban successfully added"
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: admin/admin.php:
|
531 |
msgid "Ban successfully deleted"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: admin/admin.php:
|
535 |
msgid "Ban successfully updated"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: admin/admin.php:
|
539 |
msgid "Error deleting ban"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: admin/admin.php:
|
543 |
msgid "Vote Recorded"
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: admin/admin.php:
|
547 |
msgid "Invalid data 1"
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: admin/admin.php:
|
551 |
msgid "Invalid data 2"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: admin/admin.php:
|
555 |
msgid "Vote successfully deleted"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: admin/admin.php:
|
559 |
msgid "Error deleting vote"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: admin/admin.php:
|
563 |
msgid "Log successfully deleted"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: admin/admin.php:
|
567 |
msgid "Error deleting log"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: admin/admin.php:
|
571 |
msgid "Settings updated"
|
572 |
msgstr ""
|
573 |
|
574 |
-
#: admin/admin.php:
|
575 |
msgid "Votes Succesfully Added"
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: admin/admin.php:
|
579 |
msgid "Error generating poll"
|
580 |
msgstr ""
|
581 |
|
582 |
-
#: admin/admin.php:
|
583 |
msgid "Setting Updated"
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: admin/admin.php:
|
587 |
msgid "Guide Sent"
|
588 |
msgstr ""
|
589 |
|
@@ -654,12 +654,12 @@ msgid "No logs table, skipping."
|
|
654 |
msgstr ""
|
655 |
|
656 |
#: admin/models/bans.php:58 admin/models/logs.php:80 admin/models/polls.php:80
|
657 |
-
#: admin/models/votes.php:
|
658 |
msgid "Previous page"
|
659 |
msgstr ""
|
660 |
|
661 |
#: admin/models/bans.php:63 admin/models/logs.php:85 admin/models/polls.php:85
|
662 |
-
#: admin/models/votes.php:
|
663 |
msgid "Next page"
|
664 |
msgstr ""
|
665 |
|
@@ -679,8 +679,8 @@ msgstr ""
|
|
679 |
msgid "Error deleting bans"
|
680 |
msgstr ""
|
681 |
|
682 |
-
#: admin/models/bans.php:402 admin/models/polls.php:
|
683 |
-
#: admin/models/settings.php:
|
684 |
msgid "Invalid data"
|
685 |
msgstr ""
|
686 |
|
@@ -716,7 +716,7 @@ msgstr ""
|
|
716 |
msgid "POLL Name"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: admin/models/logs.php:382 admin/models/votes.php:
|
720 |
#: admin/views/bans/add.php:54 admin/views/bans/edit.php:99
|
721 |
#: admin/views/bans/view.php:197 admin/views/logs/view.php:228
|
722 |
#: admin/views/logs/view.php:452 admin/views/results/votes.php:312
|
@@ -724,7 +724,7 @@ msgstr ""
|
|
724 |
msgid "Username"
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: admin/models/logs.php:383 admin/models/votes.php:
|
728 |
#: admin/views/bans/add.php:51 admin/views/bans/edit.php:96
|
729 |
#: admin/views/bans/view.php:194 admin/views/logs/view.php:251
|
730 |
#: admin/views/logs/view.php:475 admin/views/results/votes.php:335
|
@@ -732,19 +732,19 @@ msgstr ""
|
|
732 |
msgid "Email"
|
733 |
msgstr ""
|
734 |
|
735 |
-
#: admin/models/logs.php:384 admin/models/votes.php:
|
736 |
#: admin/views/logs/view.php:274 admin/views/logs/view.php:498
|
737 |
#: admin/views/results/votes.php:289 admin/views/results/votes.php:459
|
738 |
msgid "User Type"
|
739 |
msgstr ""
|
740 |
|
741 |
-
#: admin/models/logs.php:385 admin/models/votes.php:
|
742 |
#: admin/views/bans/add.php:48 admin/views/bans/edit.php:93
|
743 |
#: admin/views/bans/view.php:191
|
744 |
msgid "IP"
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: admin/models/logs.php:386 admin/models/votes.php:
|
748 |
#: admin/views/logs/view.php:320 admin/views/logs/view.php:544
|
749 |
#: admin/views/results/votes.php:381 admin/views/results/votes.php:551
|
750 |
msgid "Date"
|
@@ -756,17 +756,17 @@ msgstr ""
|
|
756 |
msgid "Message"
|
757 |
msgstr ""
|
758 |
|
759 |
-
#: admin/models/logs.php:388 admin/models/votes.php:
|
760 |
msgid "Vote data"
|
761 |
msgstr ""
|
762 |
|
763 |
-
#: admin/models/logs.php:398 admin/models/votes.php:
|
764 |
-
#: admin/models/votes.php:
|
765 |
msgid "Can't open php://output!"
|
766 |
msgstr ""
|
767 |
|
768 |
-
#: admin/models/logs.php:399 admin/models/votes.php:
|
769 |
-
#: admin/models/votes.php:
|
770 |
msgid "Can't write header!"
|
771 |
msgstr ""
|
772 |
|
@@ -774,8 +774,8 @@ msgstr ""
|
|
774 |
msgid "Can't write logs!"
|
775 |
msgstr ""
|
776 |
|
777 |
-
#: admin/models/logs.php:430 admin/models/votes.php:
|
778 |
-
#: admin/models/votes.php:
|
779 |
msgid "Can't close php://output!"
|
780 |
msgstr ""
|
781 |
|
@@ -799,483 +799,483 @@ msgstr ""
|
|
799 |
msgid "clone"
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: admin/models/polls.php:
|
803 |
msgid "Data for \"Poll Name\" is invalid"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: admin/models/polls.php:
|
807 |
msgid "Data for \"Template\" is invalid"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: admin/models/polls.php:
|
811 |
msgid "Data for \"Poll Background Color\" is invalid"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: admin/models/polls.php:
|
815 |
msgid "Data for \"Poll Border Thickness\" is invalid"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: admin/models/polls.php:
|
819 |
msgid "Data for \"Poll Border Color\" is invalid"
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: admin/models/polls.php:
|
823 |
msgid "Data for \"Poll Border Radius\" is invalid"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: admin/models/polls.php:
|
827 |
msgid "Data for \"Poll Padding Left/Right\" is invalid"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: admin/models/polls.php:
|
831 |
msgid "Data for \"Poll Padding Top/Bottom\" is invalid"
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: admin/models/polls.php:
|
835 |
msgid "Data for \"Question Text Color\" is invalid"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: admin/models/polls.php:
|
839 |
msgid "Data for \"Question Text Size\" is invalid"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: admin/models/polls.php:
|
843 |
msgid "Data for \"Question Text Weight\" is invalid"
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: admin/models/polls.php:
|
847 |
msgid "Data for \"Question Text Align\" is invalid"
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: admin/models/polls.php:
|
851 |
msgid "Data for \"Answers Padding Left/Right\" is invalid"
|
852 |
msgstr ""
|
853 |
|
854 |
-
#: admin/models/polls.php:
|
855 |
msgid "Data for \"Answers Padding Top/Bottom\" is invalid"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: admin/models/polls.php:
|
859 |
msgid "Data for \"Answers Text Color\" is invalid"
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: admin/models/polls.php:
|
863 |
msgid "Data for \"Answers Text Size\" is invalid"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: admin/models/polls.php:
|
867 |
msgid "Data for \"Answers Text Weight\" is invalid"
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: admin/models/polls.php:
|
871 |
msgid "Data for \"Buttons Background Color\" is invalid"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: admin/models/polls.php:
|
875 |
msgid "Data for \"Buttons Border Thickness\" is invalid"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: admin/models/polls.php:
|
879 |
msgid "Data for \"Buttons Border Color\" is invalid"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: admin/models/polls.php:
|
883 |
msgid "Data for \"Buttons Border Radius\" is invalid"
|
884 |
msgstr ""
|
885 |
|
886 |
-
#: admin/models/polls.php:
|
887 |
msgid "Data for \"Buttons Padding Left/Right\" is invalid"
|
888 |
msgstr ""
|
889 |
|
890 |
-
#: admin/models/polls.php:
|
891 |
msgid "Data for \"Buttons Padding Top/Bottom\" is invalid"
|
892 |
msgstr ""
|
893 |
|
894 |
-
#: admin/models/polls.php:
|
895 |
msgid "Data for \"Buttons Text Color\" is invalid"
|
896 |
msgstr ""
|
897 |
|
898 |
-
#: admin/models/polls.php:
|
899 |
msgid "Data for \"Buttons Text Size\" is invalid"
|
900 |
msgstr ""
|
901 |
|
902 |
-
#: admin/models/polls.php:
|
903 |
msgid "Data for \"Buttons Text Weight\" is invalid"
|
904 |
msgstr ""
|
905 |
|
906 |
-
#: admin/models/polls.php:
|
907 |
msgid "Data for \"Messages Border Color For Success\" is invalid"
|
908 |
msgstr ""
|
909 |
|
910 |
-
#: admin/models/polls.php:
|
911 |
msgid "Data for \"Messages Border Color For Error\" is invalid"
|
912 |
msgstr ""
|
913 |
|
914 |
-
#: admin/models/polls.php:
|
915 |
msgid "Data for \"Messages Border Left Thickness\" is invalid"
|
916 |
msgstr ""
|
917 |
|
918 |
-
#: admin/models/polls.php:
|
919 |
msgid "Data for \"Messages Padding Top/Bottom\" is invalid"
|
920 |
msgstr ""
|
921 |
|
922 |
-
#: admin/models/polls.php:
|
923 |
msgid "Data for \"Messages Text Size\" is invalid"
|
924 |
msgstr ""
|
925 |
|
926 |
-
#: admin/models/polls.php:
|
927 |
msgid "Data for \"Messages Text Weight\" is invalid"
|
928 |
msgstr ""
|
929 |
|
930 |
-
#: admin/models/polls.php:
|
931 |
msgid "No elements present"
|
932 |
msgstr ""
|
933 |
|
934 |
-
#: admin/models/polls.php:
|
935 |
msgid "Data for \"Question\" is invalid"
|
936 |
msgstr ""
|
937 |
|
938 |
-
#: admin/models/polls.php:
|
939 |
msgid "At least one answer per question is required"
|
940 |
msgstr ""
|
941 |
|
942 |
-
#: admin/models/polls.php:
|
943 |
msgid "Answer text is invalid"
|
944 |
msgstr ""
|
945 |
|
946 |
-
#: admin/models/polls.php:
|
947 |
msgid "Data for default answer is invalid"
|
948 |
msgstr ""
|
949 |
|
950 |
-
#: admin/models/polls.php:
|
951 |
msgid " Data for \"Answer Link\" is invalid"
|
952 |
msgstr ""
|
953 |
|
954 |
-
#: admin/models/polls.php:
|
955 |
msgid "Data for \"Answer link\" is invalid"
|
956 |
msgstr ""
|
957 |
|
958 |
-
#: admin/models/polls.php:
|
959 |
msgid "Data for \"Allow other options\" is invalid"
|
960 |
msgstr ""
|
961 |
|
962 |
-
#: admin/models/polls.php:
|
963 |
msgid "Data for \"Label for Other Answers\" is invalid"
|
964 |
msgstr ""
|
965 |
|
966 |
-
#: admin/models/polls.php:
|
967 |
msgid "Data for \"Add other answers in answer list\" is invalid"
|
968 |
msgstr ""
|
969 |
|
970 |
-
#: admin/models/polls.php:
|
971 |
msgid "Data for \"Display other answers in results list\" is invalid"
|
972 |
msgstr ""
|
973 |
|
974 |
-
#: admin/models/polls.php:
|
975 |
msgid "Data for \"Allow multiple answers \" is invalid"
|
976 |
msgstr ""
|
977 |
|
978 |
-
#: admin/models/polls.php:
|
979 |
-
#: admin/models/settings.php:
|
980 |
msgid "Data for \"Minimum answers required\" is invalid"
|
981 |
msgstr ""
|
982 |
|
983 |
-
#: admin/models/polls.php:
|
984 |
-
#: admin/models/settings.php:
|
985 |
msgid "Data for \"Maximum answers required\" is invalid"
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: admin/models/polls.php:
|
989 |
msgid "Data for \"Display answers\" is invalid"
|
990 |
msgstr ""
|
991 |
|
992 |
-
#: admin/models/polls.php:
|
993 |
msgid "Data for \"Sort Answers\" is invalid"
|
994 |
msgstr ""
|
995 |
|
996 |
-
#: admin/models/polls.php:
|
997 |
msgid "Data for \"Custom Field\" is invalid"
|
998 |
msgstr ""
|
999 |
|
1000 |
-
#: admin/models/polls.php:
|
1001 |
msgid "Data for \"Make Required\" is invalid"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
-
#: admin/models/polls.php:
|
1005 |
msgid "Data for \"Vote Button Label\" is invalid"
|
1006 |
msgstr ""
|
1007 |
|
1008 |
-
#: admin/models/polls.php:
|
1009 |
msgid "Data for \"Show [Results] link\" is invalid"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
-
#: admin/models/polls.php:
|
1013 |
msgid "Data for \"[Results] Link Label\" is invalid"
|
1014 |
msgstr ""
|
1015 |
|
1016 |
-
#: admin/models/polls.php:
|
1017 |
msgid "Data for \"Show Total Votes\" is invalid"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
-
#: admin/models/polls.php:
|
1021 |
msgid "Data for \"Show Total Answers\" is invalid"
|
1022 |
msgstr ""
|
1023 |
|
1024 |
-
#: admin/models/polls.php:
|
1025 |
msgid "Data for \"Start Date\" is invalid"
|
1026 |
msgstr ""
|
1027 |
|
1028 |
-
#: admin/models/polls.php:
|
1029 |
msgid "Data for \"End Date\" is invalid"
|
1030 |
msgstr ""
|
1031 |
|
1032 |
-
#: admin/models/polls.php:
|
1033 |
msgid "Data for \"Redirect after vote\" is invalid"
|
1034 |
msgstr ""
|
1035 |
|
1036 |
-
#: admin/models/polls.php:
|
1037 |
msgid "Data for \"Redirect Url\" is invalid"
|
1038 |
msgstr ""
|
1039 |
|
1040 |
-
#: admin/models/polls.php:
|
1041 |
msgid "Data for \"Reset Poll Stats automatically\" is invalid"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
-
#: admin/models/polls.php:
|
1045 |
msgid "Data for \"Reset Every\" is invalid"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
-
#: admin/models/polls.php:
|
1049 |
msgid "Data for \"Auto Generate Poll Page\" is invalid"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
-
#: admin/models/polls.php:
|
1053 |
msgid "Data for \"Use Captcha\" is invalid"
|
1054 |
msgstr ""
|
1055 |
|
1056 |
-
#: admin/models/polls.php:
|
1057 |
msgid "Data for \"Send Email notifications\" is invalid"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
-
#: admin/models/polls.php:
|
1061 |
msgid "Data for \"From Name\" is invalid"
|
1062 |
msgstr ""
|
1063 |
|
1064 |
-
#: admin/models/polls.php:
|
1065 |
msgid "Data for \"From Email\" is invalid"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
-
#: admin/models/polls.php:
|
1069 |
msgid "Data for \"Recipients\" is invalid"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
-
#: admin/models/polls.php:
|
1073 |
msgid "Data for \"Subject\" is invalid"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
-
#: admin/models/polls.php:
|
1077 |
msgid "Data for \"Message\" is invalid"
|
1078 |
msgstr ""
|
1079 |
|
1080 |
-
#: admin/models/polls.php:
|
1081 |
msgid "Data for \"Show results\" is invalid"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
-
#: admin/models/polls.php:
|
1085 |
msgid "Data for \"Show Results\" is invalid"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
-
#: admin/models/polls.php:
|
1089 |
msgid "Data for \"Show results to\" is invalid"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
-
#: admin/models/polls.php:
|
1093 |
msgid "Data for \"Display [Back to vote] link\" is invalid"
|
1094 |
msgstr ""
|
1095 |
|
1096 |
-
#: admin/models/polls.php:
|
1097 |
msgid "Data for \"[Back to vote] caption\" is invalid"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
-
#: admin/models/polls.php:
|
1101 |
msgid "Data for \"Sort Results\" is invalid"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
-
#: admin/models/polls.php:
|
1105 |
msgid "Data for \"Sort rule\" is invalid"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
-
#: admin/models/polls.php:
|
1109 |
msgid "Data for \"Display Results As\""
|
1110 |
msgstr ""
|
1111 |
|
1112 |
-
#: admin/models/polls.php:
|
1113 |
msgid "Data for \"Vote Permissions\" is invalid"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
-
#: admin/models/polls.php:
|
1117 |
msgid "Data for \"Block Voters\" is invalid"
|
1118 |
msgstr ""
|
1119 |
|
1120 |
-
#: admin/models/polls.php:
|
1121 |
msgid "Data for \"Block Period\" is invalid"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
-
#: admin/models/polls.php:
|
1125 |
msgid "Data for \"Limit Number Of Votes per User\" is invalid"
|
1126 |
msgstr ""
|
1127 |
|
1128 |
-
#: admin/models/polls.php:
|
1129 |
msgid "Data for \"Votes per user\" is invalid"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
-
#: admin/models/polls.php:
|
1133 |
msgid "Number of votes for each question should be the same"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: admin/models/polls.php:
|
1137 |
msgid "Invalid Poll"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: admin/models/settings.php:
|
1141 |
msgid "Data for \"Use Google reCaptcha\" is invalid"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: admin/models/settings.php:
|
1145 |
-
#: admin/models/settings.php:
|
1146 |
msgid "Data for \"Site Key\" is invalid"
|
1147 |
msgstr ""
|
1148 |
|
1149 |
-
#: admin/models/settings.php:
|
1150 |
-
#: admin/models/settings.php:
|
1151 |
msgid "Data for \"Secret Key\" is invalid"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
-
#: admin/models/settings.php:
|
1155 |
msgid "Data for \"Min Allowed Score\" is invalid"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
-
#: admin/models/settings.php:
|
1159 |
msgid "Data for \"Use Facebook integration\" is invalid"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
-
#: admin/models/settings.php:
|
1163 |
msgid "Data for \"App ID\" is invalid"
|
1164 |
msgstr ""
|
1165 |
|
1166 |
-
#: admin/models/settings.php:
|
1167 |
msgid "Data for \"Use Google integration\" is invalid"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
-
#: admin/models/settings.php:
|
1171 |
msgid "Data for \"App Secret\" is invalid"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
-
#: admin/models/settings.php:
|
1175 |
msgid "Data for \"Vote as anonymous\" is invalid"
|
1176 |
msgstr ""
|
1177 |
|
1178 |
-
#: admin/models/settings.php:
|
1179 |
msgid "Data for \"Vote with your WordPress account\" is invalid"
|
1180 |
msgstr ""
|
1181 |
|
1182 |
-
#: admin/models/settings.php:
|
1183 |
msgid "Data for \"Vote with your Facebook account\" is invalid"
|
1184 |
msgstr ""
|
1185 |
|
1186 |
-
#: admin/models/settings.php:
|
1187 |
msgid "Data for \"Vote with your Google account\" is invalid"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
-
#: admin/models/settings.php:
|
1191 |
msgid "Data for \"Poll Ended\" is invalid"
|
1192 |
msgstr ""
|
1193 |
|
1194 |
-
#: admin/models/settings.php:
|
1195 |
msgid "Data for \"Poll Not Started\" is invalid"
|
1196 |
msgstr ""
|
1197 |
|
1198 |
-
#: admin/models/settings.php:
|
1199 |
msgid "Data for \"Already voted on poll\" is invalid"
|
1200 |
msgstr ""
|
1201 |
|
1202 |
-
#: admin/models/settings.php:
|
1203 |
msgid "Data for \"Invalid Poll\" is invalid"
|
1204 |
msgstr ""
|
1205 |
|
1206 |
-
#: admin/models/settings.php:
|
1207 |
msgid "Data for \"No Answer(s) selected\" is invalid"
|
1208 |
msgstr ""
|
1209 |
|
1210 |
-
#: admin/models/settings.php:
|
1211 |
msgid "Data for \"No value for other\" is invalid"
|
1212 |
msgstr ""
|
1213 |
|
1214 |
-
#: admin/models/settings.php:
|
1215 |
msgid "Data for \"No value for custom field\" is invalid"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
-
#: admin/models/settings.php:
|
1219 |
msgid "Data for \"Consent not checked\" is invalid"
|
1220 |
msgstr ""
|
1221 |
|
1222 |
-
#: admin/models/settings.php:
|
1223 |
msgid "Data for \"Captcha missing\" is invalid"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
-
#: admin/models/settings.php:
|
1227 |
msgid "Data for \"Vote not allowed by ban setting\" is invalid"
|
1228 |
msgstr ""
|
1229 |
|
1230 |
-
#: admin/models/settings.php:
|
1231 |
msgid "Data for \"Vote not allowed by block setting\" is invalid"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
-
#: admin/models/settings.php:
|
1235 |
msgid "Data for \"Vote not allowed by limit setting\" is invalid"
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: admin/models/settings.php:
|
1239 |
msgid "Data for \"Thank you for your vote\" is invalid"
|
1240 |
msgstr ""
|
1241 |
|
1242 |
-
#: admin/models/settings.php:
|
1243 |
msgid "Data for \"Single Vote\" is invalid"
|
1244 |
msgstr ""
|
1245 |
|
1246 |
-
#: admin/models/settings.php:
|
1247 |
msgid "Data for \"Multiple Votes\" is invalid"
|
1248 |
msgstr ""
|
1249 |
|
1250 |
-
#: admin/models/settings.php:
|
1251 |
msgid "Data for \"Single Answer\" is invalid"
|
1252 |
msgstr ""
|
1253 |
|
1254 |
-
#: admin/models/settings.php:
|
1255 |
msgid "Data for \"Multiple Answers\" is invalid"
|
1256 |
msgstr ""
|
1257 |
|
1258 |
-
#: admin/models/settings.php:
|
1259 |
msgid "Data for \"Accessibility Alt\" is invalid"
|
1260 |
msgstr ""
|
1261 |
|
1262 |
-
#: admin/models/settings.php:
|
1263 |
msgid "Data for \"Accessibility Title\" is invalid"
|
1264 |
msgstr ""
|
1265 |
|
1266 |
-
#: admin/models/settings.php:
|
1267 |
msgid "Data for \"Accessibility Description\" is invalid"
|
1268 |
msgstr ""
|
1269 |
|
1270 |
-
#: admin/models/settings.php:
|
1271 |
msgid "Data for \"Accessibility Explanation\" is invalid"
|
1272 |
msgstr ""
|
1273 |
|
1274 |
-
#: admin/models/settings.php:
|
1275 |
msgid "Data for \"Refresh Alt\" is invalid"
|
1276 |
msgstr ""
|
1277 |
|
1278 |
-
#: admin/models/settings.php:
|
1279 |
msgid "Data for \"Refresh Title\" is invalid"
|
1280 |
msgstr ""
|
1281 |
|
@@ -1293,15 +1293,15 @@ msgstr ""
|
|
1293 |
msgid "Invalid answer id"
|
1294 |
msgstr ""
|
1295 |
|
1296 |
-
#: admin/models/votes.php:
|
1297 |
msgid "Poll Name"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
-
#: admin/models/votes.php:
|
1301 |
msgid "Custom field - "
|
1302 |
msgstr ""
|
1303 |
|
1304 |
-
#: admin/models/votes.php:
|
1305 |
msgid "Can't write votes!"
|
1306 |
msgstr ""
|
1307 |
|
1 |
+
# Copyright (C) 2022 yourownprogrammer
|
2 |
# This file is distributed under the GPL2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: YOP Poll 6.3.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yop-poll-free\n"
|
7 |
+
"POT-Creation-Date: 2022-01-26 09:04:11+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
71 |
msgid "Skip and Deactivate"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: admin/admin.php:349 admin/admin.php:350
|
75 |
msgid "Yop Poll"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: admin/admin.php:363 admin/admin.php:364 admin/admin.php:662
|
79 |
#: admin/views/bans/add.php:23 admin/views/bans/edit.php:25
|
80 |
#: admin/views/bans/edit.php:31 admin/views/polls/view.php:155
|
81 |
#: admin/views/results/view.php:17 admin/views/results/votes.php:95
|
82 |
msgid "All Polls"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: admin/admin.php:378 admin/admin.php:379 admin/views/bans/view.php:151
|
86 |
#: admin/views/polls/view.php:166
|
87 |
msgid "Add New"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: admin/admin.php:389 admin/admin.php:390 admin/views/bans/view.php:140
|
91 |
msgid "Bans"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: admin/admin.php:400 admin/admin.php:401 admin/views/logs/view.php:108
|
95 |
msgid "Logs"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: admin/admin.php:415 admin/admin.php:416
|
99 |
msgid "Settings"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: admin/admin.php:427 admin/admin.php:428
|
103 |
msgid "Migrate old records"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: admin/admin.php:439 admin/admin.php:440
|
107 |
msgid "Upgrade to Pro"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: admin/admin.php:528
|
111 |
msgid "New Custom Field"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: admin/admin.php:529
|
115 |
msgid "Warning"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: admin/admin.php:530 admin/admin.php:531
|
119 |
msgid "Are you sure you want to delete this poll?"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: admin/admin.php:532
|
123 |
msgid "Are you sure you want to delete these polls?"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: admin/admin.php:533 admin/admin.php:534
|
127 |
msgid "Are you sure you want to clone this poll?"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: admin/admin.php:535
|
131 |
msgid "Are you sure you want to clone these polls?"
|
132 |
msgstr ""
|
133 |
|
134 |
+
#: admin/admin.php:536 admin/admin.php:537
|
135 |
msgid "Are you sure you want to reset votes for this poll?"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: admin/admin.php:538
|
139 |
msgid "Are you sure you want to reset votes for these polls?"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: admin/admin.php:539
|
143 |
msgid "No bulk action selected"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: admin/admin.php:540
|
147 |
msgid "No polls selected"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: admin/admin.php:541
|
151 |
msgid "No bans selected"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: admin/admin.php:542
|
155 |
msgid "No logs selected"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: admin/admin.php:543
|
159 |
msgid "No votes selected"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: admin/admin.php:544 admin/admin.php:617
|
163 |
msgid "Are you sure you want to delete this ban?"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: admin/admin.php:545
|
167 |
msgid "Are you sure you want to delete these bans?"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: admin/admin.php:546 admin/admin.php:618
|
171 |
msgid "Are you sure you want to delete this log?"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: admin/admin.php:547
|
175 |
msgid "Are you sure you want to delete these logs?"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: admin/admin.php:548
|
179 |
msgid "Are you sure you want to delete this vote?"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: admin/admin.php:549
|
183 |
msgid "Are you sure you want to delete these votes?"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: admin/admin.php:550
|
187 |
msgid "Are you sure you want to delete this answer?"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: admin/admin.php:551
|
191 |
msgid "Answer can't be deleted. At least one answer is required!"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: admin/admin.php:552
|
195 |
msgid "Are you sure you want to delete this custom field?"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: admin/admin.php:553 admin/views/polls/add/main.php:188
|
199 |
#: admin/views/polls/edit/main.php:213 admin/views/results/votes.php:196
|
200 |
msgid "Cancel"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: admin/admin.php:554
|
204 |
msgid "Ok"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: admin/admin.php:555
|
208 |
msgid "Before generating the preview a template is required"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: admin/admin.php:556
|
212 |
msgid "Before generating the preview a skin is required"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: admin/admin.php:557
|
216 |
msgid "Number of columns is missing"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: admin/admin.php:558
|
220 |
msgid "Too many columns. Max 12 allowed"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: admin/admin.php:559
|
224 |
msgid "Click to select"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: admin/admin.php:560 admin/views/polls/add/main.php:194
|
228 |
msgid "Publish immediately"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: admin/admin.php:561
|
232 |
msgid "Schedule for"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: admin/admin.php:562
|
236 |
msgid "Code Copied To Clipboard"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: admin/admin.php:564
|
240 |
msgid "Press"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: admin/admin.php:565
|
244 |
msgid " to copy"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: admin/admin.php:566
|
248 |
msgid "No Support"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: admin/admin.php:568
|
252 |
msgid "Element added"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: admin/admin.php:580
|
256 |
msgid "Poll Preview"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: admin/admin.php:581
|
260 |
msgid "Show preview for"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: admin/admin.php:582 admin/views/settings/view.php:324
|
264 |
msgid "Voting"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: admin/admin.php:583 admin/views/polls/add/main.php:108
|
268 |
#: admin/views/polls/add/options-poll.php:40
|
269 |
#: admin/views/polls/edit/main.php:124 admin/views/polls/view.php:345
|
270 |
#: admin/views/polls/view.php:630 admin/views/results/view.php:24
|
272 |
msgid "Results"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: admin/admin.php:594
|
276 |
msgid "Template is missing"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: admin/admin.php:595
|
280 |
msgid "Skin is missing"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: admin/admin.php:596
|
284 |
msgid " is missing"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: admin/admin.php:597
|
288 |
msgid "Poll name is missing"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: admin/admin.php:598
|
292 |
msgid "Question Text is missing"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: admin/admin.php:599
|
296 |
msgid "Answer Text is missing"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: admin/admin.php:600
|
300 |
msgid "Answer Link is missing"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: admin/admin.php:601
|
304 |
msgid "Answer Embed is missing"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: admin/admin.php:602
|
308 |
msgid "Label for Other is missing"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: admin/admin.php:603
|
312 |
msgid "Minimum answers is missing"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: admin/admin.php:604
|
316 |
msgid "Maximum answers is missing"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: admin/admin.php:605
|
320 |
msgid "Custom Field Name is missing"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: admin/admin.php:606
|
324 |
msgid "Poll Start Date is missing"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: admin/admin.php:607
|
328 |
msgid "Poll End Date is missing"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: admin/admin.php:608
|
332 |
msgid "Custom Date for displaying results is missing"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: admin/admin.php:609
|
336 |
msgid "Show Results Time is missing"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: admin/admin.php:610
|
340 |
msgid "Show Results To is missing"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: admin/admin.php:611
|
344 |
msgid "Vote As WordPress User is missing"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: admin/admin.php:614
|
348 |
msgid "Ban For is missing"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: admin/admin.php:615
|
352 |
msgid "Ban Value is missing"
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: admin/admin.php:619 admin/admin.php:1220 admin/admin.php:1444
|
356 |
+
#: admin/models/logs.php:410 admin/models/votes.php:1405
|
357 |
msgid "Question"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: admin/admin.php:620 admin/admin.php:1217 admin/admin.php:1222
|
361 |
+
#: admin/admin.php:1441 admin/admin.php:1446 admin/models/logs.php:408
|
362 |
+
#: admin/models/logs.php:412 admin/models/votes.php:1407
|
363 |
#: admin/views/polls/add/elements.php:107
|
364 |
#: admin/views/polls/add/elements.php:181
|
365 |
#: admin/views/polls/edit/elements.php:115
|
367 |
msgid "Answer"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: admin/admin.php:621 admin/views/logs/view.php:368
|
371 |
#: admin/views/results/votes.php:404
|
372 |
msgid "View Details"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: admin/admin.php:622
|
376 |
msgid "Hide Details"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: admin/admin.php:623
|
380 |
msgid "Number of Votes"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: admin/admin.php:625
|
384 |
msgid "vote"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: admin/admin.php:626
|
388 |
msgid "votes"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: admin/admin.php:629
|
392 |
msgid "Got It. Continue with the migration"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: admin/admin.php:630
|
396 |
msgid "Hold On. I want to change settings"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: admin/admin.php:631
|
400 |
msgid "Please review your settings before continue"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: admin/admin.php:632
|
404 |
msgid "Your selection"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: admin/admin.php:633
|
408 |
msgid ""
|
409 |
"This setting will migrate all data from previous version without any "
|
410 |
"anonymization"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: admin/admin.php:634
|
414 |
msgid ""
|
415 |
"This setting will migrate all data from previous version but ips will be "
|
416 |
"anonymized"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: admin/admin.php:635
|
420 |
msgid "This setting will migrate everything except ip addresses. "
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: admin/admin.php:636
|
424 |
msgid "Response:"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: admin/admin.php:637
|
428 |
msgid "All done."
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: admin/admin.php:638
|
432 |
msgid "Migration started"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: admin/admin.php:654 admin/views/polls/edit/main.php:14
|
436 |
msgid "Edit Poll"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: admin/admin.php:658
|
440 |
msgid "View Poll Results"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: admin/admin.php:671
|
444 |
msgid "View Logs"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: admin/admin.php:680 admin/views/bans/add.php:4
|
448 |
msgid "Add Ban"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: admin/admin.php:684 admin/views/bans/edit.php:4
|
452 |
msgid "Edit Ban"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: admin/admin.php:688
|
456 |
msgid "All Bans"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: admin/admin.php:787 admin/admin.php:1312
|
460 |
msgid "You don't have sufficient permissions to access this page"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: admin/admin.php:799
|
464 |
msgid "Poll successfully added"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: admin/admin.php:807 admin/admin.php:833 admin/admin.php:836
|
468 |
+
#: admin/admin.php:856 admin/admin.php:859 admin/admin.php:862
|
469 |
+
#: admin/admin.php:902 admin/admin.php:916 admin/admin.php:919
|
470 |
+
#: admin/admin.php:922 admin/admin.php:957 admin/admin.php:982
|
471 |
+
#: admin/admin.php:1176 admin/admin.php:1229 admin/admin.php:1232
|
472 |
+
#: admin/admin.php:1235 admin/admin.php:1292 admin/admin.php:1334
|
473 |
+
#: admin/admin.php:1337 admin/admin.php:1340 admin/admin.php:1359
|
474 |
+
#: admin/admin.php:1362 admin/admin.php:1402 admin/admin.php:1453
|
475 |
+
#: admin/admin.php:1456 admin/admin.php:1482 admin/admin.php:1526
|
476 |
+
#: admin/admin.php:1546 admin/admin.php:1549 admin/admin.php:1552
|
477 |
+
#: admin/admin.php:1592 admin/admin.php:1616 admin/admin.php:1619
|
478 |
#: admin/inc/ClassYopPollImporter4x.php:744
|
479 |
#: admin/inc/ClassYopPollImporter4x.php:796
|
480 |
#: admin/inc/ClassYopPollImporter5x.php:2587
|
482 |
msgid "You are not allowed to perform this action"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: admin/admin.php:824
|
486 |
msgid "Poll successfully updated"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: admin/admin.php:851 admin/admin.php:887
|
490 |
msgid "Poll successfully deleted"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: admin/admin.php:894 admin/models/polls.php:571
|
494 |
msgid "Error deleting poll"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: admin/admin.php:911 admin/admin.php:942
|
498 |
msgid "Poll successfully cloned"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: admin/admin.php:949 admin/models/polls.php:631
|
502 |
msgid "Error cloning poll"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: admin/admin.php:977
|
506 |
msgid "Votes successfully reset"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: admin/admin.php:979 admin/models/polls.php:650
|
510 |
msgid "Error resetting votes"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: admin/admin.php:1092 admin/admin.php:1131 admin/models/bans.php:379
|
514 |
msgid "Invalid poll"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: admin/admin.php:1216 admin/admin.php:1440 admin/models/logs.php:407
|
518 |
#: admin/views/custom-field.php:31 admin/views/polls/add/elements.php:15
|
519 |
#: admin/views/polls/edit/elements.php:15
|
520 |
#: admin/views/polls/edit/elements.php:496
|
523 |
msgid "Custom Field"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: admin/admin.php:1287
|
527 |
msgid "Ban successfully added"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: admin/admin.php:1329 admin/admin.php:1387
|
531 |
msgid "Ban successfully deleted"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: admin/admin.php:1354
|
535 |
msgid "Ban successfully updated"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: admin/admin.php:1394 admin/models/bans.php:356
|
539 |
msgid "Error deleting ban"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: admin/admin.php:1411
|
543 |
msgid "Vote Recorded"
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: admin/admin.php:1416 admin/admin.php:1634
|
547 |
msgid "Invalid data 1"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: admin/admin.php:1419 admin/admin.php:1637
|
551 |
msgid "Invalid data 2"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: admin/admin.php:1473 admin/admin.php:1511
|
555 |
msgid "Vote successfully deleted"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: admin/admin.php:1475 admin/admin.php:1479 admin/admin.php:1518
|
559 |
msgid "Error deleting vote"
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: admin/admin.php:1541 admin/admin.php:1577
|
563 |
msgid "Log successfully deleted"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: admin/admin.php:1584 admin/models/logs.php:459
|
567 |
msgid "Error deleting log"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: admin/admin.php:1611
|
571 |
msgid "Settings updated"
|
572 |
msgstr ""
|
573 |
|
574 |
+
#: admin/admin.php:1629
|
575 |
msgid "Votes Succesfully Added"
|
576 |
msgstr ""
|
577 |
|
578 |
+
#: admin/admin.php:1650
|
579 |
msgid "Error generating poll"
|
580 |
msgstr ""
|
581 |
|
582 |
+
#: admin/admin.php:1657
|
583 |
msgid "Setting Updated"
|
584 |
msgstr ""
|
585 |
|
586 |
+
#: admin/admin.php:1676
|
587 |
msgid "Guide Sent"
|
588 |
msgstr ""
|
589 |
|
654 |
msgstr ""
|
655 |
|
656 |
#: admin/models/bans.php:58 admin/models/logs.php:80 admin/models/polls.php:80
|
657 |
+
#: admin/models/votes.php:1100
|
658 |
msgid "Previous page"
|
659 |
msgstr ""
|
660 |
|
661 |
#: admin/models/bans.php:63 admin/models/logs.php:85 admin/models/polls.php:85
|
662 |
+
#: admin/models/votes.php:1105
|
663 |
msgid "Next page"
|
664 |
msgstr ""
|
665 |
|
679 |
msgid "Error deleting bans"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: admin/models/bans.php:402 admin/models/polls.php:784
|
683 |
+
#: admin/models/settings.php:442
|
684 |
msgid "Invalid data"
|
685 |
msgstr ""
|
686 |
|
716 |
msgid "POLL Name"
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: admin/models/logs.php:382 admin/models/votes.php:1387
|
720 |
#: admin/views/bans/add.php:54 admin/views/bans/edit.php:99
|
721 |
#: admin/views/bans/view.php:197 admin/views/logs/view.php:228
|
722 |
#: admin/views/logs/view.php:452 admin/views/results/votes.php:312
|
724 |
msgid "Username"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: admin/models/logs.php:383 admin/models/votes.php:1388
|
728 |
#: admin/views/bans/add.php:51 admin/views/bans/edit.php:96
|
729 |
#: admin/views/bans/view.php:194 admin/views/logs/view.php:251
|
730 |
#: admin/views/logs/view.php:475 admin/views/results/votes.php:335
|
732 |
msgid "Email"
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: admin/models/logs.php:384 admin/models/votes.php:1389
|
736 |
#: admin/views/logs/view.php:274 admin/views/logs/view.php:498
|
737 |
#: admin/views/results/votes.php:289 admin/views/results/votes.php:459
|
738 |
msgid "User Type"
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: admin/models/logs.php:385 admin/models/votes.php:1390
|
742 |
#: admin/views/bans/add.php:48 admin/views/bans/edit.php:93
|
743 |
#: admin/views/bans/view.php:191
|
744 |
msgid "IP"
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: admin/models/logs.php:386 admin/models/votes.php:1391
|
748 |
#: admin/views/logs/view.php:320 admin/views/logs/view.php:544
|
749 |
#: admin/views/results/votes.php:381 admin/views/results/votes.php:551
|
750 |
msgid "Date"
|
756 |
msgid "Message"
|
757 |
msgstr ""
|
758 |
|
759 |
+
#: admin/models/logs.php:388 admin/models/votes.php:1392
|
760 |
msgid "Vote data"
|
761 |
msgstr ""
|
762 |
|
763 |
+
#: admin/models/logs.php:398 admin/models/votes.php:1439
|
764 |
+
#: admin/models/votes.php:1468
|
765 |
msgid "Can't open php://output!"
|
766 |
msgstr ""
|
767 |
|
768 |
+
#: admin/models/logs.php:399 admin/models/votes.php:1442
|
769 |
+
#: admin/models/votes.php:1474
|
770 |
msgid "Can't write header!"
|
771 |
msgstr ""
|
772 |
|
774 |
msgid "Can't write logs!"
|
775 |
msgstr ""
|
776 |
|
777 |
+
#: admin/models/logs.php:430 admin/models/votes.php:1448
|
778 |
+
#: admin/models/votes.php:1478
|
779 |
msgid "Can't close php://output!"
|
780 |
msgstr ""
|
781 |
|
799 |
msgid "clone"
|
800 |
msgstr ""
|
801 |
|
802 |
+
#: admin/models/polls.php:792
|
803 |
msgid "Data for \"Poll Name\" is invalid"
|
804 |
msgstr ""
|
805 |
|
806 |
+
#: admin/models/polls.php:801
|
807 |
msgid "Data for \"Template\" is invalid"
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: admin/models/polls.php:810
|
811 |
msgid "Data for \"Poll Background Color\" is invalid"
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: admin/models/polls.php:819
|
815 |
msgid "Data for \"Poll Border Thickness\" is invalid"
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: admin/models/polls.php:828
|
819 |
msgid "Data for \"Poll Border Color\" is invalid"
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: admin/models/polls.php:837
|
823 |
msgid "Data for \"Poll Border Radius\" is invalid"
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: admin/models/polls.php:846
|
827 |
msgid "Data for \"Poll Padding Left/Right\" is invalid"
|
828 |
msgstr ""
|
829 |
|
830 |
+
#: admin/models/polls.php:855
|
831 |
msgid "Data for \"Poll Padding Top/Bottom\" is invalid"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: admin/models/polls.php:865
|
835 |
msgid "Data for \"Question Text Color\" is invalid"
|
836 |
msgstr ""
|
837 |
|
838 |
+
#: admin/models/polls.php:873
|
839 |
msgid "Data for \"Question Text Size\" is invalid"
|
840 |
msgstr ""
|
841 |
|
842 |
+
#: admin/models/polls.php:882
|
843 |
msgid "Data for \"Question Text Weight\" is invalid"
|
844 |
msgstr ""
|
845 |
|
846 |
+
#: admin/models/polls.php:891
|
847 |
msgid "Data for \"Question Text Align\" is invalid"
|
848 |
msgstr ""
|
849 |
|
850 |
+
#: admin/models/polls.php:901
|
851 |
msgid "Data for \"Answers Padding Left/Right\" is invalid"
|
852 |
msgstr ""
|
853 |
|
854 |
+
#: admin/models/polls.php:910
|
855 |
msgid "Data for \"Answers Padding Top/Bottom\" is invalid"
|
856 |
msgstr ""
|
857 |
|
858 |
+
#: admin/models/polls.php:919
|
859 |
msgid "Data for \"Answers Text Color\" is invalid"
|
860 |
msgstr ""
|
861 |
|
862 |
+
#: admin/models/polls.php:927
|
863 |
msgid "Data for \"Answers Text Size\" is invalid"
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: admin/models/polls.php:936
|
867 |
msgid "Data for \"Answers Text Weight\" is invalid"
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: admin/models/polls.php:946
|
871 |
msgid "Data for \"Buttons Background Color\" is invalid"
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: admin/models/polls.php:955
|
875 |
msgid "Data for \"Buttons Border Thickness\" is invalid"
|
876 |
msgstr ""
|
877 |
|
878 |
+
#: admin/models/polls.php:964
|
879 |
msgid "Data for \"Buttons Border Color\" is invalid"
|
880 |
msgstr ""
|
881 |
|
882 |
+
#: admin/models/polls.php:973
|
883 |
msgid "Data for \"Buttons Border Radius\" is invalid"
|
884 |
msgstr ""
|
885 |
|
886 |
+
#: admin/models/polls.php:982
|
887 |
msgid "Data for \"Buttons Padding Left/Right\" is invalid"
|
888 |
msgstr ""
|
889 |
|
890 |
+
#: admin/models/polls.php:991
|
891 |
msgid "Data for \"Buttons Padding Top/Bottom\" is invalid"
|
892 |
msgstr ""
|
893 |
|
894 |
+
#: admin/models/polls.php:1000 admin/models/polls.php:1063
|
895 |
msgid "Data for \"Buttons Text Color\" is invalid"
|
896 |
msgstr ""
|
897 |
|
898 |
+
#: admin/models/polls.php:1008
|
899 |
msgid "Data for \"Buttons Text Size\" is invalid"
|
900 |
msgstr ""
|
901 |
|
902 |
+
#: admin/models/polls.php:1017
|
903 |
msgid "Data for \"Buttons Text Weight\" is invalid"
|
904 |
msgstr ""
|
905 |
|
906 |
+
#: admin/models/polls.php:1027
|
907 |
msgid "Data for \"Messages Border Color For Success\" is invalid"
|
908 |
msgstr ""
|
909 |
|
910 |
+
#: admin/models/polls.php:1036
|
911 |
msgid "Data for \"Messages Border Color For Error\" is invalid"
|
912 |
msgstr ""
|
913 |
|
914 |
+
#: admin/models/polls.php:1045
|
915 |
msgid "Data for \"Messages Border Left Thickness\" is invalid"
|
916 |
msgstr ""
|
917 |
|
918 |
+
#: admin/models/polls.php:1054
|
919 |
msgid "Data for \"Messages Padding Top/Bottom\" is invalid"
|
920 |
msgstr ""
|
921 |
|
922 |
+
#: admin/models/polls.php:1071
|
923 |
msgid "Data for \"Messages Text Size\" is invalid"
|
924 |
msgstr ""
|
925 |
|
926 |
+
#: admin/models/polls.php:1080
|
927 |
msgid "Data for \"Messages Text Weight\" is invalid"
|
928 |
msgstr ""
|
929 |
|
930 |
+
#: admin/models/polls.php:1088
|
931 |
msgid "No elements present"
|
932 |
msgstr ""
|
933 |
|
934 |
+
#: admin/models/polls.php:1102
|
935 |
msgid "Data for \"Question\" is invalid"
|
936 |
msgstr ""
|
937 |
|
938 |
+
#: admin/models/polls.php:1109
|
939 |
msgid "At least one answer per question is required"
|
940 |
msgstr ""
|
941 |
|
942 |
+
#: admin/models/polls.php:1123
|
943 |
msgid "Answer text is invalid"
|
944 |
msgstr ""
|
945 |
|
946 |
+
#: admin/models/polls.php:1130
|
947 |
msgid "Data for default answer is invalid"
|
948 |
msgstr ""
|
949 |
|
950 |
+
#: admin/models/polls.php:1137
|
951 |
msgid " Data for \"Answer Link\" is invalid"
|
952 |
msgstr ""
|
953 |
|
954 |
+
#: admin/models/polls.php:1147
|
955 |
msgid "Data for \"Answer link\" is invalid"
|
956 |
msgstr ""
|
957 |
|
958 |
+
#: admin/models/polls.php:1156
|
959 |
msgid "Data for \"Allow other options\" is invalid"
|
960 |
msgstr ""
|
961 |
|
962 |
+
#: admin/models/polls.php:1166
|
963 |
msgid "Data for \"Label for Other Answers\" is invalid"
|
964 |
msgstr ""
|
965 |
|
966 |
+
#: admin/models/polls.php:1173
|
967 |
msgid "Data for \"Add other answers in answer list\" is invalid"
|
968 |
msgstr ""
|
969 |
|
970 |
+
#: admin/models/polls.php:1180
|
971 |
msgid "Data for \"Display other answers in results list\" is invalid"
|
972 |
msgstr ""
|
973 |
|
974 |
+
#: admin/models/polls.php:1187
|
975 |
msgid "Data for \"Allow multiple answers \" is invalid"
|
976 |
msgstr ""
|
977 |
|
978 |
+
#: admin/models/polls.php:1195 admin/models/polls.php:1210
|
979 |
+
#: admin/models/settings.php:638
|
980 |
msgid "Data for \"Minimum answers required\" is invalid"
|
981 |
msgstr ""
|
982 |
|
983 |
+
#: admin/models/polls.php:1203 admin/models/polls.php:1227
|
984 |
+
#: admin/models/settings.php:646
|
985 |
msgid "Data for \"Maximum answers required\" is invalid"
|
986 |
msgstr ""
|
987 |
|
988 |
+
#: admin/models/polls.php:1217
|
989 |
msgid "Data for \"Display answers\" is invalid"
|
990 |
msgstr ""
|
991 |
|
992 |
+
#: admin/models/polls.php:1234
|
993 |
msgid "Data for \"Sort Answers\" is invalid"
|
994 |
msgstr ""
|
995 |
|
996 |
+
#: admin/models/polls.php:1247
|
997 |
msgid "Data for \"Custom Field\" is invalid"
|
998 |
msgstr ""
|
999 |
|
1000 |
+
#: admin/models/polls.php:1254
|
1001 |
msgid "Data for \"Make Required\" is invalid"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
+
#: admin/models/polls.php:1273
|
1005 |
msgid "Data for \"Vote Button Label\" is invalid"
|
1006 |
msgstr ""
|
1007 |
|
1008 |
+
#: admin/models/polls.php:1280
|
1009 |
msgid "Data for \"Show [Results] link\" is invalid"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
+
#: admin/models/polls.php:1291
|
1013 |
msgid "Data for \"[Results] Link Label\" is invalid"
|
1014 |
msgstr ""
|
1015 |
|
1016 |
+
#: admin/models/polls.php:1298
|
1017 |
msgid "Data for \"Show Total Votes\" is invalid"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
+
#: admin/models/polls.php:1305
|
1021 |
msgid "Data for \"Show Total Answers\" is invalid"
|
1022 |
msgstr ""
|
1023 |
|
1024 |
+
#: admin/models/polls.php:1312 admin/models/polls.php:1321
|
1025 |
msgid "Data for \"Start Date\" is invalid"
|
1026 |
msgstr ""
|
1027 |
|
1028 |
+
#: admin/models/polls.php:1328 admin/models/polls.php:1337
|
1029 |
msgid "Data for \"End Date\" is invalid"
|
1030 |
msgstr ""
|
1031 |
|
1032 |
+
#: admin/models/polls.php:1344
|
1033 |
msgid "Data for \"Redirect after vote\" is invalid"
|
1034 |
msgstr ""
|
1035 |
|
1036 |
+
#: admin/models/polls.php:1355
|
1037 |
msgid "Data for \"Redirect Url\" is invalid"
|
1038 |
msgstr ""
|
1039 |
|
1040 |
+
#: admin/models/polls.php:1362
|
1041 |
msgid "Data for \"Reset Poll Stats automatically\" is invalid"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
+
#: admin/models/polls.php:1369
|
1045 |
msgid "Data for \"Reset Every\" is invalid"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
+
#: admin/models/polls.php:1376
|
1049 |
msgid "Data for \"Auto Generate Poll Page\" is invalid"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
+
#: admin/models/polls.php:1383
|
1053 |
msgid "Data for \"Use Captcha\" is invalid"
|
1054 |
msgstr ""
|
1055 |
|
1056 |
+
#: admin/models/polls.php:1390
|
1057 |
msgid "Data for \"Send Email notifications\" is invalid"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
+
#: admin/models/polls.php:1399
|
1061 |
msgid "Data for \"From Name\" is invalid"
|
1062 |
msgstr ""
|
1063 |
|
1064 |
+
#: admin/models/polls.php:1408
|
1065 |
msgid "Data for \"From Email\" is invalid"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
+
#: admin/models/polls.php:1417
|
1069 |
msgid "Data for \"Recipients\" is invalid"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
+
#: admin/models/polls.php:1426
|
1073 |
msgid "Data for \"Subject\" is invalid"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
+
#: admin/models/polls.php:1435
|
1077 |
msgid "Data for \"Message\" is invalid"
|
1078 |
msgstr ""
|
1079 |
|
1080 |
+
#: admin/models/polls.php:1444
|
1081 |
msgid "Data for \"Show results\" is invalid"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
+
#: admin/models/polls.php:1453
|
1085 |
msgid "Data for \"Show Results\" is invalid"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
+
#: admin/models/polls.php:1462
|
1089 |
msgid "Data for \"Show results to\" is invalid"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: admin/models/polls.php:1469
|
1093 |
msgid "Data for \"Display [Back to vote] link\" is invalid"
|
1094 |
msgstr ""
|
1095 |
|
1096 |
+
#: admin/models/polls.php:1480
|
1097 |
msgid "Data for \"[Back to vote] caption\" is invalid"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
+
#: admin/models/polls.php:1487
|
1101 |
msgid "Data for \"Sort Results\" is invalid"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
+
#: admin/models/polls.php:1495
|
1105 |
msgid "Data for \"Sort rule\" is invalid"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
+
#: admin/models/polls.php:1502
|
1109 |
msgid "Data for \"Display Results As\""
|
1110 |
msgstr ""
|
1111 |
|
1112 |
+
#: admin/models/polls.php:1510
|
1113 |
msgid "Data for \"Vote Permissions\" is invalid"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
+
#: admin/models/polls.php:1527
|
1117 |
msgid "Data for \"Block Voters\" is invalid"
|
1118 |
msgstr ""
|
1119 |
|
1120 |
+
#: admin/models/polls.php:1539
|
1121 |
msgid "Data for \"Block Period\" is invalid"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
+
#: admin/models/polls.php:1546
|
1125 |
msgid "Data for \"Limit Number Of Votes per User\" is invalid"
|
1126 |
msgstr ""
|
1127 |
|
1128 |
+
#: admin/models/polls.php:1554
|
1129 |
msgid "Data for \"Votes per user\" is invalid"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: admin/models/polls.php:2373
|
1133 |
msgid "Number of votes for each question should be the same"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: admin/models/polls.php:2377 admin/views/settings/view.php:397
|
1137 |
msgid "Invalid Poll"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: admin/models/settings.php:492
|
1141 |
msgid "Data for \"Use Google reCaptcha\" is invalid"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: admin/models/settings.php:497 admin/models/settings.php:507
|
1145 |
+
#: admin/models/settings.php:517
|
1146 |
msgid "Data for \"Site Key\" is invalid"
|
1147 |
msgstr ""
|
1148 |
|
1149 |
+
#: admin/models/settings.php:501 admin/models/settings.php:511
|
1150 |
+
#: admin/models/settings.php:521
|
1151 |
msgid "Data for \"Secret Key\" is invalid"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
+
#: admin/models/settings.php:525
|
1155 |
msgid "Data for \"Min Allowed Score\" is invalid"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
+
#: admin/models/settings.php:534
|
1159 |
msgid "Data for \"Use Facebook integration\" is invalid"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
+
#: admin/models/settings.php:539 admin/models/settings.php:553
|
1163 |
msgid "Data for \"App ID\" is invalid"
|
1164 |
msgstr ""
|
1165 |
|
1166 |
+
#: admin/models/settings.php:548
|
1167 |
msgid "Data for \"Use Google integration\" is invalid"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: admin/models/settings.php:557
|
1171 |
msgid "Data for \"App Secret\" is invalid"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
+
#: admin/models/settings.php:566
|
1175 |
msgid "Data for \"Vote as anonymous\" is invalid"
|
1176 |
msgstr ""
|
1177 |
|
1178 |
+
#: admin/models/settings.php:574
|
1179 |
msgid "Data for \"Vote with your WordPress account\" is invalid"
|
1180 |
msgstr ""
|
1181 |
|
1182 |
+
#: admin/models/settings.php:582
|
1183 |
msgid "Data for \"Vote with your Facebook account\" is invalid"
|
1184 |
msgstr ""
|
1185 |
|
1186 |
+
#: admin/models/settings.php:590
|
1187 |
msgid "Data for \"Vote with your Google account\" is invalid"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
+
#: admin/models/settings.php:598
|
1191 |
msgid "Data for \"Poll Ended\" is invalid"
|
1192 |
msgstr ""
|
1193 |
|
1194 |
+
#: admin/models/settings.php:606
|
1195 |
msgid "Data for \"Poll Not Started\" is invalid"
|
1196 |
msgstr ""
|
1197 |
|
1198 |
+
#: admin/models/settings.php:614
|
1199 |
msgid "Data for \"Already voted on poll\" is invalid"
|
1200 |
msgstr ""
|
1201 |
|
1202 |
+
#: admin/models/settings.php:622
|
1203 |
msgid "Data for \"Invalid Poll\" is invalid"
|
1204 |
msgstr ""
|
1205 |
|
1206 |
+
#: admin/models/settings.php:630
|
1207 |
msgid "Data for \"No Answer(s) selected\" is invalid"
|
1208 |
msgstr ""
|
1209 |
|
1210 |
+
#: admin/models/settings.php:654
|
1211 |
msgid "Data for \"No value for other\" is invalid"
|
1212 |
msgstr ""
|
1213 |
|
1214 |
+
#: admin/models/settings.php:662
|
1215 |
msgid "Data for \"No value for custom field\" is invalid"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
+
#: admin/models/settings.php:670
|
1219 |
msgid "Data for \"Consent not checked\" is invalid"
|
1220 |
msgstr ""
|
1221 |
|
1222 |
+
#: admin/models/settings.php:678
|
1223 |
msgid "Data for \"Captcha missing\" is invalid"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
+
#: admin/models/settings.php:686
|
1227 |
msgid "Data for \"Vote not allowed by ban setting\" is invalid"
|
1228 |
msgstr ""
|
1229 |
|
1230 |
+
#: admin/models/settings.php:694
|
1231 |
msgid "Data for \"Vote not allowed by block setting\" is invalid"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
+
#: admin/models/settings.php:702
|
1235 |
msgid "Data for \"Vote not allowed by limit setting\" is invalid"
|
1236 |
msgstr ""
|
1237 |
|
1238 |
+
#: admin/models/settings.php:710
|
1239 |
msgid "Data for \"Thank you for your vote\" is invalid"
|
1240 |
msgstr ""
|
1241 |
|
1242 |
+
#: admin/models/settings.php:718
|
1243 |
msgid "Data for \"Single Vote\" is invalid"
|
1244 |
msgstr ""
|
1245 |
|
1246 |
+
#: admin/models/settings.php:726
|
1247 |
msgid "Data for \"Multiple Votes\" is invalid"
|
1248 |
msgstr ""
|
1249 |
|
1250 |
+
#: admin/models/settings.php:734
|
1251 |
msgid "Data for \"Single Answer\" is invalid"
|
1252 |
msgstr ""
|
1253 |
|
1254 |
+
#: admin/models/settings.php:742
|
1255 |
msgid "Data for \"Multiple Answers\" is invalid"
|
1256 |
msgstr ""
|
1257 |
|
1258 |
+
#: admin/models/settings.php:750
|
1259 |
msgid "Data for \"Accessibility Alt\" is invalid"
|
1260 |
msgstr ""
|
1261 |
|
1262 |
+
#: admin/models/settings.php:758
|
1263 |
msgid "Data for \"Accessibility Title\" is invalid"
|
1264 |
msgstr ""
|
1265 |
|
1266 |
+
#: admin/models/settings.php:766
|
1267 |
msgid "Data for \"Accessibility Description\" is invalid"
|
1268 |
msgstr ""
|
1269 |
|
1270 |
+
#: admin/models/settings.php:774
|
1271 |
msgid "Data for \"Accessibility Explanation\" is invalid"
|
1272 |
msgstr ""
|
1273 |
|
1274 |
+
#: admin/models/settings.php:782
|
1275 |
msgid "Data for \"Refresh Alt\" is invalid"
|
1276 |
msgstr ""
|
1277 |
|
1278 |
+
#: admin/models/settings.php:790
|
1279 |
msgid "Data for \"Refresh Title\" is invalid"
|
1280 |
msgstr ""
|
1281 |
|
1293 |
msgid "Invalid answer id"
|
1294 |
msgstr ""
|
1295 |
|
1296 |
+
#: admin/models/votes.php:1386
|
1297 |
msgid "Poll Name"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
+
#: admin/models/votes.php:1395
|
1301 |
msgid "Custom field - "
|
1302 |
msgstr ""
|
1303 |
|
1304 |
+
#: admin/models/votes.php:1445 admin/models/votes.php:1476
|
1305 |
msgid "Can't write votes!"
|
1306 |
msgstr ""
|
1307 |
|
public/assets/css/{yop-poll-public-6.3.2.css → yop-poll-public-6.3.3.css}
RENAMED
File without changes
|
public/assets/js/{yop-poll-public-6.3.2.min.js → yop-poll-public-6.3.3.min.js}
RENAMED
File without changes
|
public/inc/basic.php
CHANGED
@@ -372,7 +372,7 @@ class YOP_Poll_Basic {
|
|
372 |
. ' font-weight:' . esc_html( $poll_meta_data['style']['questions']['textWeight'] ) . ';'
|
373 |
. ' text-align:' . esc_html( $poll_meta_data['style']['questions']['textAlign'] ) . ';'
|
374 |
. '">'
|
375 |
-
.
|
376 |
. '</h5>'
|
377 |
. '</div>'
|
378 |
. $element_answers
|
@@ -639,7 +639,7 @@ class YOP_Poll_Basic {
|
|
639 |
. ' font-size:' . esc_html( $poll_meta_data['style']['questions']['textSize'] ) . 'px;'
|
640 |
. ' font-weight:' . esc_html( $poll_meta_data['style']['questions']['textWeight'] ) . ';'
|
641 |
. '">'
|
642 |
-
.
|
643 |
. '</label>'
|
644 |
. '</div>'
|
645 |
. '<div class="col-md-6 col-sm-12 col-xs-12">'
|
372 |
. ' font-weight:' . esc_html( $poll_meta_data['style']['questions']['textWeight'] ) . ';'
|
373 |
. ' text-align:' . esc_html( $poll_meta_data['style']['questions']['textAlign'] ) . ';'
|
374 |
. '">'
|
375 |
+
. YOP_Poll_Helper::replace_tags( $element->etext )
|
376 |
. '</h5>'
|
377 |
. '</div>'
|
378 |
. $element_answers
|
639 |
. ' font-size:' . esc_html( $poll_meta_data['style']['questions']['textSize'] ) . 'px;'
|
640 |
. ' font-weight:' . esc_html( $poll_meta_data['style']['questions']['textWeight'] ) . ';'
|
641 |
. '">'
|
642 |
+
. YOP_Poll_Helper::replace_tags( $element->etext )
|
643 |
. '</label>'
|
644 |
. '</div>'
|
645 |
. '<div class="col-md-6 col-sm-12 col-xs-12">'
|
public/public.php
CHANGED
@@ -99,21 +99,73 @@ class YOP_Poll_Public {
|
|
99 |
'refreshTitle' => esc_html( $plugin_settings_decoded['messages']['captcha']['refresh-title'] )
|
100 |
),
|
101 |
'voteParams' => array(
|
102 |
-
'invalidPoll' =>
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
'
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
),
|
112 |
'resultsParams'=> array(
|
113 |
-
'singleVote' =>
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
)
|
118 |
)
|
119 |
));
|
@@ -142,7 +194,8 @@ class YOP_Poll_Public {
|
|
142 |
array(
|
143 |
'max' => 0,
|
144 |
'sort' => 'date_added',
|
145 |
-
'sortdir' => 'asc'
|
|
|
146 |
),
|
147 |
$atts, 'yop_poll_archive'
|
148 |
);
|
@@ -261,17 +314,20 @@ class YOP_Poll_Public {
|
|
261 |
}
|
262 |
}
|
263 |
$limit = '';
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
|
|
|
|
|
|
|
|
273 |
}
|
274 |
-
$polls = $GLOBALS['wpdb']->get_results( $query_ready, ARRAY_A );
|
275 |
$content = '';
|
276 |
if ( count( $polls ) > 0 ) {
|
277 |
foreach ( $polls as $poll ) {
|
99 |
'refreshTitle' => esc_html( $plugin_settings_decoded['messages']['captcha']['refresh-title'] )
|
100 |
),
|
101 |
'voteParams' => array(
|
102 |
+
'invalidPoll' => str_replace(
|
103 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
104 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
105 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['invalid-poll'] )
|
106 |
+
),
|
107 |
+
'noAnswersSelected' => str_replace(
|
108 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
109 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
110 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['no-answers-selected'] )
|
111 |
+
),
|
112 |
+
'minAnswersRequired' => str_replace(
|
113 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
114 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
115 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['min-answers-required'] )
|
116 |
+
),
|
117 |
+
'maxAnswersRequired' => str_replace(
|
118 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
119 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
120 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['max-answers-required'] )
|
121 |
+
),
|
122 |
+
'noAnswerForOther' => str_replace(
|
123 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
124 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
125 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['no-answer-for-other'] )
|
126 |
+
),
|
127 |
+
'noValueForCustomField' => str_replace(
|
128 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
129 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
130 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['no-value-for-custom-field'] )
|
131 |
+
),
|
132 |
+
'consentNotChecked' => str_replace(
|
133 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
134 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
135 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['consent-not-checked'] )
|
136 |
+
),
|
137 |
+
'noCaptchaSelected' => str_replace(
|
138 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
139 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
140 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['no-captcha-selected'] )
|
141 |
+
),
|
142 |
+
'thankYou' => str_replace(
|
143 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
144 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
145 |
+
esc_html( $plugin_settings_decoded['messages']['voting']['thank-you'] )
|
146 |
+
)
|
147 |
),
|
148 |
'resultsParams'=> array(
|
149 |
+
'singleVote' => str_replace(
|
150 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
151 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
152 |
+
esc_html( $plugin_settings_decoded['messages']['results']['single-vote'] )
|
153 |
+
),
|
154 |
+
'multipleVotes' => str_replace(
|
155 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
156 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
157 |
+
esc_html( $plugin_settings_decoded['messages']['results']['multiple-votes'] )
|
158 |
+
),
|
159 |
+
'singleAnswer' => str_replace(
|
160 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
161 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
162 |
+
esc_html( $plugin_settings_decoded['messages']['results']['single-answer'] )
|
163 |
+
),
|
164 |
+
'multipleAnswers' => str_replace(
|
165 |
+
array( '[strong]', '[/strong]', '[i]', '[/i]', '[u]', '[/u]', '[br]' ),
|
166 |
+
array( '<strong>', '</strong>', '<i>', '</i>', '<u>', '</u>', '</br>' ),
|
167 |
+
esc_html( $plugin_settings_decoded['messages']['results']['multiple-answers'] )
|
168 |
+
)
|
169 |
)
|
170 |
)
|
171 |
));
|
194 |
array(
|
195 |
'max' => 0,
|
196 |
'sort' => 'date_added',
|
197 |
+
'sortdir' => 'asc',
|
198 |
+
'show' => 'all'
|
199 |
),
|
200 |
$atts, 'yop_poll_archive'
|
201 |
);
|
314 |
}
|
315 |
}
|
316 |
$limit = '';
|
317 |
+
switch ( $params['show'] ) {
|
318 |
+
case 'all': {
|
319 |
+
$polls = YOP_Poll_Polls::get_all_polls_for_archive( $params, $order_by );
|
320 |
+
break;
|
321 |
+
}
|
322 |
+
case 'active': {
|
323 |
+
$polls = YOP_Poll_Polls::get_active_polls_for_archive( $params, $order_by );
|
324 |
+
break;
|
325 |
+
}
|
326 |
+
case 'ended': {
|
327 |
+
$polls = YOP_Poll_Polls::get_ended_polls_for_archive( $params, $order_by );
|
328 |
+
break;
|
329 |
+
}
|
330 |
}
|
|
|
331 |
$content = '';
|
332 |
if ( count( $polls ) > 0 ) {
|
333 |
foreach ( $polls as $poll ) {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: yourownprogrammer
|
|
3 |
Donate Link: https://www.yop-poll.com
|
4 |
Tags: booth, create poll, poll plugin, poll, polls, wordpress poll, vote, voting, survey, polling, yop poll, yop
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 5.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.htm
|
@@ -119,6 +119,14 @@ You can have only one question per poll.
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
= 6.3.2 =
|
123 |
* fixed issue with migrating polls from versions lower than 6.0.0
|
124 |
|
3 |
Donate Link: https://www.yop-poll.com
|
4 |
Tags: booth, create poll, poll plugin, poll, polls, wordpress poll, vote, voting, survey, polling, yop poll, yop
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 5.9
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.htm
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
= 6.3.3 =
|
123 |
+
* fixed XSS bugs
|
124 |
+
* fixed issue with validating email addresses when sending notifications for votes
|
125 |
+
* added tags for messages - [strong][/strong], [u][/u], [i][/i], [br]
|
126 |
+
* added tags for elements - [strong][/strong], [u][/u], [i][/i], [br]
|
127 |
+
* added support for links in the consent text
|
128 |
+
* added new option for yop_poll_archive shortcode. Now it supports displaying only polls that accept votes. Usage - [yop_poll_archive sort=date_added/num_votes sortdir=asc/desc max=0/number-desired show=active/ended/all]
|
129 |
+
|
130 |
= 6.3.2 =
|
131 |
* fixed issue with migrating polls from versions lower than 6.0.0
|
132 |
|
yop_poll.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: YOP Poll
|
4 |
Plugin URI: https://yop-poll.com
|
5 |
Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use poll plugin for your WordPress website.
|
6 |
-
Version: 6.3.
|
7 |
Author: yourownprogrammer
|
8 |
Author URI: https://yop-poll.com
|
9 |
License: GPL2
|
@@ -11,7 +11,7 @@ License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
11 |
Domain Path: /languages
|
12 |
Text Domain: yop-poll
|
13 |
*/
|
14 |
-
define ( 'YOP_POLL_VERSION', '6.3.
|
15 |
define ( 'YOP_POLL_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define ( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
|
17 |
define ( 'YOP_POLL_TEST_MODE', false );
|
3 |
Plugin Name: YOP Poll
|
4 |
Plugin URI: https://yop-poll.com
|
5 |
Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use poll plugin for your WordPress website.
|
6 |
+
Version: 6.3.3
|
7 |
Author: yourownprogrammer
|
8 |
Author URI: https://yop-poll.com
|
9 |
License: GPL2
|
11 |
Domain Path: /languages
|
12 |
Text Domain: yop-poll
|
13 |
*/
|
14 |
+
define ( 'YOP_POLL_VERSION', '6.3.3' );
|
15 |
define ( 'YOP_POLL_URL', plugin_dir_url( __FILE__ ) );
|
16 |
define ( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
|
17 |
define ( 'YOP_POLL_TEST_MODE', false );
|