Version Description
Download this release
Release Info
Developer | GamerZ |
Plugin | WP-Polls |
Version | 2.40 |
Comparing to | |
See all releases |
Code changes from version 2.31 to 2.40
- images/poll.png +0 -0
- images/poll_admin_icon.png +0 -0
- polls-add.php +4 -3
- polls-admin-ajax.php +1 -1
- polls-admin-css.css +31 -0
- polls-admin-js-packed.js +1 -1
- polls-admin-js.js +1 -16
- polls-css-rtl.css +29 -0
- polls-css.css +1 -12
- polls-js.js +1 -1
- polls-logs.php +14 -13
- polls-manager.php +18 -14
- polls-options.php +17 -14
- polls-templates.php +110 -109
- polls-uninstall.php +6 -4
- readme.html +31 -11
- readme.txt +2 -2
- tinymce/plugins/polls/editor_plugin.js +1 -1
- wp-polls-widget.php +6 -6
- wp-polls.mo +0 -0
- wp-polls.php +133 -108
- wp-polls.pot +402 -390
images/poll.png
ADDED
Binary file
|
images/poll_admin_icon.png
ADDED
Binary file
|
polls-add.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
@@ -171,6 +171,7 @@ $count = 0;
|
|
171 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } ?>
|
172 |
<form action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" method="post">
|
173 |
<div class="wrap">
|
|
|
174 |
<h2><?php _e('Add Poll', 'wp-polls'); ?></h2>
|
175 |
<!-- Poll Question -->
|
176 |
<h3><?php _e('Poll Question', 'wp-polls'); ?></h3>
|
@@ -193,7 +194,7 @@ $count = 0;
|
|
193 |
<?php
|
194 |
for($i = 1; $i <= $poll_noquestion; $i++) {
|
195 |
echo "<tr id=\"poll-answer-$i\">\n";
|
196 |
-
echo "<th width=\"20%\" scope=\"row\" valign=\"top\">".sprintf(__('Answer %s', 'wp-polls'), $i)."</th>\n";
|
197 |
echo "<td width=\"80%\"><input type=\"text\" size=\"50\" name=\"polla_answers[]\" /></td>\n";
|
198 |
echo "</tr>\n";
|
199 |
$count++;
|
@@ -219,7 +220,7 @@ $count = 0;
|
|
219 |
<select name="pollq_multiple" id="pollq_multiple" size="1" disabled="disabled">
|
220 |
<?php
|
221 |
for($i = 1; $i <= $poll_noquestion; $i++) {
|
222 |
-
echo "<option value=\"$i\"
|
223 |
}
|
224 |
?>
|
225 |
</select>
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
171 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } ?>
|
172 |
<form action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" method="post">
|
173 |
<div class="wrap">
|
174 |
+
<div id="icon-wp-polls" class="icon32"><br /></div>
|
175 |
<h2><?php _e('Add Poll', 'wp-polls'); ?></h2>
|
176 |
<!-- Poll Question -->
|
177 |
<h3><?php _e('Poll Question', 'wp-polls'); ?></h3>
|
194 |
<?php
|
195 |
for($i = 1; $i <= $poll_noquestion; $i++) {
|
196 |
echo "<tr id=\"poll-answer-$i\">\n";
|
197 |
+
echo "<th width=\"20%\" scope=\"row\" valign=\"top\">".sprintf(__('Answer %s', 'wp-polls'), number_format_i18n($i))."</th>\n";
|
198 |
echo "<td width=\"80%\"><input type=\"text\" size=\"50\" name=\"polla_answers[]\" /></td>\n";
|
199 |
echo "</tr>\n";
|
200 |
$count++;
|
220 |
<select name="pollq_multiple" id="pollq_multiple" size="1" disabled="disabled">
|
221 |
<?php
|
222 |
for($i = 1; $i <= $poll_noquestion; $i++) {
|
223 |
+
echo "<option value=\"$i\">".number_format_i18n($i)."</option>\n";
|
224 |
}
|
225 |
?>
|
226 |
</select>
|
polls-admin-ajax.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
polls-admin-css.css
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
+----------------------------------------------------------------+
|
3 |
+
| |
|
4 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
5 |
+
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
+
| |
|
7 |
+
| File Written By: |
|
8 |
+
| - Lester "GaMerZ" Chan |
|
9 |
+
| - http://lesterchan.net |
|
10 |
+
| |
|
11 |
+
| File Information: |
|
12 |
+
| - Polls Admin CSS File |
|
13 |
+
| - wp-content/plugins/wp-polls/polls-admin-css.css |
|
14 |
+
| |
|
15 |
+
+----------------------------------------------------------------+
|
16 |
+
*/
|
17 |
+
|
18 |
+
|
19 |
+
#wp-polls-pollbar-bg {
|
20 |
+
width: 25px;
|
21 |
+
height: 25px;
|
22 |
+
border: 1px solid #000000;
|
23 |
+
}
|
24 |
+
#wp-polls-pollbar-border {
|
25 |
+
width: 25px;
|
26 |
+
height: 25px;
|
27 |
+
border: 1px solid #000000;
|
28 |
+
}
|
29 |
+
#icon-wp-polls {
|
30 |
+
background: transparent url(images/poll_admin_icon.png) no-repeat;
|
31 |
+
}
|
polls-admin-js-packed.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('
|
1 |
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('q 1=12 13(14);q e=0;q r=0;q x=0;4 A(){2.3(\'6\').7.8="f";B("C()",D)}4 C(){2.3("15").E(2.3("F-"+e))}4 16(a,b){G=g(b);9(G){e=a;1.h();1.5("i",17);1.5("o",a);1.j=\'k\';1.l=\'6\';1.m=A;1.n()}}4 H(){2.3(\'6\').7.8="f";2.3("I").s=J}4 18(a){t=g(a);9(t){9(2.3("u").K==L){1.h();1.5("i",19);1.5("u","M");1.j=\'k\';1.l=\'6\';1.m=H;1.n()}N{O(1a)}}}4 P(){2.3(\'6\').7.8="f";2.3("I").s=J;2.3("1b").7.8=\'y\';2.3("1c").7.8=\'f\'}4 1d(a,b){t=g(b);9(t){9(2.3("u").K==L){e=a;1.h();1.5("i",1e);1.5("u","M");1.5("o",a);1.j=\'k\';1.l=\'6\';1.m=P;1.n()}N{O(1f)}}}4 Q(){2.3(\'6\').7.8="f";B("R()",D);2.3(\'v\').s=(p(2.3(\'v\').s)-p(x));v=p(2.3(\'S\').z);T=p(2.3("1g-"+r).z);w=(v-T);9(w<0){w=0}2.3(\'S\').z=p(w)}4 R(){2.3("1h").E(2.3("F-1i-"+r))}4 1j(a,b,c,d){U=g(d);9(U){e=a;r=b;x=c;1.h();1.5("i",1k);1.5("o",a);1.5("1l",b);1.j=\'k\';1.l=\'6\';1.m=Q;1.n()}}4 V(){2.3(\'6\').7.8="f";2.3("W").7.8="y";2.3("X").7.8="Y"}4 1m(a,b){Z=g(b);9(Z){e=a;1.h();1.5("i",1n);1.5("o",a);1.j=\'k\';1.l=\'6\';1.m=V;1.n()}}4 10(){2.3(\'6\').7.8="f";2.3("W").7.8="Y";2.3("X").7.8="y"}4 1o(a,b){11=g(b);9(11){e=a;1.h();1.5("i",1p);1.5("o",a);1.j=\'k\';1.l=\'6\';1.m=10;1.n()}}',62,88,'|polls_admin|document|getElementById|function|setVar|message|style|display|if|||||global_poll_id|block|confirm|reset|do|method|POST|element|onCompletion|runAJAX|pollq_id|parseInt|var|global_poll_aid|innerHTML|delete_poll_logs_confirm|delete_logs_yes|poll_total_votes|poll_total_votes_new|global_poll_aid_votes|none|value|delete_poll_message|setTimeout|remove_poll|1000|removeChild|poll|delete_poll_confirm|delete_poll_logs_message|poll_logs|polls_admin_text_no_poll_logs|checked|true|yes|else|alert|delete_this_poll_logs_message|delete_poll_ans_message|remove_poll_ans|pollq_totalvotes|poll_answer_vote|delete_poll_ans_confirm|opening_poll_message|open_poll|close_poll|inline|open_poll_confirm|closing_poll_message|close_poll_confirm|new|sack|polls_admin_ajax_url|manage_polls|delete_poll|polls_admin_text_delete_poll|delete_poll_logs|polls_admin_text_delete_all_logs|polls_admin_text_checkbox_delete_all_logs|poll_logs_display|poll_logs_display_none|delete_this_poll_logs|polls_admin_text_delete_poll_logs|polls_admin_text_checkbox_delete_poll_logs|polla_votes|poll_answers|answer|delete_poll_ans|polls_admin_text_delete_poll_ans|polla_aid|opening_poll|polls_admin_text_open_poll|closing_poll|polls_admin_text_close_poll'.split('|'),0,{}))
|
polls-admin-js.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
-
| WordPress 2.
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
@@ -178,19 +178,4 @@ function closing_poll(poll_id, poll_confirm) {
|
|
178 |
polls_admin.onCompletion = closing_poll_message;
|
179 |
polls_admin.runAJAX();
|
180 |
}
|
181 |
-
}
|
182 |
-
|
183 |
-
// Function: Insert Poll Quick Tag
|
184 |
-
function insertPoll(where, myField) {
|
185 |
-
var poll_id = prompt(polls_admin_text_enter_poll_id);
|
186 |
-
while(isNaN(poll_id)) {
|
187 |
-
poll_id = prompt(polls_admin_text_enter_poll_id_again);
|
188 |
-
}
|
189 |
-
if (poll_id > 0) {
|
190 |
-
if(where == 'code') {
|
191 |
-
edInsertContent(myField, '[poll id="' + poll_id + '"]');
|
192 |
-
} else {
|
193 |
-
return '[poll id="' + poll_id + '"]';
|
194 |
-
}
|
195 |
-
}
|
196 |
}
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
178 |
polls_admin.onCompletion = closing_poll_message;
|
179 |
polls_admin.runAJAX();
|
180 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
}
|
polls-css-rtl.css
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
+----------------------------------------------------------------+
|
3 |
+
| |
|
4 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
5 |
+
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
+
| |
|
7 |
+
| File Written By: |
|
8 |
+
| - Lester "GaMerZ" Chan |
|
9 |
+
| - http://lesterchan.net |
|
10 |
+
| |
|
11 |
+
| File Information: |
|
12 |
+
| - Polls CSS File (RTL) |
|
13 |
+
| - wp-content/plugins/wp-polls/polls-css.css |
|
14 |
+
| |
|
15 |
+
+----------------------------------------------------------------+
|
16 |
+
*/
|
17 |
+
|
18 |
+
|
19 |
+
.wp-polls ul li, wp-polls-ul li, .wp-polls-ans ul li {
|
20 |
+
text-align: right;
|
21 |
+
}
|
22 |
+
|
23 |
+
.wp-polls ul, .wp-polls-ul, .wp-polls-ans ul {
|
24 |
+
text-align: right;
|
25 |
+
}
|
26 |
+
|
27 |
+
.wp-polls-ul {
|
28 |
+
margin: 0px 10px 10px 0px;
|
29 |
+
}
|
polls-css.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
-
| WordPress 2.
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
@@ -115,15 +115,4 @@
|
|
115 |
border: 1px solid #000000;
|
116 |
color: #000000;
|
117 |
background-color: #FFFFFF;
|
118 |
-
}
|
119 |
-
/* Styles Used In WP-Admin */
|
120 |
-
#wp-polls-pollbar-bg {
|
121 |
-
width: 25px;
|
122 |
-
height: 25px;
|
123 |
-
border: 1px solid #000000;
|
124 |
-
}
|
125 |
-
#wp-polls-pollbar-border {
|
126 |
-
width: 25px;
|
127 |
-
height: 25px;
|
128 |
-
border: 1px solid #000000;
|
129 |
}
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
115 |
border: 1px solid #000000;
|
116 |
color: #000000;
|
117 |
background-color: #FFFFFF;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
}
|
polls-js.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
-
| WordPress 2.
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
1 |
/*
|
2 |
+----------------------------------------------------------------+
|
3 |
| |
|
4 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
5 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
6 |
| |
|
7 |
| File Written By: |
|
polls-logs.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
@@ -120,18 +120,19 @@ if(!empty($_POST['do'])) {
|
|
120 |
?>
|
121 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } else { echo '<div id="message" class="updated" style="display: none;"></div>'; } ?>
|
122 |
<div class="wrap">
|
|
|
123 |
<h2><?php _e('Poll\'s Logs', 'wp-polls'); ?></h2>
|
124 |
<h3><?php echo $poll_question; ?></h3>
|
125 |
<p>
|
126 |
-
<?php printf(__ngettext('There are a total of <strong>%s</strong> recorded vote for this poll.', 'There are a total of <strong>%s</strong> recorded votes for this poll.',
|
127 |
-
<?php printf(__ngettext('<strong>»</strong> <strong>%s</strong> vote is casted by registered users', '<strong>»</strong> <strong>%s</strong> votes are casted by registered users',
|
128 |
-
<?php printf(__ngettext('<strong>»</strong> <strong>%s</strong> vote is casted by comment authors', '<strong>»</strong> <strong>%s</strong> votes are casted by comment authors',
|
129 |
-
<?php printf(__ngettext('<strong>»</strong> <strong>%s</strong> vote is casted by guests', '<strong>»</strong> <strong>%s</strong> votes are casted by guests',
|
130 |
</p>
|
131 |
</div>
|
132 |
<?php if($poll_totalrecorded > 0) { ?>
|
133 |
<div class="wrap">
|
134 |
-
<
|
135 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
136 |
<tr>
|
137 |
<td width="50%">
|
@@ -196,9 +197,9 @@ if(!empty($_POST['do'])) {
|
|
196 |
echo '<option value="1">'.__('1 Answer', 'wp-polls').'</option>';
|
197 |
} else {
|
198 |
if($i == $num_choices) {
|
199 |
-
echo '<option value="'.$i.'" selected="selected">'.sprintf(__ngettext('%s Answer', '%s Answers', $i, 'wp-polls'), $i).'</option>';
|
200 |
} else {
|
201 |
-
echo '<option value="'.$i.'">'.sprintf(__ngettext('%s Answer', '%s Answers', $i, 'wp-polls'), $i).'</option>';
|
202 |
}
|
203 |
}
|
204 |
}
|
@@ -264,7 +265,7 @@ if(!empty($_POST['do'])) {
|
|
264 |
<p> </p>
|
265 |
<?php } // End if($poll_totalrecorded > 0) ?>
|
266 |
<div class="wrap">
|
267 |
-
<
|
268 |
<div id="poll_logs_display">
|
269 |
<?php
|
270 |
if($poll_ips) {
|
@@ -295,7 +296,7 @@ if(!empty($_POST['do'])) {
|
|
295 |
}
|
296 |
if($pollip_user != $temp_pollip_user) {
|
297 |
echo '<tr class="highlight">'."\n";
|
298 |
-
echo "<td colspan=\"4\"><strong>".__('User', 'wp-polls')." $k: $pollip_user</strong></td>\n";
|
299 |
echo '</tr>';
|
300 |
$k++;
|
301 |
}
|
@@ -320,7 +321,7 @@ if(!empty($_POST['do'])) {
|
|
320 |
if($pollip_aid == 0) {
|
321 |
echo "<tr class=\"highlight\">\n<td colspan=\"4\"><strong>$pollip_answers[$pollip_aid]</strong></td>\n</tr>\n";
|
322 |
} else {
|
323 |
-
echo "<tr class=\"highlight\">\n<td colspan=\"4\"><strong>".__('Answer', 'wp-polls')." $k: $pollip_answers[$pollip_aid]</strong></td>\n</tr>\n";
|
324 |
$k++;
|
325 |
}
|
326 |
echo "<tr class=\"thead\">\n";
|
@@ -337,7 +338,7 @@ if(!empty($_POST['do'])) {
|
|
337 |
$style = 'class="alternate"';
|
338 |
}
|
339 |
echo "<tr $style>\n";
|
340 |
-
echo "<td
|
341 |
echo "<td>$pollip_user</td>\n";
|
342 |
echo "<td>$pollip_ip / $pollip_host</td>\n";
|
343 |
echo "<td>$pollip_date</td>\n";
|
@@ -364,7 +365,7 @@ if(!empty($_POST['do'])) {
|
|
364 |
|
365 |
<!-- Delete Poll Logs -->
|
366 |
<div class="wrap">
|
367 |
-
<
|
368 |
<br class="clear" />
|
369 |
<div align="center" id="poll_logs">
|
370 |
<?php if($poll_logs_count) { ?>
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
120 |
?>
|
121 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade">'.stripslashes($text).'</div>'; } else { echo '<div id="message" class="updated" style="display: none;"></div>'; } ?>
|
122 |
<div class="wrap">
|
123 |
+
<div id="icon-wp-polls" class="icon32"><br /></div>
|
124 |
<h2><?php _e('Poll\'s Logs', 'wp-polls'); ?></h2>
|
125 |
<h3><?php echo $poll_question; ?></h3>
|
126 |
<p>
|
127 |
+
<?php printf(__ngettext('There are a total of <strong>%s</strong> recorded vote for this poll.', 'There are a total of <strong>%s</strong> recorded votes for this poll.', $poll_totalrecorded, 'wp-polls'), number_format_i18n($poll_totalrecorded)); ?><br />
|
128 |
+
<?php printf(__ngettext('<strong>»</strong> <strong>%s</strong> vote is casted by registered users', '<strong>»</strong> <strong>%s</strong> votes are casted by registered users', $poll_registered, 'wp-polls'), number_format_i18n($poll_registered)); ?><br />
|
129 |
+
<?php printf(__ngettext('<strong>»</strong> <strong>%s</strong> vote is casted by comment authors', '<strong>»</strong> <strong>%s</strong> votes are casted by comment authors', $poll_comments, 'wp-polls'), number_format_i18n($poll_comments)); ?><br />
|
130 |
+
<?php printf(__ngettext('<strong>»</strong> <strong>%s</strong> vote is casted by guests', '<strong>»</strong> <strong>%s</strong> votes are casted by guests', $poll_guest, 'wp-polls'), number_format_i18n($poll_guest)); ?>
|
131 |
</p>
|
132 |
</div>
|
133 |
<?php if($poll_totalrecorded > 0) { ?>
|
134 |
<div class="wrap">
|
135 |
+
<h3><?php _e('Filter Poll\'s Logs', 'wp-polls') ?></h3>
|
136 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
137 |
<tr>
|
138 |
<td width="50%">
|
197 |
echo '<option value="1">'.__('1 Answer', 'wp-polls').'</option>';
|
198 |
} else {
|
199 |
if($i == $num_choices) {
|
200 |
+
echo '<option value="'.$i.'" selected="selected">'.sprintf(__ngettext('%s Answer', '%s Answers', $i, 'wp-polls'), number_format_i18n($i)).'</option>';
|
201 |
} else {
|
202 |
+
echo '<option value="'.$i.'">'.sprintf(__ngettext('%s Answer', '%s Answers', $i, 'wp-polls'), number_format_i18n($i)).'</option>';
|
203 |
}
|
204 |
}
|
205 |
}
|
265 |
<p> </p>
|
266 |
<?php } // End if($poll_totalrecorded > 0) ?>
|
267 |
<div class="wrap">
|
268 |
+
<h3><?php _e('Poll Logs', 'wp-polls'); ?></h3>
|
269 |
<div id="poll_logs_display">
|
270 |
<?php
|
271 |
if($poll_ips) {
|
296 |
}
|
297 |
if($pollip_user != $temp_pollip_user) {
|
298 |
echo '<tr class="highlight">'."\n";
|
299 |
+
echo "<td colspan=\"4\"><strong>".__('User', 'wp-polls')." ".number_format_i18n($k).": $pollip_user</strong></td>\n";
|
300 |
echo '</tr>';
|
301 |
$k++;
|
302 |
}
|
321 |
if($pollip_aid == 0) {
|
322 |
echo "<tr class=\"highlight\">\n<td colspan=\"4\"><strong>$pollip_answers[$pollip_aid]</strong></td>\n</tr>\n";
|
323 |
} else {
|
324 |
+
echo "<tr class=\"highlight\">\n<td colspan=\"4\"><strong>".__('Answer', 'wp-polls')." ".number_format_i18n($k).": $pollip_answers[$pollip_aid]</strong></td>\n</tr>\n";
|
325 |
$k++;
|
326 |
}
|
327 |
echo "<tr class=\"thead\">\n";
|
338 |
$style = 'class="alternate"';
|
339 |
}
|
340 |
echo "<tr $style>\n";
|
341 |
+
echo "<td>".number_format_i18n($i)."</td>\n";
|
342 |
echo "<td>$pollip_user</td>\n";
|
343 |
echo "<td>$pollip_ip / $pollip_host</td>\n";
|
344 |
echo "<td>$pollip_date</td>\n";
|
365 |
|
366 |
<!-- Delete Poll Logs -->
|
367 |
<div class="wrap">
|
368 |
+
<h3><?php _e('Delete Poll Logs', 'wp-polls'); ?></h3>
|
369 |
<br class="clear" />
|
370 |
<div align="center" id="poll_logs">
|
371 |
<?php if($poll_logs_count) { ?>
|
polls-manager.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
@@ -159,6 +159,7 @@ switch($mode) {
|
|
159 |
break;
|
160 |
// Edit A Poll
|
161 |
case 'edit':
|
|
|
162 |
$poll_question = $wpdb->get_row("SELECT pollq_question, pollq_timestamp, pollq_totalvotes, pollq_active, pollq_expiry, pollq_multiple, pollq_totalvoters FROM $wpdb->pollsq WHERE pollq_id = $poll_id");
|
163 |
$poll_answers = $wpdb->get_results("SELECT polla_aid, polla_answers, polla_votes FROM $wpdb->pollsa WHERE polla_qid = $poll_id ORDER BY polla_aid ASC");
|
164 |
$poll_noquestion = $wpdb->get_var("SELECT COUNT(polla_aid) FROM $wpdb->pollsa WHERE polla_qid = $poll_id");
|
@@ -260,7 +261,7 @@ switch($mode) {
|
|
260 |
poll_td1.setAttribute('valign', "top");
|
261 |
poll_td2.setAttribute('width', "60%");
|
262 |
poll_td3.setAttribute('width', "20%");
|
263 |
-
poll_td3.setAttribute('align', "
|
264 |
// Appending To Elements
|
265 |
poll_tr.appendChild(poll_td1);
|
266 |
poll_tr.appendChild(poll_td2);
|
@@ -304,6 +305,7 @@ switch($mode) {
|
|
304 |
<input type="hidden" name="pollq_id" value="<?php echo $poll_id; ?>" />
|
305 |
<input type="hidden" name="pollq_active" value="<?php echo $poll_active; ?>" />
|
306 |
<div class="wrap">
|
|
|
307 |
<h2><?php _e('Edit Poll', 'wp-polls'); ?></h2>
|
308 |
<!-- Poll Question -->
|
309 |
<h3><?php _e('Poll Question', 'wp-polls'); ?></h3>
|
@@ -320,7 +322,7 @@ switch($mode) {
|
|
320 |
<tr>
|
321 |
<th width="20%" scope="row" valign="top"><?php _e('Answer No.', 'wp-polls') ?></th>
|
322 |
<th width="60%" scope="row" valign="top"><?php _e('Answer Text', 'wp-polls') ?></th>
|
323 |
-
<th width="20%" scope="row" valign="top" style="text-align:
|
324 |
</tr>
|
325 |
</thead>
|
326 |
<tbody id="poll_answers">
|
@@ -336,10 +338,10 @@ switch($mode) {
|
|
336 |
$polla_votes = intval($poll_answer->polla_votes);
|
337 |
$pollip_answers[$polla_aid] = $polla_answers;
|
338 |
echo "<tr id=\"poll-answer-$polla_aid\">\n";
|
339 |
-
echo '<th width="20%" scope="row" valign="top">'.sprintf(__('Answer %s', 'wp-polls'), $i).'</th>'."\n";
|
340 |
echo "<td width=\"60%\"><input type=\"text\" size=\"50\" maxlength=\"200\" name=\"polla_aid-$polla_aid\" value=\"".htmlspecialchars($polla_answers)."\" /> ";
|
341 |
echo "<input type=\"button\" value=\"".__('Delete', 'wp-polls')."\" onclick=\"delete_poll_ans($poll_id, $polla_aid, $polla_votes, '".sprintf(js_escape(__('You are about to delete this poll\'s answer \'%s\'.', 'wp-polls')), js_escape(htmlspecialchars($polla_answers)))."');\" class=\"button\" /></td>\n";
|
342 |
-
echo '<td width="20%" align="
|
343 |
$poll_actual_totalvotes += $polla_votes;
|
344 |
$i++;
|
345 |
}
|
@@ -350,12 +352,12 @@ switch($mode) {
|
|
350 |
<tr>
|
351 |
<td width="20%"> </td>
|
352 |
<td width="60%"><input type="button" value="<?php _e('Add Answer', 'wp-polls') ?>" onclick="create_poll_answer();" class="button" /> <input type="button" value="<?php _e('Remove Answer', 'wp-polls') ?>" onclick="remove_poll_answer();" class="button" /></td>
|
353 |
-
<td width="20%" align="
|
354 |
</tr>
|
355 |
<tr>
|
356 |
<td width="20%"> </td>
|
357 |
<td width="60%"> </td>
|
358 |
-
<td width="20%" align="
|
359 |
</tr>
|
360 |
</tbody>
|
361 |
</table>
|
@@ -378,9 +380,9 @@ switch($mode) {
|
|
378 |
<?php
|
379 |
for($i = 1; $i <= $poll_noquestion; $i++) {
|
380 |
if($poll_multiple > 0 && $poll_multiple == $i) {
|
381 |
-
echo "<option value=\"$i\" selected=\"selected\"
|
382 |
} else {
|
383 |
-
echo "<option value=\"$i\"
|
384 |
}
|
385 |
}
|
386 |
?>
|
@@ -455,7 +457,9 @@ switch($mode) {
|
|
455 |
|
456 |
<!-- Manage Polls -->
|
457 |
<div class="wrap">
|
|
|
458 |
<h2><?php _e('Manage Polls', 'wp-polls'); ?></h2>
|
|
|
459 |
<br style="clear" />
|
460 |
<table class="widefat">
|
461 |
<thead>
|
@@ -511,7 +515,7 @@ switch($mode) {
|
|
511 |
$style = 'class="highlight"';
|
512 |
}
|
513 |
echo "<tr id=\"poll-$poll_id\" $style>\n";
|
514 |
-
echo
|
515 |
echo '<td>';
|
516 |
if($current_poll > 0) {
|
517 |
if($current_poll == $poll_id) {
|
@@ -557,12 +561,12 @@ switch($mode) {
|
|
557 |
|
558 |
<!-- Polls Stats -->
|
559 |
<div class="wrap">
|
560 |
-
<
|
561 |
<br style="clear" />
|
562 |
<table class="widefat">
|
563 |
<tr>
|
564 |
<th><?php _e('Total Polls:', 'wp-polls'); ?></th>
|
565 |
-
<td><?php echo $i; ?></td>
|
566 |
</tr>
|
567 |
<tr class="alternate">
|
568 |
<th><?php _e('Total Polls\' Answers:', 'wp-polls'); ?></th>
|
@@ -582,7 +586,7 @@ switch($mode) {
|
|
582 |
|
583 |
<!-- Delete Polls Logs -->
|
584 |
<div class="wrap">
|
585 |
-
<
|
586 |
<br style="clear" />
|
587 |
<div align="center" id="poll_logs">
|
588 |
<?php
|
@@ -598,7 +602,7 @@ switch($mode) {
|
|
598 |
}
|
599 |
?>
|
600 |
</div>
|
601 |
-
<p
|
602 |
</div>
|
603 |
<?php
|
604 |
} // End switch($mode)
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
159 |
break;
|
160 |
// Edit A Poll
|
161 |
case 'edit':
|
162 |
+
$last_col_align = ('rtl' == $text_direction) ? 'left' : 'right';
|
163 |
$poll_question = $wpdb->get_row("SELECT pollq_question, pollq_timestamp, pollq_totalvotes, pollq_active, pollq_expiry, pollq_multiple, pollq_totalvoters FROM $wpdb->pollsq WHERE pollq_id = $poll_id");
|
164 |
$poll_answers = $wpdb->get_results("SELECT polla_aid, polla_answers, polla_votes FROM $wpdb->pollsa WHERE polla_qid = $poll_id ORDER BY polla_aid ASC");
|
165 |
$poll_noquestion = $wpdb->get_var("SELECT COUNT(polla_aid) FROM $wpdb->pollsa WHERE polla_qid = $poll_id");
|
261 |
poll_td1.setAttribute('valign', "top");
|
262 |
poll_td2.setAttribute('width', "60%");
|
263 |
poll_td3.setAttribute('width', "20%");
|
264 |
+
poll_td3.setAttribute('align', "<?php echo $last_col_align; ?>");
|
265 |
// Appending To Elements
|
266 |
poll_tr.appendChild(poll_td1);
|
267 |
poll_tr.appendChild(poll_td2);
|
305 |
<input type="hidden" name="pollq_id" value="<?php echo $poll_id; ?>" />
|
306 |
<input type="hidden" name="pollq_active" value="<?php echo $poll_active; ?>" />
|
307 |
<div class="wrap">
|
308 |
+
<div id="icon-wp-polls" class="icon32"><br /></div>
|
309 |
<h2><?php _e('Edit Poll', 'wp-polls'); ?></h2>
|
310 |
<!-- Poll Question -->
|
311 |
<h3><?php _e('Poll Question', 'wp-polls'); ?></h3>
|
322 |
<tr>
|
323 |
<th width="20%" scope="row" valign="top"><?php _e('Answer No.', 'wp-polls') ?></th>
|
324 |
<th width="60%" scope="row" valign="top"><?php _e('Answer Text', 'wp-polls') ?></th>
|
325 |
+
<th width="20%" scope="row" valign="top" style="text-align: <?php echo $last_col_align; ?>;"><?php _e('No. Of Votes', 'wp-polls') ?></th>
|
326 |
</tr>
|
327 |
</thead>
|
328 |
<tbody id="poll_answers">
|
338 |
$polla_votes = intval($poll_answer->polla_votes);
|
339 |
$pollip_answers[$polla_aid] = $polla_answers;
|
340 |
echo "<tr id=\"poll-answer-$polla_aid\">\n";
|
341 |
+
echo '<th width="20%" scope="row" valign="top">'.sprintf(__('Answer %s', 'wp-polls'), number_format_i18n($i)).'</th>'."\n";
|
342 |
echo "<td width=\"60%\"><input type=\"text\" size=\"50\" maxlength=\"200\" name=\"polla_aid-$polla_aid\" value=\"".htmlspecialchars($polla_answers)."\" /> ";
|
343 |
echo "<input type=\"button\" value=\"".__('Delete', 'wp-polls')."\" onclick=\"delete_poll_ans($poll_id, $polla_aid, $polla_votes, '".sprintf(js_escape(__('You are about to delete this poll\'s answer \'%s\'.', 'wp-polls')), js_escape(htmlspecialchars($polla_answers)))."');\" class=\"button\" /></td>\n";
|
344 |
+
echo '<td width="20%" align="'.$last_col_align.'">'.number_format_i18n($polla_votes)." <input type=\"text\" size=\"4\" id=\"polla_votes-$polla_aid\" name=\"polla_votes-$polla_aid\" value=\"$polla_votes\" onblur=\"check_totalvotes();\" /></td>\n</tr>\n";
|
345 |
$poll_actual_totalvotes += $polla_votes;
|
346 |
$i++;
|
347 |
}
|
352 |
<tr>
|
353 |
<td width="20%"> </td>
|
354 |
<td width="60%"><input type="button" value="<?php _e('Add Answer', 'wp-polls') ?>" onclick="create_poll_answer();" class="button" /> <input type="button" value="<?php _e('Remove Answer', 'wp-polls') ?>" onclick="remove_poll_answer();" class="button" /></td>
|
355 |
+
<td width="20%" align="<?php echo $last_col_align; ?>"><strong><?php _e('Total Votes:', 'wp-polls'); ?></strong> <strong id="poll_total_votes"><?php echo number_format_i18n($poll_actual_totalvotes); ?></strong> <input type="text" size="4" readonly="readonly" id="pollq_totalvotes" name="pollq_totalvotes" value="<?php echo $poll_actual_totalvotes; ?>" onblur="check_totalvotes();" /></td>
|
356 |
</tr>
|
357 |
<tr>
|
358 |
<td width="20%"> </td>
|
359 |
<td width="60%"> </td>
|
360 |
+
<td width="20%" align="<?php echo $last_col_align; ?>"><strong><?php _e('Total Voters:', 'wp-polls'); ?> <?php echo number_format_i18n($poll_totalvoters); ?></strong> <input type="text" size="4" name="pollq_totalvoters" value="<?php echo $poll_totalvoters; ?>" /></td>
|
361 |
</tr>
|
362 |
</tbody>
|
363 |
</table>
|
380 |
<?php
|
381 |
for($i = 1; $i <= $poll_noquestion; $i++) {
|
382 |
if($poll_multiple > 0 && $poll_multiple == $i) {
|
383 |
+
echo "<option value=\"$i\" selected=\"selected\">".number_format_i18n($i)."</option>\n";
|
384 |
} else {
|
385 |
+
echo "<option value=\"$i\">".number_format_i18n($i)."</option>\n";
|
386 |
}
|
387 |
}
|
388 |
?>
|
457 |
|
458 |
<!-- Manage Polls -->
|
459 |
<div class="wrap">
|
460 |
+
<div id="icon-wp-polls" class="icon32"><br /></div>
|
461 |
<h2><?php _e('Manage Polls', 'wp-polls'); ?></h2>
|
462 |
+
<h3><?php _e('Polls', 'wp-polls'); ?></h3>
|
463 |
<br style="clear" />
|
464 |
<table class="widefat">
|
465 |
<thead>
|
515 |
$style = 'class="highlight"';
|
516 |
}
|
517 |
echo "<tr id=\"poll-$poll_id\" $style>\n";
|
518 |
+
echo '<td><strong>'.number_format_i18n($poll_id).'</strong></td>'."\n";
|
519 |
echo '<td>';
|
520 |
if($current_poll > 0) {
|
521 |
if($current_poll == $poll_id) {
|
561 |
|
562 |
<!-- Polls Stats -->
|
563 |
<div class="wrap">
|
564 |
+
<h3><?php _e('Polls Stats:', 'wp-polls'); ?></h3>
|
565 |
<br style="clear" />
|
566 |
<table class="widefat">
|
567 |
<tr>
|
568 |
<th><?php _e('Total Polls:', 'wp-polls'); ?></th>
|
569 |
+
<td><?php echo number_format_i18n($i); ?></td>
|
570 |
</tr>
|
571 |
<tr class="alternate">
|
572 |
<th><?php _e('Total Polls\' Answers:', 'wp-polls'); ?></th>
|
586 |
|
587 |
<!-- Delete Polls Logs -->
|
588 |
<div class="wrap">
|
589 |
+
<h3><?php _e('Polls Logs', 'wp-polls'); ?></h3>
|
590 |
<br style="clear" />
|
591 |
<div align="center" id="poll_logs">
|
592 |
<?php
|
602 |
}
|
603 |
?>
|
604 |
</div>
|
605 |
+
<p><?php _e('Note: If your logging method is by IP and Cookie or by Cookie, users may still be unable to vote if they have voted before as the cookie is still stored in their computer.', 'wp-polls'); ?></p>
|
606 |
</div>
|
607 |
<?php
|
608 |
} // End switch($mode)
|
polls-options.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
@@ -114,12 +114,13 @@ if($_POST['Submit']) {
|
|
114 |
for(i = 0; i < pollbar_style_options.length; i++) {
|
115 |
if(pollbar_style_options[i].checked) {
|
116 |
pollbar_style = pollbar_style_options[i].value;
|
|
|
117 |
}
|
118 |
}
|
119 |
if(pollbar_style == 'use_css') {
|
120 |
document.getElementById('wp-polls-pollbar').style.backgroundImage = "";
|
121 |
} else {
|
122 |
-
document.getElementById('wp-polls-pollbar').style.backgroundImage = "url('<?php echo
|
123 |
}
|
124 |
}
|
125 |
document.getElementById('wp-polls-pollbar').style.backgroundColor = pollbar_background;
|
@@ -130,7 +131,8 @@ if($_POST['Submit']) {
|
|
130 |
</script>
|
131 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
|
132 |
<form id="poll_options_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
133 |
-
<div class="wrap">
|
|
|
134 |
<h2><?php _e('Poll Options', 'wp-polls'); ?></h2>
|
135 |
<!-- Poll Bar Style -->
|
136 |
<h3><?php _e('Poll Bar Style', 'wp-polls'); ?></h3>
|
@@ -140,44 +142,45 @@ if($_POST['Submit']) {
|
|
140 |
<td colspan="2">
|
141 |
<?php
|
142 |
$pollbar = get_option('poll_bar');
|
143 |
-
$pollbar_url =
|
144 |
$pollbar_path = WP_PLUGIN_DIR.'/wp-polls/images';
|
145 |
if($handle = @opendir($pollbar_path)) {
|
146 |
while (false !== ($filename = readdir($handle))) {
|
147 |
if ($filename != '.' && $filename != '..') {
|
148 |
if(is_dir($pollbar_path.'/'.$filename)) {
|
|
|
149 |
$pollbar_info = getimagesize($pollbar_path.'/'.$filename.'/pollbg.gif');
|
150 |
if($pollbar['style'] == $filename) {
|
151 |
-
echo '<input type="radio" name="poll_bar_style" value="'.$filename.'" checked="checked"
|
152 |
} else {
|
153 |
-
echo '<input type="radio" name="poll_bar_style" value="'.$filename.'"
|
154 |
}
|
155 |
echo ' ';
|
156 |
echo '<img src="'.$pollbar_url.'/'.$filename.'/pollbg.gif" height="'.$pollbar_info[1].'" width="100" alt="pollbg.gif" />';
|
157 |
echo ' ('.$filename.')';
|
158 |
-
|
159 |
}
|
160 |
}
|
161 |
}
|
162 |
closedir($handle);
|
163 |
}
|
164 |
?>
|
165 |
-
<input type="radio" name="poll_bar_style" value="use_css"<?php checked('use_css', $pollbar['style']); ?>
|
166 |
</td>
|
167 |
</tr>
|
168 |
<tr>
|
169 |
<th scope="row" valign="top"><?php _e('Poll Bar Background', 'wp-polls'); ?></th>
|
170 |
-
<td width="10%">#<input type="text" id="poll_bar_bg" name="poll_bar_bg" value="<?php echo $pollbar['background']; ?>" size="6" maxlength="6" onblur="update_pollbar('background');" /></td>
|
171 |
<td><div id="wp-polls-pollbar-bg" style="background-color: #<?php echo $pollbar['background']; ?>;"></div></td>
|
172 |
</tr>
|
173 |
<tr>
|
174 |
<th scope="row" valign="top"><?php _e('Poll Bar Border', 'wp-polls'); ?></th>
|
175 |
-
<td width="10%">#<input type="text" id="poll_bar_border" name="poll_bar_border" value="<?php echo $pollbar['border']; ?>" size="6" maxlength="6" onblur="update_pollbar('border');" /></td>
|
176 |
<td><div id="wp-polls-pollbar-border" style="background-color: #<?php echo $pollbar['border']; ?>;"></div></td>
|
177 |
</tr>
|
178 |
<tr>
|
179 |
<th scope="row" valign="top"><?php _e('Poll Bar Height', 'wp-polls'); ?></th>
|
180 |
-
<td colspan="2"><input type="text" id="poll_bar_height" name="poll_bar_height" value="<?php echo $pollbar['height']; ?>" size="2" maxlength="2" onblur="update_pollbar('height');" />px</td>
|
181 |
</tr>
|
182 |
<tr>
|
183 |
<th scope="row" valign="top"><?php _e('Your poll bar will look like this', 'wp-polls'); ?></th>
|
@@ -186,7 +189,7 @@ if($_POST['Submit']) {
|
|
186 |
if($pollbar['style'] == 'use_css') {
|
187 |
echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'"></div>'."\n";
|
188 |
} else {
|
189 |
-
echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'; background-image: url(\''.
|
190 |
}
|
191 |
?>
|
192 |
</td>
|
@@ -321,7 +324,7 @@ if($_POST['Submit']) {
|
|
321 |
</tr>
|
322 |
<tr>
|
323 |
<th scope="row" valign="top"><?php _e('Poll Archive URL:', 'wp-polls'); ?></th>
|
324 |
-
<td><input type="text" name="poll_archive_url" value="<?php echo get_option('poll_archive_url'); ?>" size="50" /></td>
|
325 |
</tr>
|
326 |
<tr>
|
327 |
<th scope="row" valign="top"><?php _e('Display Poll Archive Link Below Poll?', 'wp-polls'); ?></th>
|
@@ -351,7 +354,7 @@ if($_POST['Submit']) {
|
|
351 |
<?php if(function_exists('dynamic_sidebar')) { ?>
|
352 |
<option value="-3"<?php selected(-3, get_option('poll_currentpoll')); ?>><?php _e('Display Multiple Polls', 'wp-polls'); ?></option>
|
353 |
<?php } ?>
|
354 |
-
<
|
355 |
<?php
|
356 |
$polls = $wpdb->get_results("SELECT pollq_id, pollq_question FROM $wpdb->pollsq ORDER BY pollq_id DESC");
|
357 |
if($polls) {
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
114 |
for(i = 0; i < pollbar_style_options.length; i++) {
|
115 |
if(pollbar_style_options[i].checked) {
|
116 |
pollbar_style = pollbar_style_options[i].value;
|
117 |
+
break;
|
118 |
}
|
119 |
}
|
120 |
if(pollbar_style == 'use_css') {
|
121 |
document.getElementById('wp-polls-pollbar').style.backgroundImage = "";
|
122 |
} else {
|
123 |
+
document.getElementById('wp-polls-pollbar').style.backgroundImage = "url('<?php echo plugins_url('wp-polls/images/'); ?>" + pollbar_style + "/pollbg.gif')";
|
124 |
}
|
125 |
}
|
126 |
document.getElementById('wp-polls-pollbar').style.backgroundColor = pollbar_background;
|
131 |
</script>
|
132 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
|
133 |
<form id="poll_options_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
134 |
+
<div class="wrap">
|
135 |
+
<div id="icon-wp-polls" class="icon32"><br /></div>
|
136 |
<h2><?php _e('Poll Options', 'wp-polls'); ?></h2>
|
137 |
<!-- Poll Bar Style -->
|
138 |
<h3><?php _e('Poll Bar Style', 'wp-polls'); ?></h3>
|
142 |
<td colspan="2">
|
143 |
<?php
|
144 |
$pollbar = get_option('poll_bar');
|
145 |
+
$pollbar_url = plugins_url('wp-polls/images');
|
146 |
$pollbar_path = WP_PLUGIN_DIR.'/wp-polls/images';
|
147 |
if($handle = @opendir($pollbar_path)) {
|
148 |
while (false !== ($filename = readdir($handle))) {
|
149 |
if ($filename != '.' && $filename != '..') {
|
150 |
if(is_dir($pollbar_path.'/'.$filename)) {
|
151 |
+
echo '<p>'."\n";
|
152 |
$pollbar_info = getimagesize($pollbar_path.'/'.$filename.'/pollbg.gif');
|
153 |
if($pollbar['style'] == $filename) {
|
154 |
+
echo '<input type="radio" name="poll_bar_style" value="'.$filename.'" checked="checked" onclick="set_pollbar_height('.$pollbar_info[1].'); update_pollbar(\'style\');" />';
|
155 |
} else {
|
156 |
+
echo '<input type="radio" name="poll_bar_style" value="'.$filename.'" onclick="set_pollbar_height('.$pollbar_info[1].'); update_pollbar(\'style\');" />';
|
157 |
}
|
158 |
echo ' ';
|
159 |
echo '<img src="'.$pollbar_url.'/'.$filename.'/pollbg.gif" height="'.$pollbar_info[1].'" width="100" alt="pollbg.gif" />';
|
160 |
echo ' ('.$filename.')';
|
161 |
+
echo '</p>'."\n";
|
162 |
}
|
163 |
}
|
164 |
}
|
165 |
closedir($handle);
|
166 |
}
|
167 |
?>
|
168 |
+
<input type="radio" name="poll_bar_style" value="use_css"<?php checked('use_css', $pollbar['style']); ?> onclick="update_pollbar('style');" /> <?php _e('Use CSS Style', 'wp-polls'); ?>
|
169 |
</td>
|
170 |
</tr>
|
171 |
<tr>
|
172 |
<th scope="row" valign="top"><?php _e('Poll Bar Background', 'wp-polls'); ?></th>
|
173 |
+
<td width="10%" dir="ltr">#<input type="text" id="poll_bar_bg" name="poll_bar_bg" value="<?php echo $pollbar['background']; ?>" size="6" maxlength="6" onblur="update_pollbar('background');" /></td>
|
174 |
<td><div id="wp-polls-pollbar-bg" style="background-color: #<?php echo $pollbar['background']; ?>;"></div></td>
|
175 |
</tr>
|
176 |
<tr>
|
177 |
<th scope="row" valign="top"><?php _e('Poll Bar Border', 'wp-polls'); ?></th>
|
178 |
+
<td width="10%" dir="ltr">#<input type="text" id="poll_bar_border" name="poll_bar_border" value="<?php echo $pollbar['border']; ?>" size="6" maxlength="6" onblur="update_pollbar('border');" /></td>
|
179 |
<td><div id="wp-polls-pollbar-border" style="background-color: #<?php echo $pollbar['border']; ?>;"></div></td>
|
180 |
</tr>
|
181 |
<tr>
|
182 |
<th scope="row" valign="top"><?php _e('Poll Bar Height', 'wp-polls'); ?></th>
|
183 |
+
<td colspan="2" dir="ltr"><input type="text" id="poll_bar_height" name="poll_bar_height" value="<?php echo $pollbar['height']; ?>" size="2" maxlength="2" onblur="update_pollbar('height');" />px</td>
|
184 |
</tr>
|
185 |
<tr>
|
186 |
<th scope="row" valign="top"><?php _e('Your poll bar will look like this', 'wp-polls'); ?></th>
|
189 |
if($pollbar['style'] == 'use_css') {
|
190 |
echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'"></div>'."\n";
|
191 |
} else {
|
192 |
+
echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'; background-image: url(\''.plugins_url('wp-polls/images/'.$pollbar['style'].'/pollbg.gif').'\');"></div>'."\n";
|
193 |
}
|
194 |
?>
|
195 |
</td>
|
324 |
</tr>
|
325 |
<tr>
|
326 |
<th scope="row" valign="top"><?php _e('Poll Archive URL:', 'wp-polls'); ?></th>
|
327 |
+
<td><input type="text" name="poll_archive_url" value="<?php echo get_option('poll_archive_url'); ?>" size="50" dir="ltr" /></td>
|
328 |
</tr>
|
329 |
<tr>
|
330 |
<th scope="row" valign="top"><?php _e('Display Poll Archive Link Below Poll?', 'wp-polls'); ?></th>
|
354 |
<?php if(function_exists('dynamic_sidebar')) { ?>
|
355 |
<option value="-3"<?php selected(-3, get_option('poll_currentpoll')); ?>><?php _e('Display Multiple Polls', 'wp-polls'); ?></option>
|
356 |
<?php } ?>
|
357 |
+
<optgroup> </optgroup>
|
358 |
<?php
|
359 |
$polls = $wpdb->get_results("SELECT pollq_id, pollq_question FROM $wpdb->pollsq ORDER BY pollq_id DESC");
|
360 |
if($polls) {
|
polls-templates.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
@@ -113,10 +113,10 @@ if($_POST['Submit']) {
|
|
113 |
default_template = "<p style=\"text-align: center;\"><strong>%POLL_QUESTION%</strong></p>\n<div id=\"polls-%POLL_ID%-ans\" class=\"wp-polls-ans\">\n<ul class=\"wp-polls-ul\">";
|
114 |
break;
|
115 |
case "resultbody":
|
116 |
-
default_template = "<li>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE
|
117 |
break;
|
118 |
case "resultbody2":
|
119 |
-
default_template = "<li><strong><i>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE
|
120 |
break;
|
121 |
case "resultfooter":
|
122 |
default_template = "</ul>\n<p style=\"text-align: center;\"><?php _e('Total Voters', 'wp-polls'); ?>: <strong>%POLL_TOTALVOTERS%</strong></p>\n</div>";
|
@@ -152,7 +152,8 @@ if($_POST['Submit']) {
|
|
152 |
</script>
|
153 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
|
154 |
<form id="poll_options_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
155 |
-
<div class="wrap">
|
|
|
156 |
<h2><?php _e('Poll Templates', 'wp-polls'); ?></h2>
|
157 |
<!-- Template Variables -->
|
158 |
<h3><?php _e('Template Variables', 'wp-polls'); ?></h3>
|
@@ -278,43 +279,43 @@ if($_POST['Submit']) {
|
|
278 |
<h3><?php _e('Poll Voting Form Templates', 'wp-polls'); ?></h3>
|
279 |
<table class="form-table">
|
280 |
<tr>
|
281 |
-
<td width="30%"
|
282 |
<strong><?php _e('Voting Form Header:', 'wp-polls'); ?></strong><br /><br /><br />
|
283 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('voteheader');" class="button" />
|
292 |
</td>
|
293 |
-
<td
|
294 |
</tr>
|
295 |
<tr>
|
296 |
-
<td width="30%"
|
297 |
<strong><?php _e('Voting Form Body:', 'wp-polls'); ?></strong><br /><br /><br />
|
298 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votebody');" class="button" />
|
305 |
</td>
|
306 |
-
<td
|
307 |
</tr>
|
308 |
<tr>
|
309 |
-
<td width="30%"
|
310 |
<strong><?php _e('Voting Form Footer:', 'wp-polls'); ?></strong><br /><br /><br />
|
311 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votefooter');" class="button" />
|
316 |
</td>
|
317 |
-
<td
|
318 |
</tr>
|
319 |
</table>
|
320 |
|
@@ -322,87 +323,87 @@ if($_POST['Submit']) {
|
|
322 |
<h3><?php _e('Poll Result Templates', 'wp-polls'); ?></h3>
|
323 |
<table class="form-table">
|
324 |
<tr>
|
325 |
-
<td width="30%"
|
326 |
<strong><?php _e('Result Header:', 'wp-polls'); ?></strong><br /><br /><br />
|
327 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultheader');" class="button" />
|
336 |
</td>
|
337 |
-
<td
|
338 |
</tr>
|
339 |
<tr>
|
340 |
-
<td width="30%"
|
341 |
<strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
|
342 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody');" class="button" />
|
350 |
</td>
|
351 |
-
<td
|
352 |
</tr>
|
353 |
<tr>
|
354 |
-
<td width="30%"
|
355 |
<strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
|
356 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
- %POLL_ANSWER_PERCENTAGE
|
362 |
-
|
363 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody2');" class="button" />
|
364 |
</td>
|
365 |
-
<td
|
366 |
</tr>
|
367 |
<tr>
|
368 |
-
<td width="30%"
|
369 |
<strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
|
370 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter');" class="button" />
|
384 |
</td>
|
385 |
-
<td
|
386 |
</tr>
|
387 |
<tr>
|
388 |
-
<td width="30%"
|
389 |
<strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
|
390 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter2');" class="button" />
|
404 |
</td>
|
405 |
-
<td
|
406 |
</tr>
|
407 |
</table>
|
408 |
|
@@ -410,59 +411,59 @@ if($_POST['Submit']) {
|
|
410 |
<h3><?php _e('Poll Archive Templates', 'wp-polls'); ?></h3>
|
411 |
<table class="form-table">
|
412 |
<tr>
|
413 |
-
<td width="30%"
|
414 |
<strong><?php _e('Poll Archive Link', 'wp-polls'); ?></strong><br /><?php _e('Template For Displaying Poll Archive Link', 'wp-polls'); ?><br /><br />
|
415 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
416 |
-
|
417 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivelink');" class="button" />
|
418 |
</td>
|
419 |
-
<td
|
420 |
</tr>
|
421 |
<tr>
|
422 |
-
<td width="30%"
|
423 |
<strong><?php _e('Individual Poll Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
|
424 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
425 |
-
|
426 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchiveheader');" class="button" />
|
427 |
</td>
|
428 |
-
<td
|
429 |
</tr>
|
430 |
<tr>
|
431 |
-
<td width="30%"
|
432 |
<strong><?php _e('Individual Poll Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
|
433 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivefooter');" class="button" />
|
446 |
</td>
|
447 |
-
<td
|
448 |
</tr>
|
449 |
<tr>
|
450 |
-
<td width="30%"
|
451 |
<strong><?php _e('Paging Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
|
452 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
453 |
-
|
454 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingheader');" class="button" />
|
455 |
</td>
|
456 |
-
<td
|
457 |
</tr>
|
458 |
<tr>
|
459 |
-
<td width="30%"
|
460 |
<strong><?php _e('Paging Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
|
461 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
462 |
-
|
463 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingfooter');" class="button" />
|
464 |
</td>
|
465 |
-
<td
|
466 |
</tr>
|
467 |
</table>
|
468 |
|
@@ -470,22 +471,22 @@ if($_POST['Submit']) {
|
|
470 |
<h3><?php _e('Poll Misc Templates', 'wp-polls'); ?></h3>
|
471 |
<table class="form-table">
|
472 |
<tr>
|
473 |
-
<td width="30%"
|
474 |
<strong><?php _e('Poll Disabled', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The Poll Is Disabled', 'wp-polls'); ?><br /><br />
|
475 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
476 |
-
|
477 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('disable');" class="button" />
|
478 |
</td>
|
479 |
-
<td
|
480 |
</tr>
|
481 |
<tr>
|
482 |
-
<td width="30%"
|
483 |
<strong><?php _e('Poll Error', 'wp-polls'); ?></strong><br /><?php _e('Displayed When An Error Has Occured While Processing The Poll', 'wp-polls'); ?><br /><br />
|
484 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
485 |
-
|
486 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('error');" class="button" />
|
487 |
</td>
|
488 |
-
<td
|
489 |
</tr>
|
490 |
</table>
|
491 |
<p class="submit">
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
113 |
default_template = "<p style=\"text-align: center;\"><strong>%POLL_QUESTION%</strong></p>\n<div id=\"polls-%POLL_ID%-ans\" class=\"wp-polls-ans\">\n<ul class=\"wp-polls-ul\">";
|
114 |
break;
|
115 |
case "resultbody":
|
116 |
+
default_template = "<li>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE%%<?php _e(',', 'wp-polls'); ?> %POLL_ANSWER_VOTES% <?php _e('Votes', 'wp-polls'); ?>)</small><div class=\"pollbar\" style=\"width: %POLL_ANSWER_IMAGEWIDTH%%;\" title=\"%POLL_ANSWER_TEXT% (%POLL_ANSWER_PERCENTAGE%% | %POLL_ANSWER_VOTES% <?php _e('Votes', 'wp-polls'); ?>)\"></div></li>";
|
117 |
break;
|
118 |
case "resultbody2":
|
119 |
+
default_template = "<li><strong><i>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE%%<?php _e(',', 'wp-polls'); ?> %POLL_ANSWER_VOTES% <?php _e('Votes', 'wp-polls'); ?>)</small></i></strong><div class=\"pollbar\" style=\"width: %POLL_ANSWER_IMAGEWIDTH%%;\" title=\"<?php _e('You Have Voted For This Choice', 'wp-polls'); ?> - %POLL_ANSWER_TEXT% (%POLL_ANSWER_PERCENTAGE%% | %POLL_ANSWER_VOTES% <?php _e('Votes', 'wp-polls'); ?>)\"></div></li>";
|
120 |
break;
|
121 |
case "resultfooter":
|
122 |
default_template = "</ul>\n<p style=\"text-align: center;\"><?php _e('Total Voters', 'wp-polls'); ?>: <strong>%POLL_TOTALVOTERS%</strong></p>\n</div>";
|
152 |
</script>
|
153 |
<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?>
|
154 |
<form id="poll_options_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
155 |
+
<div class="wrap">
|
156 |
+
<div id="icon-wp-polls" class="icon32"><br /></div>
|
157 |
<h2><?php _e('Poll Templates', 'wp-polls'); ?></h2>
|
158 |
<!-- Template Variables -->
|
159 |
<h3><?php _e('Template Variables', 'wp-polls'); ?></h3>
|
279 |
<h3><?php _e('Poll Voting Form Templates', 'wp-polls'); ?></h3>
|
280 |
<table class="form-table">
|
281 |
<tr>
|
282 |
+
<td width="30%" valign="top">
|
283 |
<strong><?php _e('Voting Form Header:', 'wp-polls'); ?></strong><br /><br /><br />
|
284 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
285 |
+
<p style="margin: 2px 0">- %POLL_ID%</p>
|
286 |
+
<p style="margin: 2px 0">- %POLL_QUESTION%</p>
|
287 |
+
<p style="margin: 2px 0">- %POLL_START_DATE%</p>
|
288 |
+
<p style="margin: 2px 0">- %POLL_END_DATE%</p>
|
289 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTES%</p>
|
290 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTERS%</p>
|
291 |
+
<p style="margin: 2px 0">- %POLL_MULTIPLE_ANS_MAX%</p><br />
|
292 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('voteheader');" class="button" />
|
293 |
</td>
|
294 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_voteheader" name="poll_template_voteheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_voteheader'))); ?></textarea></td>
|
295 |
</tr>
|
296 |
<tr>
|
297 |
+
<td width="30%" valign="top">
|
298 |
<strong><?php _e('Voting Form Body:', 'wp-polls'); ?></strong><br /><br /><br />
|
299 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
300 |
+
<p style="margin: 2px 0">- %POLL_ID%</p>
|
301 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_ID%</p>
|
302 |
+
<p style="margin: 2px 0">- %POLL_ANSWER%</p>
|
303 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_VOTES%</p>
|
304 |
+
<p style="margin: 2px 0">- %POLL_CHECKBOX_RADIO%</p><br />
|
305 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votebody');" class="button" />
|
306 |
</td>
|
307 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_votebody" name="poll_template_votebody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votebody'))); ?></textarea></td>
|
308 |
</tr>
|
309 |
<tr>
|
310 |
+
<td width="30%" valign="top">
|
311 |
<strong><?php _e('Voting Form Footer:', 'wp-polls'); ?></strong><br /><br /><br />
|
312 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
313 |
+
<p style="margin: 2px 0">- %POLL_ID%</p>
|
314 |
+
<p style="margin: 2px 0">- %POLL_RESULT_URL%</p>
|
315 |
+
<p style="margin: 2px 0">- %POLL_MULTIPLE_ANS_MAX%</p><br />
|
316 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votefooter');" class="button" />
|
317 |
</td>
|
318 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_votefooter" name="poll_template_votefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votefooter'))); ?></textarea></td>
|
319 |
</tr>
|
320 |
</table>
|
321 |
|
323 |
<h3><?php _e('Poll Result Templates', 'wp-polls'); ?></h3>
|
324 |
<table class="form-table">
|
325 |
<tr>
|
326 |
+
<td width="30%" valign="top">
|
327 |
<strong><?php _e('Result Header:', 'wp-polls'); ?></strong><br /><br /><br />
|
328 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
329 |
+
<p style="margin: 2px 0">- %POLL_ID%</p>
|
330 |
+
<p style="margin: 2px 0">- %POLL_QUESTION%</p>
|
331 |
+
<p style="margin: 2px 0">- %POLL_START_DATE%</p>
|
332 |
+
<p style="margin: 2px 0">- %POLL_END_DATE%</p>
|
333 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTES%</p>
|
334 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTERS%</p>
|
335 |
+
<p style="margin: 2px 0">- %POLL_MULTIPLE_ANS_MAX%</p><br />
|
336 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultheader');" class="button" />
|
337 |
</td>
|
338 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_resultheader" name="poll_template_resultheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultheader'))); ?></textarea></td>
|
339 |
</tr>
|
340 |
<tr>
|
341 |
+
<td width="30%" valign="top">
|
342 |
<strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
|
343 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
344 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_ID%</p>
|
345 |
+
<p style="margin: 2px 0">- %POLL_ANSWER%</p>
|
346 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_TEXT%</p>
|
347 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_VOTES%</p>
|
348 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_PERCENTAGE%</p>
|
349 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_IMAGEWIDTH%</p><br />
|
350 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody');" class="button" />
|
351 |
</td>
|
352 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_resultbody" name="poll_template_resultbody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody'))); ?></textarea></td>
|
353 |
</tr>
|
354 |
<tr>
|
355 |
+
<td width="30%" valign="top">
|
356 |
<strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
|
357 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
358 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_ID%</p>
|
359 |
+
<p style="margin: 2px 0">- %POLL_ANSWER%</p>
|
360 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_TEXT%</p>
|
361 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_VOTES%</p>
|
362 |
+
- %POLL_ANSWER_PERCENTAGE%</p>
|
363 |
+
<p style="margin: 2px 0">- %POLL_ANSWER_IMAGEWIDTH%</p><br />
|
364 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody2');" class="button" />
|
365 |
</td>
|
366 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_resultbody2" name="poll_template_resultbody2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody2'))); ?></textarea></td>
|
367 |
</tr>
|
368 |
<tr>
|
369 |
+
<td width="30%" valign="top">
|
370 |
<strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
|
371 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
372 |
+
<p style="margin: 2px 0">- %POLL_ID%</p>
|
373 |
+
<p style="margin: 2px 0">- %POLL_START_DATE%</p>
|
374 |
+
<p style="margin: 2px 0">- %POLL_END_DATE%</p>
|
375 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTES%</p>
|
376 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTERS%</p>
|
377 |
+
<p style="margin: 2px 0">- %POLL_MOST_ANSWER%</p>
|
378 |
+
<p style="margin: 2px 0">- %POLL_MOST_VOTES%</p>
|
379 |
+
<p style="margin: 2px 0">- %POLL_MOST_PERCENTAGE%</p>
|
380 |
+
<p style="margin: 2px 0">- %POLL_LEAST_ANSWER%</p>
|
381 |
+
<p style="margin: 2px 0">- %POLL_LEAST_VOTES%</p>
|
382 |
+
<p style="margin: 2px 0">- %POLL_LEAST_PERCENTAGE%</p>
|
383 |
+
<p style="margin: 2px 0">- %POLL_MULTIPLE_ANS_MAX%</p><br />
|
384 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter');" class="button" />
|
385 |
</td>
|
386 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_resultfooter" name="poll_template_resultfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter'))); ?></textarea></td>
|
387 |
</tr>
|
388 |
<tr>
|
389 |
+
<td width="30%" valign="top">
|
390 |
<strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
|
391 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
392 |
+
<p style="margin: 2px 0">- %POLL_ID%</p>
|
393 |
+
<p style="margin: 2px 0">- %POLL_START_DATE%</p>
|
394 |
+
<p style="margin: 2px 0">- %POLL_END_DATE%</p>
|
395 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTES%</p>
|
396 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTERS%</p>
|
397 |
+
<p style="margin: 2px 0">- %POLL_MOST_ANSWER%</p>
|
398 |
+
<p style="margin: 2px 0">- %POLL_MOST_VOTES%</p>
|
399 |
+
<p style="margin: 2px 0">- %POLL_MOST_PERCENTAGE%</p>
|
400 |
+
<p style="margin: 2px 0">- %POLL_LEAST_ANSWER%</p>
|
401 |
+
<p style="margin: 2px 0">- %POLL_LEAST_VOTES%</p>
|
402 |
+
<p style="margin: 2px 0">- %POLL_LEAST_PERCENTAGE%</p>
|
403 |
+
<p style="margin: 2px 0">- %POLL_MULTIPLE_ANS_MAX%</p><br />
|
404 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter2');" class="button" />
|
405 |
</td>
|
406 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_resultfooter2" name="poll_template_resultfooter2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter2'))); ?></textarea></td>
|
407 |
</tr>
|
408 |
</table>
|
409 |
|
411 |
<h3><?php _e('Poll Archive Templates', 'wp-polls'); ?></h3>
|
412 |
<table class="form-table">
|
413 |
<tr>
|
414 |
+
<td width="30%" valign="top">
|
415 |
<strong><?php _e('Poll Archive Link', 'wp-polls'); ?></strong><br /><?php _e('Template For Displaying Poll Archive Link', 'wp-polls'); ?><br /><br />
|
416 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
417 |
+
<p style="margin: 2px 0">- %POLL_ARCHIVE_URL%</p><br />
|
418 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivelink');" class="button" />
|
419 |
</td>
|
420 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivelink" name="poll_template_pollarchivelink"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivelink'))); ?></textarea></td>
|
421 |
</tr>
|
422 |
<tr>
|
423 |
+
<td width="30%" valign="top">
|
424 |
<strong><?php _e('Individual Poll Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
|
425 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
426 |
+
<p style="margin: 2px 0">- <?php _e('N/A', 'wp-polls'); ?></p><br />
|
427 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchiveheader');" class="button" />
|
428 |
</td>
|
429 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchiveheader" name="poll_template_pollarchiveheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchiveheader'))); ?></textarea></td>
|
430 |
</tr>
|
431 |
<tr>
|
432 |
+
<td width="30%" valign="top">
|
433 |
<strong><?php _e('Individual Poll Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
|
434 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
435 |
+
<p style="margin: 2px 0">- %POLL_START_DATE%</p>
|
436 |
+
<p style="margin: 2px 0">- %POLL_END_DATE%</p>
|
437 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTES%</p>
|
438 |
+
<p style="margin: 2px 0">- %POLL_TOTALVOTERS%</p>
|
439 |
+
<p style="margin: 2px 0">- %POLL_MOST_ANSWER%</p>
|
440 |
+
<p style="margin: 2px 0">- %POLL_MOST_VOTES%</p>
|
441 |
+
<p style="margin: 2px 0">- %POLL_MOST_PERCENTAGE%</p>
|
442 |
+
<p style="margin: 2px 0">- %POLL_LEAST_ANSWER%</p>
|
443 |
+
<p style="margin: 2px 0">- %POLL_LEAST_VOTES%</p>
|
444 |
+
<p style="margin: 2px 0">- %POLL_LEAST_PERCENTAGE%</p>
|
445 |
+
<p style="margin: 2px 0">- %POLL_MULTIPLE_ANS_MAX%</p><br />
|
446 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivefooter');" class="button" />
|
447 |
</td>
|
448 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivefooter" name="poll_template_pollarchivefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivefooter'))); ?></textarea></td>
|
449 |
</tr>
|
450 |
<tr>
|
451 |
+
<td width="30%" valign="top">
|
452 |
<strong><?php _e('Paging Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
|
453 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
454 |
+
<p style="margin: 2px 0">- <?php _e('N/A', 'wp-polls'); ?></p><br />
|
455 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingheader');" class="button" />
|
456 |
</td>
|
457 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivepagingheader" name="poll_template_pollarchivepagingheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivepagingheader'))); ?></textarea></td>
|
458 |
</tr>
|
459 |
<tr>
|
460 |
+
<td width="30%" valign="top">
|
461 |
<strong><?php _e('Paging Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
|
462 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
463 |
+
<p style="margin: 2px 0">- <?php _e('N/A', 'wp-polls'); ?></p><br />
|
464 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingfooter');" class="button" />
|
465 |
</td>
|
466 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivepagingfooter" name="poll_template_pollarchivepagingfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivepagingfooter'))); ?></textarea></td>
|
467 |
</tr>
|
468 |
</table>
|
469 |
|
471 |
<h3><?php _e('Poll Misc Templates', 'wp-polls'); ?></h3>
|
472 |
<table class="form-table">
|
473 |
<tr>
|
474 |
+
<td width="30%" valign="top">
|
475 |
<strong><?php _e('Poll Disabled', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The Poll Is Disabled', 'wp-polls'); ?><br /><br />
|
476 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
477 |
+
<p style="margin: 2px 0">- <?php _e('N/A', 'wp-polls'); ?></p><br />
|
478 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('disable');" class="button" />
|
479 |
</td>
|
480 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_disable" name="poll_template_disable"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_disable'))); ?></textarea></td>
|
481 |
</tr>
|
482 |
<tr>
|
483 |
+
<td width="30%" valign="top">
|
484 |
<strong><?php _e('Poll Error', 'wp-polls'); ?></strong><br /><?php _e('Displayed When An Error Has Occured While Processing The Poll', 'wp-polls'); ?><br /><br />
|
485 |
<?php _e('Allowed Variables:', 'wp-polls'); ?><br />
|
486 |
+
<p style="margin: 2px 0">- <?php _e('N/A', 'wp-polls'); ?><br /><br />
|
487 |
<input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('error');" class="button" />
|
488 |
</td>
|
489 |
+
<td valign="top"><textarea cols="80" rows="15" id="poll_template_error" name="poll_template_error"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_error'))); ?></textarea></td>
|
490 |
</tr>
|
491 |
</table>
|
492 |
<p class="submit">
|
polls-uninstall.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
-
| WordPress 2.
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
@@ -78,6 +78,7 @@ switch($mode) {
|
|
78 |
$deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_wp-polls/wp-polls.php');
|
79 |
}
|
80 |
echo '<div class="wrap">';
|
|
|
81 |
echo '<h2>'.__('Uninstall WP-Polls', 'wp-polls').'</h2>';
|
82 |
echo '<p><strong>'.sprintf(__('<a href="%s">Click Here</a> To Finish The Uninstallation And WP-Polls Will Be Deactivated Automatically.', 'wp-polls'), $deactivate_url).'</strong></p>';
|
83 |
echo '</div>';
|
@@ -88,15 +89,16 @@ switch($mode) {
|
|
88 |
<!-- Uninstall WP-Polls (By: Philippe Corbes) -->
|
89 |
<form action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" method="post">
|
90 |
<div class="wrap">
|
|
|
91 |
<h2><?php _e('Uninstall WP-Polls', 'wp-polls'); ?></h2>
|
92 |
-
<p
|
93 |
<?php _e('Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll\'s voting logs. To completely remove this plugin, you can uninstall it here.', 'wp-polls'); ?>
|
94 |
</p>
|
95 |
-
<p style="
|
96 |
<strong><?php _e('WARNING:', 'wp-polls'); ?></strong><br />
|
97 |
<?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-polls'); ?>
|
98 |
</p>
|
99 |
-
<p style="
|
100 |
<strong><?php _e('The following WordPress Options/Tables will be DELETED:', 'wp-polls'); ?></strong><br />
|
101 |
</p>
|
102 |
<table class="widefat">
|
2 |
/*
|
3 |
+----------------------------------------------------------------+
|
4 |
| |
|
5 |
+
| WordPress 2.7 Plugin: WP-Polls 2.40 |
|
6 |
| Copyright (c) 2008 Lester "GaMerZ" Chan |
|
7 |
| |
|
8 |
| File Written By: |
|
78 |
$deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_wp-polls/wp-polls.php');
|
79 |
}
|
80 |
echo '<div class="wrap">';
|
81 |
+
echo '<div id="icon-wp-polls" class="icon32"><br /></div>';
|
82 |
echo '<h2>'.__('Uninstall WP-Polls', 'wp-polls').'</h2>';
|
83 |
echo '<p><strong>'.sprintf(__('<a href="%s">Click Here</a> To Finish The Uninstallation And WP-Polls Will Be Deactivated Automatically.', 'wp-polls'), $deactivate_url).'</strong></p>';
|
84 |
echo '</div>';
|
89 |
<!-- Uninstall WP-Polls (By: Philippe Corbes) -->
|
90 |
<form action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" method="post">
|
91 |
<div class="wrap">
|
92 |
+
<div id="icon-wp-polls" class="icon32"><br /></div>
|
93 |
<h2><?php _e('Uninstall WP-Polls', 'wp-polls'); ?></h2>
|
94 |
+
<p>
|
95 |
<?php _e('Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll\'s voting logs. To completely remove this plugin, you can uninstall it here.', 'wp-polls'); ?>
|
96 |
</p>
|
97 |
+
<p style="color: red">
|
98 |
<strong><?php _e('WARNING:', 'wp-polls'); ?></strong><br />
|
99 |
<?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-polls'); ?>
|
100 |
</p>
|
101 |
+
<p style="color: red">
|
102 |
<strong><?php _e('The following WordPress Options/Tables will be DELETED:', 'wp-polls'); ?></strong><br />
|
103 |
</p>
|
104 |
<table class="widefat">
|
readme.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2 |
-
<html>
|
3 |
<head>
|
4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5 |
-
<title>WP-Polls 2.
|
6 |
<style type="text/css" media="screen">
|
7 |
/* Default Style */
|
8 |
BODY {
|
@@ -204,7 +204,7 @@
|
|
204 |
<body>
|
205 |
<div id="Container">
|
206 |
<!-- Title -->
|
207 |
-
<div id="Title">WP-Polls 2.
|
208 |
|
209 |
<!-- Tabs -->
|
210 |
<ul id="Tabs">
|
@@ -235,6 +235,7 @@
|
|
235 |
</p>
|
236 |
<p>
|
237 |
<strong>Download:</strong><br />
|
|
|
238 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.31.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.31.zip">WP-Polls 2.31 For WordPress 2.5.x And 2.6.x</a><br />
|
239 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip">WP-Polls 2.20 For WordPress 2.1.x, 2.2.x And 2.3.x</a><br />
|
240 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip">WP-Polls 2.13 For WordPress 2.0.x</a><br />
|
@@ -262,7 +263,8 @@
|
|
262 |
</p>
|
263 |
<p>
|
264 |
<strong>Credits:</strong><br />
|
265 |
-
<strong>»</strong> __ngetext() by <a href="http://hweia.ru/" title="http://hweia.ru/">Anna Ozeritskaya</a
|
|
|
266 |
</p>
|
267 |
<p>
|
268 |
<strong>Note:</strong><br />
|
@@ -283,6 +285,22 @@
|
|
283 |
<div id="Changelog" style="display: none;">
|
284 |
<div class="SubTitle">» Changelog</div>
|
285 |
<ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
<li>
|
287 |
<strong>Version 2.31 (16-07-2008)</strong>
|
288 |
<ul>
|
@@ -532,7 +550,7 @@
|
|
532 |
<!-- Upgrade Instructions -->
|
533 |
<div id="Upgrade" style="display: none;">
|
534 |
<div class="SubTitle">» Upgrade Instructions</div>
|
535 |
-
<div class="SubSubTitle">From v2.xx To v2.
|
536 |
<ol>
|
537 |
<li>
|
538 |
<strong>Deactivate</strong> WP-Polls Plugin
|
@@ -583,8 +601,10 @@
|
|
583 |
</li><br />
|
584 |
<?php endif; ?>
|
585 |
</blockquote>
|
586 |
-
<p>To show specific poll, use <?php get_poll(<strong>2</strong>)
|
|
|
587 |
<p>To embed a specific poll in your post, use [poll id="<strong>2</strong>"] where <strong>2</strong> is your poll id.</p>
|
|
|
588 |
<p>To embed a specific poll's result in your post, use [poll id="<strong>2</strong>" type="result"] where <strong>2</strong> is your poll id.</p>
|
589 |
</li>
|
590 |
<li>
|
@@ -597,7 +617,7 @@
|
|
597 |
<strong>Activate</strong> WP-Polls Widget Plugin.
|
598 |
</li>
|
599 |
<li>
|
600 |
-
Go to '<strong>WP-Admin ->
|
601 |
</li>
|
602 |
<li>
|
603 |
You can <strong>add</strong> the Polls Widget by clicking on the 'Add' link besides it.
|
@@ -615,13 +635,13 @@
|
|
615 |
<div class="SubSubTitle">Polls Archive</div>
|
616 |
<ol>
|
617 |
<li>
|
618 |
-
Go to '<strong>WP-Admin ->
|
619 |
</li>
|
620 |
<li>
|
621 |
Type any title you like in the post's title area.
|
622 |
</li>
|
623 |
<li>
|
624 |
-
|
625 |
</li>
|
626 |
<li>
|
627 |
Click 'Edit' and type in '<strong>pollsarchive</strong>' in the text field (without the quotes) and click 'Save'.
|
@@ -633,7 +653,7 @@
|
|
633 |
Click 'Publish'.
|
634 |
</li>
|
635 |
<li>
|
636 |
-
If you <strong>ARE NOT</strong> using nice permalinks, you need to go to 'WP-Admin -> Polls -> Poll
|
637 |
</li>
|
638 |
</ol>
|
639 |
<div class="SubSubTitle">Note</div>
|
@@ -717,6 +737,6 @@
|
|
717 |
</div>
|
718 |
</div>
|
719 |
</div>
|
720 |
-
<p id="Copyright">WP-Polls 2.
|
721 |
</body>
|
722 |
</html>
|
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3 |
<head>
|
4 |
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5 |
+
<title>WP-Polls 2.40 Readme</title>
|
6 |
<style type="text/css" media="screen">
|
7 |
/* Default Style */
|
8 |
BODY {
|
204 |
<body>
|
205 |
<div id="Container">
|
206 |
<!-- Title -->
|
207 |
+
<div id="Title">WP-Polls 2.40 <span style="color: #aaaaaa;">Readme</span></div>
|
208 |
|
209 |
<!-- Tabs -->
|
210 |
<ul id="Tabs">
|
235 |
</p>
|
236 |
<p>
|
237 |
<strong>Download:</strong><br />
|
238 |
+
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.40.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.40.zip">WP-Polls 2.40 For WordPress 2.7.x</a><br />
|
239 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.31.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.31.zip">WP-Polls 2.31 For WordPress 2.5.x And 2.6.x</a><br />
|
240 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip">WP-Polls 2.20 For WordPress 2.1.x, 2.2.x And 2.3.x</a><br />
|
241 |
<strong>»</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip">WP-Polls 2.13 For WordPress 2.0.x</a><br />
|
263 |
</p>
|
264 |
<p>
|
265 |
<strong>Credits:</strong><br />
|
266 |
+
<strong>»</strong> __ngetext() by <a href="http://hweia.ru/" title="http://hweia.ru/">Anna Ozeritskaya</a>.<br />
|
267 |
+
<strong>»</strong> Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a>.
|
268 |
</p>
|
269 |
<p>
|
270 |
<strong>Note:</strong><br />
|
285 |
<div id="Changelog" style="display: none;">
|
286 |
<div class="SubTitle">» Changelog</div>
|
287 |
<ul>
|
288 |
+
<li>
|
289 |
+
<strong>Version 2.40 (12-12-2008)</strong>
|
290 |
+
<ul>
|
291 |
+
<li>NEW: Works For WordPress 2.7 Only</li>
|
292 |
+
<li>NEW: Load Admin JS And CSS Only In WP-Polls Admin Pages</li>
|
293 |
+
<li>NEW: Added polls-admin-css.css For WP-Polls Admin CSS Styles</li>
|
294 |
+
<li>NEW: Right To Left Language Support by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
295 |
+
<li>NEW: Added "polls-css-rtl.css" by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
296 |
+
<li>NEW: Applied Output Of polls_archive() To "polls_archive" Filter by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
297 |
+
<li>NEW: Added Call To polls_textdomain() In create_poll_table() and vote_poll() functions by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
298 |
+
<li>NEW: Uses wp_register_style(), wp_print_styles(), plugins_url() And site_url()</li>
|
299 |
+
<li>NEW: [poll id="-1"] or <?php get_poll(-1); ?> Will Randomize The Poll</li>
|
300 |
+
<li>FIXED: SSL Support</li>
|
301 |
+
<li>FIXED Moved Call To update_pollbar() From onblur To onclick Event. It Was Showing The Last Selection Instead Of Current One by <a href="http://persian-programming.com/" title="http://persian-programming.com/">Kambiz R. Khojasteh</a></li>
|
302 |
+
</ul>
|
303 |
+
</li>
|
304 |
<li>
|
305 |
<strong>Version 2.31 (16-07-2008)</strong>
|
306 |
<ul>
|
550 |
<!-- Upgrade Instructions -->
|
551 |
<div id="Upgrade" style="display: none;">
|
552 |
<div class="SubTitle">» Upgrade Instructions</div>
|
553 |
+
<div class="SubSubTitle">From v2.xx To v2.40</div>
|
554 |
<ol>
|
555 |
<li>
|
556 |
<strong>Deactivate</strong> WP-Polls Plugin
|
601 |
</li><br />
|
602 |
<?php endif; ?>
|
603 |
</blockquote>
|
604 |
+
<p>To show specific poll, use <?php get_poll(<strong>2</strong>); ?> where <strong>2</strong> is your poll id.</p>
|
605 |
+
<p>To show random poll, use <?php get_poll(<strong>-1</strong>); ?></p>
|
606 |
<p>To embed a specific poll in your post, use [poll id="<strong>2</strong>"] where <strong>2</strong> is your poll id.</p>
|
607 |
+
<p>To embed a random poll in your post, use [poll id="<strong>-1</strong>"]</p>
|
608 |
<p>To embed a specific poll's result in your post, use [poll id="<strong>2</strong>" type="result"] where <strong>2</strong> is your poll id.</p>
|
609 |
</li>
|
610 |
<li>
|
617 |
<strong>Activate</strong> WP-Polls Widget Plugin.
|
618 |
</li>
|
619 |
<li>
|
620 |
+
Go to '<strong>WP-Admin -> Appearance -> Widgets</strong>'.
|
621 |
</li>
|
622 |
<li>
|
623 |
You can <strong>add</strong> the Polls Widget by clicking on the 'Add' link besides it.
|
635 |
<div class="SubSubTitle">Polls Archive</div>
|
636 |
<ol>
|
637 |
<li>
|
638 |
+
Go to '<strong>WP-Admin -> Pages -> Add New</strong>'.
|
639 |
</li>
|
640 |
<li>
|
641 |
Type any title you like in the post's title area.
|
642 |
</li>
|
643 |
<li>
|
644 |
+
If you <strong>ARE </strong> using nice permalinks, after typing the title, WordPress will generate the permalink to the page. You will see an 'Edit' link just beside the permalink.
|
645 |
</li>
|
646 |
<li>
|
647 |
Click 'Edit' and type in '<strong>pollsarchive</strong>' in the text field (without the quotes) and click 'Save'.
|
653 |
Click 'Publish'.
|
654 |
</li>
|
655 |
<li>
|
656 |
+
If you <strong>ARE NOT</strong> using nice permalinks, you need to go to 'WP-Admin -> Polls -> Poll Options' and under '<strong>Poll Archive -> Polls Archive URL</strong>', you need to fill in the URL to the Polls Archive Page you created above.
|
657 |
</li>
|
658 |
</ol>
|
659 |
<div class="SubSubTitle">Note</div>
|
737 |
</div>
|
738 |
</div>
|
739 |
</div>
|
740 |
+
<p id="Copyright">WP-Polls 2.40<br />Copyright © 2008 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
|
741 |
</body>
|
742 |
</html>
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: GamerZ
|
3 |
Donate link: http://lesterchan.net/wordpress
|
4 |
Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
|
5 |
-
Requires at least: 2.
|
6 |
-
Stable tag: 2.
|
7 |
|
8 |
Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
|
9 |
|
2 |
Contributors: GamerZ
|
3 |
Donate link: http://lesterchan.net/wordpress
|
4 |
Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
|
5 |
+
Requires at least: 2.7
|
6 |
+
Stable tag: 2.40
|
7 |
|
8 |
Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
|
9 |
|
tinymce/plugins/polls/editor_plugin.js
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
author : 'Lester Chan',
|
25 |
authorurl : 'http://lesterchan.net',
|
26 |
infourl : 'http://lesterchan.net/portfolio/programming/php/',
|
27 |
-
version : '2.
|
28 |
};
|
29 |
}
|
30 |
});
|
24 |
author : 'Lester Chan',
|
25 |
authorurl : 'http://lesterchan.net',
|
26 |
infourl : 'http://lesterchan.net/portfolio/programming/php/',
|
27 |
+
version : '2.40'
|
28 |
};
|
29 |
}
|
30 |
});
|
wp-polls-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-Polls Widget
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds a Poll Widget to display single or multiple polls from WP-Polls Plugin. You will need to activate WP-Polls first.
|
6 |
-
Version: 2.
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
*/
|
@@ -92,10 +92,10 @@ function widget_polls_init() {
|
|
92 |
/* ]]> */
|
93 |
</script>
|
94 |
<?php
|
95 |
-
echo '<p
|
96 |
_e('Title', 'wp-polls');
|
97 |
echo ': </label><input type="text" id="polls-title" name="polls-title" value="'.htmlspecialchars(stripslashes($options['title'])).'" /></p>'."\n";
|
98 |
-
echo '<p
|
99 |
_e('Display Polls Archive Link Below Poll?', 'wp-polls');
|
100 |
echo ' </label>'."\n";
|
101 |
echo '<select id="polls-displayarchive" name="poll_archive_show" size="1">'."\n";
|
@@ -110,7 +110,7 @@ function widget_polls_init() {
|
|
110 |
_e('Yes', 'wp-polls');
|
111 |
echo '</option>'."\n";
|
112 |
echo '</select></p>'."\n";
|
113 |
-
echo '<p
|
114 |
_e('Current Active Poll', 'wp-polls');
|
115 |
echo ': </label>'."\n";
|
116 |
echo '<select id="poll_currentpoll" name="poll_currentpoll" size="1" onchange="show_multiple_polls()">'."\n";
|
@@ -134,7 +134,7 @@ function widget_polls_init() {
|
|
134 |
echo '>';
|
135 |
_e('Display Multiple Polls', 'wp-polls');
|
136 |
echo '</option>'."\n";
|
137 |
-
echo '<
|
138 |
$polls = $wpdb->get_results("SELECT pollq_id, pollq_question FROM $wpdb->pollsq ORDER BY pollq_id DESC");
|
139 |
if($polls) {
|
140 |
foreach($polls as $poll) {
|
@@ -155,7 +155,7 @@ function widget_polls_init() {
|
|
155 |
$display = 'display: none;';
|
156 |
$disabled = 'disabled="disabled"';
|
157 |
}
|
158 |
-
echo '<p id="poll_multiplepolls_text" style="
|
159 |
_e('Select Multiple Polls', 'wp-polls');
|
160 |
echo ': </label>'."\n";
|
161 |
echo '<select id="poll_multiplepolls" name="poll_multiplepolls[]" size="5" multiple="true" style="height: 100px; vertical-align: text-top;" $disabled>'."\n";
|
3 |
Plugin Name: WP-Polls Widget
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds a Poll Widget to display single or multiple polls from WP-Polls Plugin. You will need to activate WP-Polls first.
|
6 |
+
Version: 2.40
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
*/
|
92 |
/* ]]> */
|
93 |
</script>
|
94 |
<?php
|
95 |
+
echo '<p><label for="polls-title">';
|
96 |
_e('Title', 'wp-polls');
|
97 |
echo ': </label><input type="text" id="polls-title" name="polls-title" value="'.htmlspecialchars(stripslashes($options['title'])).'" /></p>'."\n";
|
98 |
+
echo '<p><label for="polls-displayarchive">';
|
99 |
_e('Display Polls Archive Link Below Poll?', 'wp-polls');
|
100 |
echo ' </label>'."\n";
|
101 |
echo '<select id="polls-displayarchive" name="poll_archive_show" size="1">'."\n";
|
110 |
_e('Yes', 'wp-polls');
|
111 |
echo '</option>'."\n";
|
112 |
echo '</select></p>'."\n";
|
113 |
+
echo '<p><label for="poll_currentpoll">';
|
114 |
_e('Current Active Poll', 'wp-polls');
|
115 |
echo ': </label>'."\n";
|
116 |
echo '<select id="poll_currentpoll" name="poll_currentpoll" size="1" onchange="show_multiple_polls()">'."\n";
|
134 |
echo '>';
|
135 |
_e('Display Multiple Polls', 'wp-polls');
|
136 |
echo '</option>'."\n";
|
137 |
+
echo '<optgroup> </optgroup>'."\n";
|
138 |
$polls = $wpdb->get_results("SELECT pollq_id, pollq_question FROM $wpdb->pollsq ORDER BY pollq_id DESC");
|
139 |
if($polls) {
|
140 |
foreach($polls as $poll) {
|
155 |
$display = 'display: none;';
|
156 |
$disabled = 'disabled="disabled"';
|
157 |
}
|
158 |
+
echo '<p id="poll_multiplepolls_text" style="'.$display.'"><label for="poll_multiplepolls">';
|
159 |
_e('Select Multiple Polls', 'wp-polls');
|
160 |
echo ': </label>'."\n";
|
161 |
echo '<select id="poll_multiplepolls" name="poll_multiplepolls[]" size="5" multiple="true" style="height: 100px; vertical-align: text-top;" $disabled>'."\n";
|
wp-polls.mo
CHANGED
Binary file
|
wp-polls.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-Polls
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
|
6 |
-
Version: 2.
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
*/
|
@@ -39,29 +39,10 @@ if (!function_exists('add_action')) {
|
|
39 |
}
|
40 |
|
41 |
|
42 |
-
### Use WordPress 2.6 Constants
|
43 |
-
if (!defined('WP_CONTENT_DIR')) {
|
44 |
-
define( 'WP_CONTENT_DIR', ABSPATH.'wp-content');
|
45 |
-
}
|
46 |
-
if (!defined('WP_CONTENT_URL')) {
|
47 |
-
define('WP_CONTENT_URL', get_option('siteurl').'/wp-content');
|
48 |
-
}
|
49 |
-
if (!defined('WP_PLUGIN_DIR')) {
|
50 |
-
define('WP_PLUGIN_DIR', WP_CONTENT_DIR.'/plugins');
|
51 |
-
}
|
52 |
-
if (!defined('WP_PLUGIN_URL')) {
|
53 |
-
define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins');
|
54 |
-
}
|
55 |
-
|
56 |
-
|
57 |
### Create Text Domain For Translations
|
58 |
add_action('init', 'polls_textdomain');
|
59 |
function polls_textdomain() {
|
60 |
-
|
61 |
-
load_plugin_textdomain('wp-polls', 'wp-content/plugins/wp-polls');
|
62 |
-
} else {
|
63 |
-
load_plugin_textdomain('wp-polls', false, 'wp-polls');
|
64 |
-
}
|
65 |
}
|
66 |
|
67 |
|
@@ -76,7 +57,7 @@ $wpdb->pollsip = $wpdb->prefix.'pollsip';
|
|
76 |
add_action('admin_menu', 'poll_menu');
|
77 |
function poll_menu() {
|
78 |
if (function_exists('add_menu_page')) {
|
79 |
-
add_menu_page(__('Polls', 'wp-polls'), __('Polls', 'wp-polls'), 'manage_polls', 'wp-polls/polls-manager.php');
|
80 |
}
|
81 |
if (function_exists('add_submenu_page')) {
|
82 |
add_submenu_page('wp-polls/polls-manager.php', __('Manage Polls', 'wp-polls'), __('Manage Polls', 'wp-polls'), 'manage_polls', 'wp-polls/polls-manager.php');
|
@@ -93,6 +74,7 @@ function get_poll($temp_poll_id = 0, $display = true) {
|
|
93 |
global $wpdb, $polls_loaded;
|
94 |
// Poll Result Link
|
95 |
$pollresult_id = intval($_GET['pollresult']);
|
|
|
96 |
// Check Whether Poll Is Disabled
|
97 |
if(intval(get_option('poll_currentpoll')) == -1) {
|
98 |
if($display) {
|
@@ -104,27 +86,34 @@ function get_poll($temp_poll_id = 0, $display = true) {
|
|
104 |
// Poll Is Enabled
|
105 |
} else {
|
106 |
// Hardcoded Poll ID Is Not Specified
|
107 |
-
|
108 |
// Random Poll
|
109 |
-
|
110 |
-
$
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
$poll_id =
|
121 |
-
} else {
|
122 |
-
// Get Current Poll ID
|
123 |
-
$poll_id = intval(get_option('poll_currentpoll'));
|
124 |
-
}
|
125 |
-
// Get Hardcoded Poll ID
|
126 |
-
} else {
|
127 |
-
$poll_id = intval($temp_poll_id);
|
128 |
}
|
129 |
}
|
130 |
|
@@ -184,13 +173,26 @@ function get_poll($temp_poll_id = 0, $display = true) {
|
|
184 |
### Function: Displays Polls Header
|
185 |
add_action('wp_head', 'poll_header');
|
186 |
function poll_header() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
$poll_ajax_style = get_option('poll_ajax_style');
|
188 |
-
$pollbar = get_option('poll_bar');
|
189 |
-
|
190 |
-
echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.31 -->'."\n";
|
191 |
echo '<script type="text/javascript">'."\n";
|
192 |
echo '/* <![CDATA[ */'."\n";
|
193 |
-
echo "\t".'var polls_ajax_url = \''.
|
194 |
echo "\t".'var polls_text_wait = \''.js_escape(__('Your last request is still being processed. Please wait a while ...', 'wp-polls')).'\';'."\n";
|
195 |
echo "\t".'var polls_text_valid = \''.js_escape(__('Please choose a valid poll answer.', 'wp-polls')).'\';'."\n";
|
196 |
echo "\t".'var polls_text_multiple = \''.js_escape(__('Maximum number of choices allowed:', 'wp-polls')).'\';'."\n";
|
@@ -199,11 +201,7 @@ function poll_header() {
|
|
199 |
echo '/* ]]> */'."\n";
|
200 |
echo '</script>'."\n";
|
201 |
wp_print_scripts(array('sack', 'wp-polls'));
|
202 |
-
|
203 |
-
echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/polls-css.css" type="text/css" media="screen" />'."\n";
|
204 |
-
} else {
|
205 |
-
echo '<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/wp-polls/polls-css.css" type="text/css" media="screen" />'."\n";
|
206 |
-
}
|
207 |
echo '<style type="text/css">'."\n";
|
208 |
if($pollbar['style'] == 'use_css') {
|
209 |
echo '.wp-polls .pollbar {'."\n";
|
@@ -220,23 +218,28 @@ function poll_header() {
|
|
220 |
echo "\t".'font-size: '.($pollbar['height']-2).'px;'."\n";
|
221 |
echo "\t".'line-height: '.$pollbar['height'].'px;'."\n";
|
222 |
echo "\t".'height: '.$pollbar['height'].'px;'."\n";
|
223 |
-
echo "\t".'background-image: url(\''.
|
224 |
echo "\t".'border: 1px solid #'.$pollbar['border'].';'."\n";
|
225 |
echo '}'."\n";
|
226 |
}
|
227 |
echo '</style>'."\n";
|
228 |
-
echo '<!-- End Of Script Generated By WP-Polls 2.
|
229 |
}
|
230 |
|
231 |
|
232 |
### Function: Displays Polls Header In WP-Admin
|
233 |
-
add_action('admin_head', 'poll_header_admin');
|
|
|
|
|
|
|
|
|
234 |
function poll_header_admin() {
|
235 |
-
wp_register_script('wp-polls-admin',
|
236 |
-
|
|
|
237 |
echo '<script type="text/javascript">'."\n";
|
238 |
echo '/* <![CDATA[ */'."\n";
|
239 |
-
echo "\t".'var polls_admin_ajax_url = \''.
|
240 |
echo "\t".'var polls_admin_text_delete_poll = \''.js_escape(__('Delete Poll', 'wp-polls')).'\';'."\n";
|
241 |
echo "\t".'var polls_admin_text_no_poll_logs = \''.js_escape(__('No poll logs available.', 'wp-polls')).'\';'."\n";
|
242 |
echo "\t".'var polls_admin_text_delete_all_logs = \''.js_escape(__('Delete All Logs', 'wp-polls')).'\';'."\n";
|
@@ -246,35 +249,50 @@ function poll_header_admin() {
|
|
246 |
echo "\t".'var polls_admin_text_delete_poll_ans = \''.js_escape(__('Delete Poll Answer', 'wp-polls')).'\';'."\n";
|
247 |
echo "\t".'var polls_admin_text_open_poll = \''.js_escape(__('Open Poll', 'wp-polls')).'\';'."\n";
|
248 |
echo "\t".'var polls_admin_text_close_poll = \''.js_escape(__('Close Poll', 'wp-polls')).'\';'."\n";
|
249 |
-
echo "\t".'var polls_admin_text_enter_poll_id = \''.js_escape(__('Enter Poll ID', 'wp-polls')).'\';'."\n";
|
250 |
-
echo "\t".'var polls_admin_text_enter_poll_id_again = \''.js_escape(__('Error: Poll ID must be numeric', 'wp-polls')).'\n\n'.js_escape(__('Please enter Poll ID again', 'wp-polls')).'\';'."\n";
|
251 |
echo '/* ]]> */'."\n";
|
252 |
echo '</script>'."\n";
|
253 |
wp_print_scripts(array('sack', 'wp-polls-admin'));
|
254 |
-
|
255 |
-
echo '<!-- End Of Script Generated By WP-Polls 2.
|
256 |
}
|
257 |
|
258 |
|
259 |
### Function: Displays Polls Footer In WP-Admin
|
260 |
add_action('admin_footer', 'poll_footer_admin');
|
261 |
-
function poll_footer_admin() {
|
262 |
-
// Javascript Code Courtesy Of WP-AddQuicktag (http://bueltge.de/wp-addquicktags-de-plugin/120/)
|
263 |
echo '<script type="text/javascript">'."\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
echo "\t".'if(document.getElementById("ed_toolbar")){'."\n";
|
265 |
echo "\t\t".'qt_toolbar = document.getElementById("ed_toolbar");'."\n";
|
266 |
-
echo "\t\t".'edButtons[edButtons.length] = new edButton("ed_poll","'.__('Poll', 'wp-polls').'", "", "","");'."\n";
|
267 |
echo "\t\t".'var qt_button = qt_toolbar.lastChild;'."\n";
|
268 |
echo "\t\t".'while (qt_button.nodeType != 1){'."\n";
|
269 |
echo "\t\t\t".'qt_button = qt_button.previousSibling;'."\n";
|
270 |
echo "\t\t".'}'."\n";
|
271 |
echo "\t\t".'qt_button = qt_button.cloneNode(true);'."\n";
|
272 |
-
echo "\t\t".'qt_button.value = "'.__('Poll', 'wp-polls').'";'."\n";
|
273 |
-
echo "\t\t".'qt_button.title = "'.__('Insert Poll', 'wp-polls').'";'."\n";
|
274 |
echo "\t\t".'qt_button.onclick = function () { insertPoll(\'code\', edCanvas);}'."\n";
|
275 |
echo "\t\t".'qt_button.id = "ed_poll";'."\n";
|
276 |
echo "\t\t".'qt_toolbar.appendChild(qt_button);'."\n";
|
277 |
echo "\t".'}'."\n";
|
|
|
278 |
echo '</script>'."\n";
|
279 |
}
|
280 |
|
@@ -295,7 +313,7 @@ function poll_tinymce_registerbutton($buttons) {
|
|
295 |
return $buttons;
|
296 |
}
|
297 |
function poll_tinymce_addplugin($plugin_array) {
|
298 |
-
$plugin_array['polls'] =
|
299 |
return $plugin_array;
|
300 |
}
|
301 |
|
@@ -506,7 +524,7 @@ function display_pollvote($poll_id, $without_poll_title = false) {
|
|
506 |
$temp_pollvote .= "</div>\n";
|
507 |
$poll_ajax_style = get_option('poll_ajax_style');
|
508 |
if(intval($poll_ajax_style['loading']) == 1) {
|
509 |
-
$temp_pollvote .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".
|
510 |
}
|
511 |
}
|
512 |
} else {
|
@@ -606,7 +624,7 @@ function display_pollresult($poll_id, $user_voted = '', $without_poll_title = fa
|
|
606 |
$template_answer = str_replace("%POLL_ANSWER%", $poll_answer_text, $template_answer);
|
607 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($poll_answer_text)), $template_answer);
|
608 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($poll_answer_votes), $template_answer);
|
609 |
-
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", $poll_answer_percentage, $template_answer);
|
610 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
611 |
// Print Out Results Body Template
|
612 |
$temp_pollresult .= "\t\t$template_answer\n";
|
@@ -617,7 +635,7 @@ function display_pollresult($poll_id, $user_voted = '', $without_poll_title = fa
|
|
617 |
$template_answer = str_replace("%POLL_ANSWER%", $poll_answer_text, $template_answer);
|
618 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($poll_answer_text)), $template_answer);
|
619 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($poll_answer_votes), $template_answer);
|
620 |
-
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", $poll_answer_percentage, $template_answer);
|
621 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
622 |
// Print Out Results Body Template
|
623 |
$temp_pollresult .= "\t\t$template_answer\n";
|
@@ -651,10 +669,10 @@ function display_pollresult($poll_id, $user_voted = '', $without_poll_title = fa
|
|
651 |
$template_footer = str_replace("%POLL_TOTALVOTERS%", number_format_i18n($poll_question_totalvoters), $template_footer);
|
652 |
$template_footer = str_replace("%POLL_MOST_ANSWER%", $poll_most_answer, $template_footer);
|
653 |
$template_footer = str_replace("%POLL_MOST_VOTES%", number_format_i18n($poll_most_votes), $template_footer);
|
654 |
-
$template_footer = str_replace("%POLL_MOST_PERCENTAGE%", $poll_most_percentage, $template_footer);
|
655 |
$template_footer = str_replace("%POLL_LEAST_ANSWER%", $poll_least_answer, $template_footer);
|
656 |
$template_footer = str_replace("%POLL_LEAST_VOTES%", number_format_i18n($poll_least_votes), $template_footer);
|
657 |
-
$template_footer = str_replace("%POLL_LEAST_PERCENTAGE%", $poll_least_percentage, $template_footer);
|
658 |
if($poll_multiple_ans > 0) {
|
659 |
$template_footer = str_replace("%POLL_MULTIPLE_ANS_MAX%", $poll_multiple_ans, $template_footer);
|
660 |
} else {
|
@@ -666,7 +684,7 @@ function display_pollresult($poll_id, $user_voted = '', $without_poll_title = fa
|
|
666 |
$temp_pollresult .= "</div>\n";
|
667 |
$poll_ajax_style = get_option('poll_ajax_style');
|
668 |
if(intval($poll_ajax_style['loading']) == 1) {
|
669 |
-
$temp_pollresult .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".
|
670 |
}
|
671 |
}
|
672 |
} else {
|
@@ -721,11 +739,11 @@ function poll_shortcode($atts) {
|
|
721 |
if(!function_exists('get_pollquestions')) {
|
722 |
function get_pollquestions($display = true) {
|
723 |
global $wpdb;
|
724 |
-
$totalpollq = $wpdb->get_var("SELECT COUNT(pollq_id) FROM $wpdb->pollsq");
|
725 |
if($display) {
|
726 |
-
echo
|
727 |
} else {
|
728 |
-
return
|
729 |
}
|
730 |
}
|
731 |
}
|
@@ -735,11 +753,11 @@ if(!function_exists('get_pollquestions')) {
|
|
735 |
if(!function_exists('get_pollanswers')) {
|
736 |
function get_pollanswers($display = true) {
|
737 |
global $wpdb;
|
738 |
-
$totalpolla = $wpdb->get_var("SELECT COUNT(polla_aid) FROM $wpdb->pollsa");
|
739 |
if($display) {
|
740 |
-
echo
|
741 |
} else {
|
742 |
-
return
|
743 |
}
|
744 |
}
|
745 |
}
|
@@ -749,11 +767,11 @@ if(!function_exists('get_pollanswers')) {
|
|
749 |
if(!function_exists('get_pollvotes')) {
|
750 |
function get_pollvotes($display = true) {
|
751 |
global $wpdb;
|
752 |
-
$totalvotes = $wpdb->get_var("SELECT SUM(pollq_totalvotes) FROM $wpdb->pollsq");
|
753 |
if($display) {
|
754 |
-
echo
|
755 |
} else {
|
756 |
-
return
|
757 |
}
|
758 |
}
|
759 |
}
|
@@ -763,11 +781,11 @@ if(!function_exists('get_pollvotes')) {
|
|
763 |
if(!function_exists('get_pollvoters')) {
|
764 |
function get_pollvoters($display = true) {
|
765 |
global $wpdb;
|
766 |
-
$totalvoters = $wpdb->get_var("SELECT SUM(pollq_totalvoters) FROM $wpdb->pollsq");
|
767 |
if($display) {
|
768 |
-
echo
|
769 |
} else {
|
770 |
-
return
|
771 |
}
|
772 |
}
|
773 |
}
|
@@ -978,7 +996,7 @@ function polls_archive() {
|
|
978 |
$template_answer = str_replace("%POLL_ANSWER%", $polls_answer['answers'], $template_answer);
|
979 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($polls_answer['answers'])), $template_answer);
|
980 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($polls_answer['votes']), $template_answer);
|
981 |
-
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", $poll_answer_percentage, $template_answer);
|
982 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
983 |
// Print Out Results Body Template
|
984 |
$pollsarchive_output_archive .= $template_answer;
|
@@ -989,7 +1007,7 @@ function polls_archive() {
|
|
989 |
$template_answer = str_replace("%POLL_ANSWER%", $polls_answer['answers'], $template_answer);
|
990 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($polls_answer['answers'])), $template_answer);
|
991 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($polls_answer['votes']), $template_answer);
|
992 |
-
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", $poll_answer_percentage, $template_answer);
|
993 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
994 |
// Print Out Results Body Template
|
995 |
$pollsarchive_output_archive .= $template_answer;
|
@@ -1021,10 +1039,10 @@ function polls_archive() {
|
|
1021 |
$template_footer = str_replace("%POLL_TOTALVOTERS%", number_format_i18n($polls_question['totalvoters']), $template_footer);
|
1022 |
$template_footer = str_replace("%POLL_MOST_ANSWER%", $poll_most_answer, $template_footer);
|
1023 |
$template_footer = str_replace("%POLL_MOST_VOTES%", number_format_i18n($poll_most_votes), $template_footer);
|
1024 |
-
$template_footer = str_replace("%POLL_MOST_PERCENTAGE%", $poll_most_percentage, $template_footer);
|
1025 |
$template_footer = str_replace("%POLL_LEAST_ANSWER%", $poll_least_answer, $template_footer);
|
1026 |
$template_footer = str_replace("%POLL_LEAST_VOTES%", number_format_i18n($poll_least_votes), $template_footer);
|
1027 |
-
$template_footer = str_replace("%POLL_LEAST_PERCENTAGE%", $poll_least_percentage, $template_footer);
|
1028 |
if($polls_question['multiple'] > 0) {
|
1029 |
$template_footer = str_replace("%POLL_MULTIPLE_ANS_MAX%", $polls_question['multiple'], $template_footer);
|
1030 |
} else {
|
@@ -1038,10 +1056,10 @@ function polls_archive() {
|
|
1038 |
$template_archive_footer = str_replace("%POLL_TOTALVOTERS%", number_format_i18n($polls_question['totalvoters']), $template_archive_footer);
|
1039 |
$template_archive_footer = str_replace("%POLL_MOST_ANSWER%", $poll_most_answer, $template_archive_footer);
|
1040 |
$template_archive_footer = str_replace("%POLL_MOST_VOTES%", number_format_i18n($poll_most_votes), $template_archive_footer);
|
1041 |
-
$template_archive_footer = str_replace("%POLL_MOST_PERCENTAGE%", $poll_most_percentage, $template_archive_footer);
|
1042 |
$template_archive_footer = str_replace("%POLL_LEAST_ANSWER%", $poll_least_answer, $template_archive_footer);
|
1043 |
$template_archive_footer = str_replace("%POLL_LEAST_VOTES%", number_format_i18n($poll_least_votes), $template_archive_footer);
|
1044 |
-
$template_archive_footer = str_replace("%POLL_LEAST_PERCENTAGE%", $poll_least_percentage, $template_archive_footer);
|
1045 |
if($polls_question['multiple'] > 0) {
|
1046 |
$template_archive_footer = str_replace("%POLL_MULTIPLE_ANS_MAX%", $polls_question['multiple'], $template_archive_footer);
|
1047 |
} else {
|
@@ -1062,34 +1080,34 @@ function polls_archive() {
|
|
1062 |
} else {
|
1063 |
$pollsarchive_output_archive .= '<div class="wp-polls-paging">'."\n";
|
1064 |
}
|
1065 |
-
$pollsarchive_output_archive .= '<span class="pages"
|
1066 |
if ($start_page >= 2 && $pages_to_show < $max_page) {
|
1067 |
-
$pollsarchive_output_archive .= '<a href="'.polls_archive_link(1).'" title="'.__('« First', 'wp-polls').'"
|
1068 |
$pollsarchive_output_archive .= '<span class="extend">...</span>';
|
1069 |
}
|
1070 |
if($page > 1) {
|
1071 |
-
$pollsarchive_output_archive .= '<a href="'.polls_archive_link(($page-1)).'" title="'.__('«', 'wp-polls').'"
|
1072 |
}
|
1073 |
for($i = $start_page; $i <= $end_page; $i++) {
|
1074 |
if($i == $page) {
|
1075 |
-
$pollsarchive_output_archive .= '<span class="current"
|
1076 |
} else {
|
1077 |
-
$pollsarchive_output_archive .= '<a href="'.polls_archive_link($i).'" title="'
|
1078 |
}
|
1079 |
}
|
1080 |
if(empty($page) || ($page+1) <= $max_page) {
|
1081 |
-
$pollsarchive_output_archive .= '<a href="'.polls_archive_link(($page+1)).'" title="'.__('»', 'wp-polls').'"
|
1082 |
}
|
1083 |
if ($end_page < $max_page) {
|
1084 |
$pollsarchive_output_archive .= '<span class="extend">...</span>';
|
1085 |
-
$pollsarchive_output_archive .= '<a href="'.polls_archive_link($max_page).'" title="'.__('Last »', 'wp-polls').'"
|
1086 |
}
|
1087 |
$pollsarchive_output_archive .= '</div>';
|
1088 |
$pollsarchive_output_archive .= stripslashes(get_option('poll_template_pollarchivepagingfooter'));
|
1089 |
}
|
1090 |
|
1091 |
// Output Polls Archive Page
|
1092 |
-
return $pollsarchive_output_archive;
|
1093 |
}
|
1094 |
|
1095 |
|
@@ -1132,6 +1150,7 @@ function poll_timestamp($poll_timestamp, $fieldname = 'pollq_timestamp', $displa
|
|
1132 |
}
|
1133 |
}
|
1134 |
echo '</select> @'."\n";
|
|
|
1135 |
$hour = gmdate('H', $poll_timestamp);
|
1136 |
echo '<select name="'.$fieldname.'_hour" size="1">'."\n";
|
1137 |
for($i = 0; $i < 24; $i++) {
|
@@ -1162,6 +1181,7 @@ function poll_timestamp($poll_timestamp, $fieldname = 'pollq_timestamp', $displa
|
|
1162 |
echo "<option value=\"$i\">$i</option>\n";
|
1163 |
}
|
1164 |
}
|
|
|
1165 |
echo '</select>'."\n";
|
1166 |
echo '</div>'."\n";
|
1167 |
}
|
@@ -1222,6 +1242,7 @@ vote_poll();
|
|
1222 |
function vote_poll() {
|
1223 |
global $wpdb, $user_identity, $user_ID;
|
1224 |
if(!empty($_POST['vote'])) {
|
|
|
1225 |
header('Content-Type: text/html; charset='.get_option('blog_charset').'');
|
1226 |
$poll_id = intval($_POST['poll_id']);
|
1227 |
$poll_aid = $_POST["poll_$poll_id"];
|
@@ -1234,7 +1255,7 @@ function vote_poll() {
|
|
1234 |
} elseif(!empty($_COOKIE['comment_author_'.COOKIEHASH])) {
|
1235 |
$pollip_user = addslashes($_COOKIE['comment_author_'.COOKIEHASH]);
|
1236 |
} else {
|
1237 |
-
$pollip_user = 'Guest';
|
1238 |
}
|
1239 |
$pollip_userid = intval($user_ID);
|
1240 |
$pollip_ip = get_ipaddress();
|
@@ -1310,9 +1331,9 @@ function polls_page_general_stats($content) {
|
|
1310 |
if($stats_display['polls'] == 1) {
|
1311 |
$content .= '<p><strong>'.__('WP-Polls', 'wp-polls').'</strong></p>'."\n";
|
1312 |
$content .= '<ul>'."\n";
|
1313 |
-
$content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> poll was created.', '<strong>%s</strong> polls were created.', get_pollquestions(false), 'wp-polls'), get_pollquestions(false)).'</li>'."\n";
|
1314 |
-
$content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> polls\' answer was given.', '<strong>%s</strong> polls\' answers were given.', get_pollanswers(false), 'wp-polls'), get_pollanswers(false)).'</li>'."\n";
|
1315 |
-
$content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> vote was casted.', '<strong>%s</strong> votes were casted.', get_pollvotes(false), 'wp-polls'), get_pollvotes(false)).'</li>'."\n";
|
1316 |
$content .= '</ul>'."\n";
|
1317 |
}
|
1318 |
return $content;
|
@@ -1323,6 +1344,7 @@ function polls_page_general_stats($content) {
|
|
1323 |
add_action('activate_wp-polls/wp-polls.php', 'create_poll_table');
|
1324 |
function create_poll_table() {
|
1325 |
global $wpdb;
|
|
|
1326 |
if(@is_file(ABSPATH.'/wp-admin/upgrade-functions.php')) {
|
1327 |
include_once(ABSPATH.'/wp-admin/upgrade-functions.php');
|
1328 |
} elseif(@is_file(ABSPATH.'/wp-admin/includes/upgrade.php')) {
|
@@ -1397,8 +1419,8 @@ function create_poll_table() {
|
|
1397 |
add_option('poll_template_resultheader', '<p style="text-align: center;"><strong>%POLL_QUESTION%</strong></p>'.
|
1398 |
'<div id="polls-%POLL_ID%-ans" class="wp-polls-ans">'.
|
1399 |
'<ul class="wp-polls-ul">', 'Template For Poll Header');
|
1400 |
-
add_option('poll_template_resultbody', '<li>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE
|
1401 |
-
add_option('poll_template_resultbody2', '<li><strong><i>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE
|
1402 |
add_option('poll_template_resultfooter', '</ul>'.
|
1403 |
'<p style="text-align: center;">'.__('Total Voters', 'wp-polls').': <strong>%POLL_TOTALVOTERS%</strong></p>'.
|
1404 |
'</div>', 'Template For Poll Result Footer');
|
@@ -1421,7 +1443,7 @@ function create_poll_table() {
|
|
1421 |
maybe_add_column($wpdb->pollsq, 'pollq_active', "ALTER TABLE $wpdb->pollsq ADD pollq_active TINYINT( 1 ) NOT NULL DEFAULT '1';");
|
1422 |
// Database Upgrade For WP-Polls 2.12
|
1423 |
maybe_add_column($wpdb->pollsip, 'pollip_userid', "ALTER TABLE $wpdb->pollsip ADD pollip_userid INT( 10 ) NOT NULL DEFAULT '0';");
|
1424 |
-
add_option('poll_archive_url',
|
1425 |
add_option('poll_archive_show', 1, 'Show Polls Archive?');
|
1426 |
// Database Upgrade For WP-Polls 2.13
|
1427 |
add_option('poll_bar', array('style' => 'default', 'background' => 'd8e1eb', 'border' => 'c8c8c8', 'height' => 8), 'Poll Bar Style');
|
@@ -1435,11 +1457,14 @@ function create_poll_table() {
|
|
1435 |
'</ul>', 'Template For Poll Archive Link');
|
1436 |
add_option('poll_archive_displaypoll', 2, 'Type Of Polls To Display In Polls Archive');
|
1437 |
add_option('poll_template_pollarchiveheader', '', 'Displayed Before Each Poll In The Poll Archive');
|
1438 |
-
add_option('poll_template_pollarchivefooter', '<p>Start Date: %POLL_START_DATE%<br />End Date: %POLL_END_DATE%</p>', 'Displayed After Each Poll In The Poll Archive');
|
1439 |
maybe_add_column($wpdb->pollsq, 'pollq_multiple', "ALTER TABLE $wpdb->pollsq ADD pollq_multiple TINYINT( 3 ) NOT NULL DEFAULT '0';");
|
1440 |
$pollq_totalvoters = maybe_add_column($wpdb->pollsq, 'pollq_totalvoters', "ALTER TABLE $wpdb->pollsq ADD pollq_totalvoters INT( 10 ) NOT NULL DEFAULT '0';");
|
1441 |
if($pollq_totalvoters) {
|
1442 |
-
$wpdb->
|
|
|
|
|
|
|
1443 |
}
|
1444 |
// Database Upgrade For WP-Polls 2.30
|
1445 |
add_option('poll_cookielog_expiry', 0, 'Cookie And Log Expiry Time');
|
@@ -1452,4 +1477,4 @@ function create_poll_table() {
|
|
1452 |
}
|
1453 |
cron_polls_place();
|
1454 |
}
|
1455 |
-
?>
|
3 |
Plugin Name: WP-Polls
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
|
6 |
+
Version: 2.40
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
*/
|
39 |
}
|
40 |
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
### Create Text Domain For Translations
|
43 |
add_action('init', 'polls_textdomain');
|
44 |
function polls_textdomain() {
|
45 |
+
load_plugin_textdomain('wp-polls', false, 'wp-polls');
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
|
57 |
add_action('admin_menu', 'poll_menu');
|
58 |
function poll_menu() {
|
59 |
if (function_exists('add_menu_page')) {
|
60 |
+
add_menu_page(__('Polls', 'wp-polls'), __('Polls', 'wp-polls'), 'manage_polls', 'wp-polls/polls-manager.php', '', plugins_url('wp-polls/images/poll.png'));
|
61 |
}
|
62 |
if (function_exists('add_submenu_page')) {
|
63 |
add_submenu_page('wp-polls/polls-manager.php', __('Manage Polls', 'wp-polls'), __('Manage Polls', 'wp-polls'), 'manage_polls', 'wp-polls/polls-manager.php');
|
74 |
global $wpdb, $polls_loaded;
|
75 |
// Poll Result Link
|
76 |
$pollresult_id = intval($_GET['pollresult']);
|
77 |
+
$temp_poll_id = intval($temp_poll_id);
|
78 |
// Check Whether Poll Is Disabled
|
79 |
if(intval(get_option('poll_currentpoll')) == -1) {
|
80 |
if($display) {
|
86 |
// Poll Is Enabled
|
87 |
} else {
|
88 |
// Hardcoded Poll ID Is Not Specified
|
89 |
+
switch($temp_poll_id) {
|
90 |
// Random Poll
|
91 |
+
case -1:
|
92 |
+
$poll_id = $wpdb->get_var("SELECT pollq_id FROM $wpdb->pollsq WHERE pollq_active = 1 ORDER BY RAND() LIMIT 1");
|
93 |
+
break;
|
94 |
+
// Latest Poll
|
95 |
+
case 0:
|
96 |
+
// Random Poll
|
97 |
+
if(intval(get_option('poll_currentpoll')) == -2) {
|
98 |
+
$random_poll_id = $wpdb->get_var("SELECT pollq_id FROM $wpdb->pollsq WHERE pollq_active = 1 ORDER BY RAND() LIMIT 1");
|
99 |
+
$poll_id = intval($random_poll_id);
|
100 |
+
if($pollresult_id > 0) {
|
101 |
+
$poll_id = $pollresult_id;
|
102 |
+
} elseif(intval($_POST['poll_id']) > 0) {
|
103 |
+
$poll_id = intval($_POST['poll_id']);
|
104 |
+
}
|
105 |
+
// Current Poll ID Is Not Specified
|
106 |
+
} elseif(intval(get_option('poll_currentpoll')) == 0) {
|
107 |
+
// Get Lastest Poll ID
|
108 |
+
$poll_id = intval(get_option('poll_latestpoll'));
|
109 |
+
} else {
|
110 |
+
// Get Current Poll ID
|
111 |
+
$poll_id = intval(get_option('poll_currentpoll'));
|
112 |
}
|
113 |
+
break;
|
114 |
+
// Take Poll ID From Arguments
|
115 |
+
default:
|
116 |
+
$poll_id = $temp_poll_id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
118 |
}
|
119 |
|
173 |
### Function: Displays Polls Header
|
174 |
add_action('wp_head', 'poll_header');
|
175 |
function poll_header() {
|
176 |
+
global $text_direction;
|
177 |
+
wp_register_script('wp-polls', plugins_url('wp-polls/polls-js-packed.js'), false, '2.40');
|
178 |
+
if(@file_exists(TEMPLATEPATH.'/polls-css.css')) {
|
179 |
+
wp_register_style('wp-polls', get_stylesheet_directory_uri().'/polls-css.css', false, '2.40', 'all');
|
180 |
+
} else {
|
181 |
+
wp_register_style('wp-polls', plugins_url('wp-polls/polls-css.css'), false, '2.40', 'all');
|
182 |
+
}
|
183 |
+
if('rtl' == $text_direction) {
|
184 |
+
if(@file_exists(TEMPLATEPATH.'/polls-css-rtl.css')) {
|
185 |
+
wp_register_style('wp-polls-rtl', get_stylesheet_directory_uri().'/polls-css-rtl.css', false, '2.40', 'all');
|
186 |
+
} else {
|
187 |
+
wp_register_style('wp-polls-rtl', plugins_url('wp-polls/polls-css-rtl.css'), false, '2.40', 'all');
|
188 |
+
}
|
189 |
+
}
|
190 |
$poll_ajax_style = get_option('poll_ajax_style');
|
191 |
+
$pollbar = get_option('poll_bar');
|
192 |
+
echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.40 -->'."\n";
|
|
|
193 |
echo '<script type="text/javascript">'."\n";
|
194 |
echo '/* <![CDATA[ */'."\n";
|
195 |
+
echo "\t".'var polls_ajax_url = \''.plugins_url('wp-polls/wp-polls.php')."';\n";
|
196 |
echo "\t".'var polls_text_wait = \''.js_escape(__('Your last request is still being processed. Please wait a while ...', 'wp-polls')).'\';'."\n";
|
197 |
echo "\t".'var polls_text_valid = \''.js_escape(__('Please choose a valid poll answer.', 'wp-polls')).'\';'."\n";
|
198 |
echo "\t".'var polls_text_multiple = \''.js_escape(__('Maximum number of choices allowed:', 'wp-polls')).'\';'."\n";
|
201 |
echo '/* ]]> */'."\n";
|
202 |
echo '</script>'."\n";
|
203 |
wp_print_scripts(array('sack', 'wp-polls'));
|
204 |
+
wp_print_styles(array('wp-polls', 'wp-polls-rtl'));
|
|
|
|
|
|
|
|
|
205 |
echo '<style type="text/css">'."\n";
|
206 |
if($pollbar['style'] == 'use_css') {
|
207 |
echo '.wp-polls .pollbar {'."\n";
|
218 |
echo "\t".'font-size: '.($pollbar['height']-2).'px;'."\n";
|
219 |
echo "\t".'line-height: '.$pollbar['height'].'px;'."\n";
|
220 |
echo "\t".'height: '.$pollbar['height'].'px;'."\n";
|
221 |
+
echo "\t".'background-image: url(\''.plugins_url('wp-polls/images/'.$pollbar['style'].'/pollbg.gif').'\');'."\n";
|
222 |
echo "\t".'border: 1px solid #'.$pollbar['border'].';'."\n";
|
223 |
echo '}'."\n";
|
224 |
}
|
225 |
echo '</style>'."\n";
|
226 |
+
echo '<!-- End Of Script Generated By WP-Polls 2.40 -->'."\n";
|
227 |
}
|
228 |
|
229 |
|
230 |
### Function: Displays Polls Header In WP-Admin
|
231 |
+
add_action('admin_head-wp-polls/polls-manager.php', 'poll_header_admin');
|
232 |
+
add_action('admin_head-wp-polls/polls-add.php', 'poll_header_admin');
|
233 |
+
add_action('admin_head-wp-polls/polls-options.php', 'poll_header_admin');
|
234 |
+
add_action('admin_head-wp-polls/polls-templates.php', 'poll_header_admin');
|
235 |
+
add_action('admin_head-wp-polls/polls-uninstall.php', 'poll_header_admin');
|
236 |
function poll_header_admin() {
|
237 |
+
wp_register_script('wp-polls-admin', plugins_url('wp-polls/polls-admin-js-packed.js'), false, '2.40');
|
238 |
+
wp_register_style('wp-polls-admin', plugins_url('wp-polls/polls-admin-css.css'), false, '2.40', 'all');
|
239 |
+
echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.40 -->'."\n";
|
240 |
echo '<script type="text/javascript">'."\n";
|
241 |
echo '/* <![CDATA[ */'."\n";
|
242 |
+
echo "\t".'var polls_admin_ajax_url = \''.plugins_url('wp-polls/polls-admin-ajax.php')."';\n";
|
243 |
echo "\t".'var polls_admin_text_delete_poll = \''.js_escape(__('Delete Poll', 'wp-polls')).'\';'."\n";
|
244 |
echo "\t".'var polls_admin_text_no_poll_logs = \''.js_escape(__('No poll logs available.', 'wp-polls')).'\';'."\n";
|
245 |
echo "\t".'var polls_admin_text_delete_all_logs = \''.js_escape(__('Delete All Logs', 'wp-polls')).'\';'."\n";
|
249 |
echo "\t".'var polls_admin_text_delete_poll_ans = \''.js_escape(__('Delete Poll Answer', 'wp-polls')).'\';'."\n";
|
250 |
echo "\t".'var polls_admin_text_open_poll = \''.js_escape(__('Open Poll', 'wp-polls')).'\';'."\n";
|
251 |
echo "\t".'var polls_admin_text_close_poll = \''.js_escape(__('Close Poll', 'wp-polls')).'\';'."\n";
|
|
|
|
|
252 |
echo '/* ]]> */'."\n";
|
253 |
echo '</script>'."\n";
|
254 |
wp_print_scripts(array('sack', 'wp-polls-admin'));
|
255 |
+
wp_print_styles('wp-polls-admin');
|
256 |
+
echo '<!-- End Of Script Generated By WP-Polls 2.40 -->'."\n";
|
257 |
}
|
258 |
|
259 |
|
260 |
### Function: Displays Polls Footer In WP-Admin
|
261 |
add_action('admin_footer', 'poll_footer_admin');
|
262 |
+
function poll_footer_admin() {
|
|
|
263 |
echo '<script type="text/javascript">'."\n";
|
264 |
+
echo '/* <![CDATA[ */'."\n";
|
265 |
+
echo "\t".'var polls_admin_text_enter_poll_id = \''.js_escape(__('Enter Poll ID', 'wp-polls')).'\';'."\n";
|
266 |
+
echo "\t".'var polls_admin_text_enter_poll_id_again = \''.js_escape(__('Error: Poll ID must be numeric', 'wp-polls')).'\n\n'.js_escape(__('Please enter Poll ID again', 'wp-polls')).'\';'."\n";
|
267 |
+
echo "\t".'function insertPoll(where, myField) {'."\n";
|
268 |
+
echo "\t\t".'var poll_id = prompt(polls_admin_text_enter_poll_id);'."\n";
|
269 |
+
echo "\t\t".'while(isNaN(poll_id)) {'."\n";
|
270 |
+
echo "\t\t\t".'poll_id = prompt(polls_admin_text_enter_poll_id_again);'."\n";
|
271 |
+
echo "\t\t".'}'."\n";
|
272 |
+
echo "\t\t".'if (poll_id >= -1) {'."\n";
|
273 |
+
echo "\t\t\t".'if(where == \'code\') {'."\n";
|
274 |
+
echo "\t\t\t\t".'edInsertContent(myField, \'[poll id="\' + poll_id + \'"]\');'."\n";
|
275 |
+
echo "\t\t\t".'} else {'."\n";
|
276 |
+
echo "\t\t\t\t".'return \'[poll id="\' + poll_id + \'"]\';'."\n";
|
277 |
+
echo "\t\t\t".'}'."\n";
|
278 |
+
echo "\t\t".'}'."\n";
|
279 |
+
echo "\t".'}'."\n";
|
280 |
+
// Javascript Code Courtesy Of WP-AddQuicktag (http://bueltge.de/wp-addquicktags-de-plugin/120/)
|
281 |
echo "\t".'if(document.getElementById("ed_toolbar")){'."\n";
|
282 |
echo "\t\t".'qt_toolbar = document.getElementById("ed_toolbar");'."\n";
|
283 |
+
echo "\t\t".'edButtons[edButtons.length] = new edButton("ed_poll","'.js_escape(__('Poll', 'wp-polls')).'", "", "","");'."\n";
|
284 |
echo "\t\t".'var qt_button = qt_toolbar.lastChild;'."\n";
|
285 |
echo "\t\t".'while (qt_button.nodeType != 1){'."\n";
|
286 |
echo "\t\t\t".'qt_button = qt_button.previousSibling;'."\n";
|
287 |
echo "\t\t".'}'."\n";
|
288 |
echo "\t\t".'qt_button = qt_button.cloneNode(true);'."\n";
|
289 |
+
echo "\t\t".'qt_button.value = "'.js_escape(__('Poll', 'wp-polls')).'";'."\n";
|
290 |
+
echo "\t\t".'qt_button.title = "'.js_escape(__('Insert Poll', 'wp-polls')).'";'."\n";
|
291 |
echo "\t\t".'qt_button.onclick = function () { insertPoll(\'code\', edCanvas);}'."\n";
|
292 |
echo "\t\t".'qt_button.id = "ed_poll";'."\n";
|
293 |
echo "\t\t".'qt_toolbar.appendChild(qt_button);'."\n";
|
294 |
echo "\t".'}'."\n";
|
295 |
+
echo '/* ]]> */'."\n";
|
296 |
echo '</script>'."\n";
|
297 |
}
|
298 |
|
313 |
return $buttons;
|
314 |
}
|
315 |
function poll_tinymce_addplugin($plugin_array) {
|
316 |
+
$plugin_array['polls'] = plugins_url('wp-polls/tinymce/plugins/polls/editor_plugin.js');
|
317 |
return $plugin_array;
|
318 |
}
|
319 |
|
524 |
$temp_pollvote .= "</div>\n";
|
525 |
$poll_ajax_style = get_option('poll_ajax_style');
|
526 |
if(intval($poll_ajax_style['loading']) == 1) {
|
527 |
+
$temp_pollvote .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".plugins_url('wp-polls/images/loading.gif')."\" width=\"16\" height=\"16\" alt=\"".__('Loading', 'wp-polls')." ...\" title=\"".__('Loading', 'wp-polls')." ...\" class=\"wp-polls-image\" /> ".__('Loading', 'wp-polls')." ...</div>\n";
|
528 |
}
|
529 |
}
|
530 |
} else {
|
624 |
$template_answer = str_replace("%POLL_ANSWER%", $poll_answer_text, $template_answer);
|
625 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($poll_answer_text)), $template_answer);
|
626 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($poll_answer_votes), $template_answer);
|
627 |
+
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", number_format_i18n($poll_answer_percentage, 1), $template_answer);
|
628 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
629 |
// Print Out Results Body Template
|
630 |
$temp_pollresult .= "\t\t$template_answer\n";
|
635 |
$template_answer = str_replace("%POLL_ANSWER%", $poll_answer_text, $template_answer);
|
636 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($poll_answer_text)), $template_answer);
|
637 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($poll_answer_votes), $template_answer);
|
638 |
+
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", number_format_i18n($poll_answer_percentage, 1), $template_answer);
|
639 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
640 |
// Print Out Results Body Template
|
641 |
$temp_pollresult .= "\t\t$template_answer\n";
|
669 |
$template_footer = str_replace("%POLL_TOTALVOTERS%", number_format_i18n($poll_question_totalvoters), $template_footer);
|
670 |
$template_footer = str_replace("%POLL_MOST_ANSWER%", $poll_most_answer, $template_footer);
|
671 |
$template_footer = str_replace("%POLL_MOST_VOTES%", number_format_i18n($poll_most_votes), $template_footer);
|
672 |
+
$template_footer = str_replace("%POLL_MOST_PERCENTAGE%", number_format_i18n($poll_most_percentage, 1), $template_footer);
|
673 |
$template_footer = str_replace("%POLL_LEAST_ANSWER%", $poll_least_answer, $template_footer);
|
674 |
$template_footer = str_replace("%POLL_LEAST_VOTES%", number_format_i18n($poll_least_votes), $template_footer);
|
675 |
+
$template_footer = str_replace("%POLL_LEAST_PERCENTAGE%", number_format_i18n($poll_least_percentage, 1), $template_footer);
|
676 |
if($poll_multiple_ans > 0) {
|
677 |
$template_footer = str_replace("%POLL_MULTIPLE_ANS_MAX%", $poll_multiple_ans, $template_footer);
|
678 |
} else {
|
684 |
$temp_pollresult .= "</div>\n";
|
685 |
$poll_ajax_style = get_option('poll_ajax_style');
|
686 |
if(intval($poll_ajax_style['loading']) == 1) {
|
687 |
+
$temp_pollresult .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".plugins_url('wp-polls/images/loading.gif')."\" width=\"16\" height=\"16\" alt=\"".__('Loading', 'wp-polls')." ...\" title=\"".__('Loading', 'wp-polls')." ...\" class=\"wp-polls-image\" /> ".__('Loading', 'wp-polls')." ...</div>\n";
|
688 |
}
|
689 |
}
|
690 |
} else {
|
739 |
if(!function_exists('get_pollquestions')) {
|
740 |
function get_pollquestions($display = true) {
|
741 |
global $wpdb;
|
742 |
+
$totalpollq = intval($wpdb->get_var("SELECT COUNT(pollq_id) FROM $wpdb->pollsq"));
|
743 |
if($display) {
|
744 |
+
echo $totalpollq;
|
745 |
} else {
|
746 |
+
return $totalpollq;
|
747 |
}
|
748 |
}
|
749 |
}
|
753 |
if(!function_exists('get_pollanswers')) {
|
754 |
function get_pollanswers($display = true) {
|
755 |
global $wpdb;
|
756 |
+
$totalpolla = intval($wpdb->get_var("SELECT COUNT(polla_aid) FROM $wpdb->pollsa"));
|
757 |
if($display) {
|
758 |
+
echo $totalpolla;
|
759 |
} else {
|
760 |
+
return $totalpolla;
|
761 |
}
|
762 |
}
|
763 |
}
|
767 |
if(!function_exists('get_pollvotes')) {
|
768 |
function get_pollvotes($display = true) {
|
769 |
global $wpdb;
|
770 |
+
$totalvotes = intval($wpdb->get_var("SELECT SUM(pollq_totalvotes) FROM $wpdb->pollsq"));
|
771 |
if($display) {
|
772 |
+
echo $totalvotes;
|
773 |
} else {
|
774 |
+
return $totalvotes;
|
775 |
}
|
776 |
}
|
777 |
}
|
781 |
if(!function_exists('get_pollvoters')) {
|
782 |
function get_pollvoters($display = true) {
|
783 |
global $wpdb;
|
784 |
+
$totalvoters = intval($wpdb->get_var("SELECT SUM(pollq_totalvoters) FROM $wpdb->pollsq"));
|
785 |
if($display) {
|
786 |
+
echo $totalvoters;
|
787 |
} else {
|
788 |
+
return $totalvoters;
|
789 |
}
|
790 |
}
|
791 |
}
|
996 |
$template_answer = str_replace("%POLL_ANSWER%", $polls_answer['answers'], $template_answer);
|
997 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($polls_answer['answers'])), $template_answer);
|
998 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($polls_answer['votes']), $template_answer);
|
999 |
+
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", number_format_i18n($poll_answer_percentage, 1), $template_answer);
|
1000 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
1001 |
// Print Out Results Body Template
|
1002 |
$pollsarchive_output_archive .= $template_answer;
|
1007 |
$template_answer = str_replace("%POLL_ANSWER%", $polls_answer['answers'], $template_answer);
|
1008 |
$template_answer = str_replace("%POLL_ANSWER_TEXT%", htmlspecialchars(strip_tags($polls_answer['answers'])), $template_answer);
|
1009 |
$template_answer = str_replace("%POLL_ANSWER_VOTES%", number_format_i18n($polls_answer['votes']), $template_answer);
|
1010 |
+
$template_answer = str_replace("%POLL_ANSWER_PERCENTAGE%", number_format_i18n($poll_answer_percentage, 1), $template_answer);
|
1011 |
$template_answer = str_replace("%POLL_ANSWER_IMAGEWIDTH%", $poll_answer_imagewidth, $template_answer);
|
1012 |
// Print Out Results Body Template
|
1013 |
$pollsarchive_output_archive .= $template_answer;
|
1039 |
$template_footer = str_replace("%POLL_TOTALVOTERS%", number_format_i18n($polls_question['totalvoters']), $template_footer);
|
1040 |
$template_footer = str_replace("%POLL_MOST_ANSWER%", $poll_most_answer, $template_footer);
|
1041 |
$template_footer = str_replace("%POLL_MOST_VOTES%", number_format_i18n($poll_most_votes), $template_footer);
|
1042 |
+
$template_footer = str_replace("%POLL_MOST_PERCENTAGE%", number_format_i18n($poll_most_percentage, 1), $template_footer);
|
1043 |
$template_footer = str_replace("%POLL_LEAST_ANSWER%", $poll_least_answer, $template_footer);
|
1044 |
$template_footer = str_replace("%POLL_LEAST_VOTES%", number_format_i18n($poll_least_votes), $template_footer);
|
1045 |
+
$template_footer = str_replace("%POLL_LEAST_PERCENTAGE%", number_format_i18n($poll_least_percentage, 1), $template_footer);
|
1046 |
if($polls_question['multiple'] > 0) {
|
1047 |
$template_footer = str_replace("%POLL_MULTIPLE_ANS_MAX%", $polls_question['multiple'], $template_footer);
|
1048 |
} else {
|
1056 |
$template_archive_footer = str_replace("%POLL_TOTALVOTERS%", number_format_i18n($polls_question['totalvoters']), $template_archive_footer);
|
1057 |
$template_archive_footer = str_replace("%POLL_MOST_ANSWER%", $poll_most_answer, $template_archive_footer);
|
1058 |
$template_archive_footer = str_replace("%POLL_MOST_VOTES%", number_format_i18n($poll_most_votes), $template_archive_footer);
|
1059 |
+
$template_archive_footer = str_replace("%POLL_MOST_PERCENTAGE%", number_format_i18n($poll_most_percentage, 1), $template_archive_footer);
|
1060 |
$template_archive_footer = str_replace("%POLL_LEAST_ANSWER%", $poll_least_answer, $template_archive_footer);
|
1061 |
$template_archive_footer = str_replace("%POLL_LEAST_VOTES%", number_format_i18n($poll_least_votes), $template_archive_footer);
|
1062 |
+
$template_archive_footer = str_replace("%POLL_LEAST_PERCENTAGE%", number_format_i18n($poll_least_percentage, 1), $template_archive_footer);
|
1063 |
if($polls_question['multiple'] > 0) {
|
1064 |
$template_archive_footer = str_replace("%POLL_MULTIPLE_ANS_MAX%", $polls_question['multiple'], $template_archive_footer);
|
1065 |
} else {
|
1080 |
} else {
|
1081 |
$pollsarchive_output_archive .= '<div class="wp-polls-paging">'."\n";
|
1082 |
}
|
1083 |
+
$pollsarchive_output_archive .= '<span class="pages"> '.sprintf(__('Page %s of %s', 'wp-polls'), number_format_i18n($page), number_format_i18n($max_page)).' </span>';
|
1084 |
if ($start_page >= 2 && $pages_to_show < $max_page) {
|
1085 |
+
$pollsarchive_output_archive .= '<a href="'.polls_archive_link(1).'" title="'.__('« First', 'wp-polls').'"> '.__('« First', 'wp-polls').' </a>';
|
1086 |
$pollsarchive_output_archive .= '<span class="extend">...</span>';
|
1087 |
}
|
1088 |
if($page > 1) {
|
1089 |
+
$pollsarchive_output_archive .= '<a href="'.polls_archive_link(($page-1)).'" title="'.__('«', 'wp-polls').'"> '.__('«', 'wp-polls').' </a>';
|
1090 |
}
|
1091 |
for($i = $start_page; $i <= $end_page; $i++) {
|
1092 |
if($i == $page) {
|
1093 |
+
$pollsarchive_output_archive .= '<span class="current"> '.number_format_i18n($i).' </span>';
|
1094 |
} else {
|
1095 |
+
$pollsarchive_output_archive .= '<a href="'.polls_archive_link($i).'" title="'.number_format_i18n($i).'"> '.number_format_i18n($i).' </a>';
|
1096 |
}
|
1097 |
}
|
1098 |
if(empty($page) || ($page+1) <= $max_page) {
|
1099 |
+
$pollsarchive_output_archive .= '<a href="'.polls_archive_link(($page+1)).'" title="'.__('»', 'wp-polls').'"> '.__('»', 'wp-polls').' </a>';
|
1100 |
}
|
1101 |
if ($end_page < $max_page) {
|
1102 |
$pollsarchive_output_archive .= '<span class="extend">...</span>';
|
1103 |
+
$pollsarchive_output_archive .= '<a href="'.polls_archive_link($max_page).'" title="'.__('Last »', 'wp-polls').'"> '.__('Last »', 'wp-polls').' </a>';
|
1104 |
}
|
1105 |
$pollsarchive_output_archive .= '</div>';
|
1106 |
$pollsarchive_output_archive .= stripslashes(get_option('poll_template_pollarchivepagingfooter'));
|
1107 |
}
|
1108 |
|
1109 |
// Output Polls Archive Page
|
1110 |
+
return apply_filters('polls_archive', $pollsarchive_output_archive);
|
1111 |
}
|
1112 |
|
1113 |
|
1150 |
}
|
1151 |
}
|
1152 |
echo '</select> @'."\n";
|
1153 |
+
echo '<span dir="ltr">'."\n";
|
1154 |
$hour = gmdate('H', $poll_timestamp);
|
1155 |
echo '<select name="'.$fieldname.'_hour" size="1">'."\n";
|
1156 |
for($i = 0; $i < 24; $i++) {
|
1181 |
echo "<option value=\"$i\">$i</option>\n";
|
1182 |
}
|
1183 |
}
|
1184 |
+
echo '</span>'."\n";
|
1185 |
echo '</select>'."\n";
|
1186 |
echo '</div>'."\n";
|
1187 |
}
|
1242 |
function vote_poll() {
|
1243 |
global $wpdb, $user_identity, $user_ID;
|
1244 |
if(!empty($_POST['vote'])) {
|
1245 |
+
polls_textdomain();
|
1246 |
header('Content-Type: text/html; charset='.get_option('blog_charset').'');
|
1247 |
$poll_id = intval($_POST['poll_id']);
|
1248 |
$poll_aid = $_POST["poll_$poll_id"];
|
1255 |
} elseif(!empty($_COOKIE['comment_author_'.COOKIEHASH])) {
|
1256 |
$pollip_user = addslashes($_COOKIE['comment_author_'.COOKIEHASH]);
|
1257 |
} else {
|
1258 |
+
$pollip_user = __('Guest', 'wp-polls');
|
1259 |
}
|
1260 |
$pollip_userid = intval($user_ID);
|
1261 |
$pollip_ip = get_ipaddress();
|
1331 |
if($stats_display['polls'] == 1) {
|
1332 |
$content .= '<p><strong>'.__('WP-Polls', 'wp-polls').'</strong></p>'."\n";
|
1333 |
$content .= '<ul>'."\n";
|
1334 |
+
$content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> poll was created.', '<strong>%s</strong> polls were created.', get_pollquestions(false), 'wp-polls'), number_format_i18n(get_pollquestions(false))).'</li>'."\n";
|
1335 |
+
$content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> polls\' answer was given.', '<strong>%s</strong> polls\' answers were given.', get_pollanswers(false), 'wp-polls'), number_format_i18n(get_pollanswers(false))).'</li>'."\n";
|
1336 |
+
$content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> vote was casted.', '<strong>%s</strong> votes were casted.', get_pollvotes(false), 'wp-polls'), number_format_i18n(get_pollvotes(false))).'</li>'."\n";
|
1337 |
$content .= '</ul>'."\n";
|
1338 |
}
|
1339 |
return $content;
|
1344 |
add_action('activate_wp-polls/wp-polls.php', 'create_poll_table');
|
1345 |
function create_poll_table() {
|
1346 |
global $wpdb;
|
1347 |
+
polls_textdomain();
|
1348 |
if(@is_file(ABSPATH.'/wp-admin/upgrade-functions.php')) {
|
1349 |
include_once(ABSPATH.'/wp-admin/upgrade-functions.php');
|
1350 |
} elseif(@is_file(ABSPATH.'/wp-admin/includes/upgrade.php')) {
|
1419 |
add_option('poll_template_resultheader', '<p style="text-align: center;"><strong>%POLL_QUESTION%</strong></p>'.
|
1420 |
'<div id="polls-%POLL_ID%-ans" class="wp-polls-ans">'.
|
1421 |
'<ul class="wp-polls-ul">', 'Template For Poll Header');
|
1422 |
+
add_option('poll_template_resultbody', '<li>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE%%'.__(',', 'wp-polls').' %POLL_ANSWER_VOTES% '.__('Votes', 'wp-polls').')</small><div class="pollbar" style="width: %POLL_ANSWER_IMAGEWIDTH%%;" title="%POLL_ANSWER_TEXT% (%POLL_ANSWER_PERCENTAGE%% | %POLL_ANSWER_VOTES% '.__('Votes', 'wp-polls').')"></div></li>', 'Template For Poll Results');
|
1423 |
+
add_option('poll_template_resultbody2', '<li><strong><i>%POLL_ANSWER% <small>(%POLL_ANSWER_PERCENTAGE%%'.__(',', 'wp-polls').' %POLL_ANSWER_VOTES% '.__('Votes', 'wp-polls').')</small></i></strong><div class="pollbar" style="width: %POLL_ANSWER_IMAGEWIDTH%%;" title="'.__('You Have Voted For This Choice', 'wp-polls').' - %POLL_ANSWER_TEXT% (%POLL_ANSWER_PERCENTAGE%% | %POLL_ANSWER_VOTES% '.__('Votes', 'wp-polls').')"></div></li>', 'Template For Poll Results (User Voted)');
|
1424 |
add_option('poll_template_resultfooter', '</ul>'.
|
1425 |
'<p style="text-align: center;">'.__('Total Voters', 'wp-polls').': <strong>%POLL_TOTALVOTERS%</strong></p>'.
|
1426 |
'</div>', 'Template For Poll Result Footer');
|
1443 |
maybe_add_column($wpdb->pollsq, 'pollq_active', "ALTER TABLE $wpdb->pollsq ADD pollq_active TINYINT( 1 ) NOT NULL DEFAULT '1';");
|
1444 |
// Database Upgrade For WP-Polls 2.12
|
1445 |
maybe_add_column($wpdb->pollsip, 'pollip_userid', "ALTER TABLE $wpdb->pollsip ADD pollip_userid INT( 10 ) NOT NULL DEFAULT '0';");
|
1446 |
+
add_option('poll_archive_url', site_url('pollsarchive'), 'Polls Archive URL');
|
1447 |
add_option('poll_archive_show', 1, 'Show Polls Archive?');
|
1448 |
// Database Upgrade For WP-Polls 2.13
|
1449 |
add_option('poll_bar', array('style' => 'default', 'background' => 'd8e1eb', 'border' => 'c8c8c8', 'height' => 8), 'Poll Bar Style');
|
1457 |
'</ul>', 'Template For Poll Archive Link');
|
1458 |
add_option('poll_archive_displaypoll', 2, 'Type Of Polls To Display In Polls Archive');
|
1459 |
add_option('poll_template_pollarchiveheader', '', 'Displayed Before Each Poll In The Poll Archive');
|
1460 |
+
add_option('poll_template_pollarchivefooter', '<p>'.__('Start Date:', 'wp-polls').' %POLL_START_DATE%<br />'.__('End Date:', 'wp-polls').' %POLL_END_DATE%</p>', 'Displayed After Each Poll In The Poll Archive');
|
1461 |
maybe_add_column($wpdb->pollsq, 'pollq_multiple', "ALTER TABLE $wpdb->pollsq ADD pollq_multiple TINYINT( 3 ) NOT NULL DEFAULT '0';");
|
1462 |
$pollq_totalvoters = maybe_add_column($wpdb->pollsq, 'pollq_totalvoters', "ALTER TABLE $wpdb->pollsq ADD pollq_totalvoters INT( 10 ) NOT NULL DEFAULT '0';");
|
1463 |
if($pollq_totalvoters) {
|
1464 |
+
$pollq_totalvoters = intval($wpdb->get_var("SELECT SUM(pollq_totalvoters) FROM $wpdb->pollsq"));
|
1465 |
+
if($pollq_totalvoters == 0) {
|
1466 |
+
$wpdb->query("UPDATE $wpdb->pollsq SET pollq_totalvoters = pollq_totalvotes");
|
1467 |
+
}
|
1468 |
}
|
1469 |
// Database Upgrade For WP-Polls 2.30
|
1470 |
add_option('poll_cookielog_expiry', 0, 'Cookie And Log Expiry Time');
|
1477 |
}
|
1478 |
cron_polls_place();
|
1479 |
}
|
1480 |
+
?>
|
wp-polls.pot
CHANGED
@@ -2,23 +2,24 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-Polls 2.31\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2008-
|
6 |
-
"PO-Revision-Date: 2008-
|
7 |
"Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
|
8 |
"Language-Team: Lester Chan <lesterchan@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Country: SINGAPORE\n"
|
13 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"X-Poedit-Language: English\n"
|
|
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
#: polls-add.php:36
|
19 |
-
#: polls-add.php:
|
20 |
-
#: polls-add.php:
|
21 |
-
#: wp-polls.php:
|
22 |
msgid "Add Poll"
|
23 |
msgstr ""
|
24 |
|
@@ -39,15 +40,15 @@ msgid "Poll '%s' Added Successfully."
|
|
39 |
msgstr ""
|
40 |
|
41 |
#: polls-add.php:96
|
42 |
-
#: polls-manager.php:
|
43 |
-
#: wp-polls.php:
|
44 |
msgid "Manage Polls"
|
45 |
msgstr ""
|
46 |
|
47 |
#: polls-add.php:124
|
48 |
-
#: polls-logs.php:
|
49 |
-
#: polls-logs.php:
|
50 |
-
#: polls-manager.php:
|
51 |
msgid "Answer"
|
52 |
msgstr ""
|
53 |
|
@@ -55,104 +56,104 @@ msgstr ""
|
|
55 |
msgid "You need at least a minimum of 2 poll answers."
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: polls-add.php:
|
59 |
-
#: polls-manager.php:
|
60 |
msgid "Poll Question"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: polls-add.php:
|
64 |
-
#: polls-manager.php:
|
65 |
-
#: polls-manager.php:
|
66 |
msgid "Question"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: polls-add.php:
|
70 |
-
#: polls-manager.php:
|
71 |
msgid "Poll Answers"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: polls-add.php:
|
75 |
-
#: polls-manager.php:
|
76 |
msgid "Add Answer"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: polls-add.php:
|
80 |
-
#: polls-manager.php:
|
81 |
msgid "Remove Answer"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: polls-add.php:
|
85 |
-
#: polls-manager.php:
|
86 |
#, php-format
|
87 |
msgid "Answer %s"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: polls-add.php:
|
91 |
-
#: polls-manager.php:
|
92 |
msgid "Poll Multiple Answers"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: polls-add.php:
|
96 |
-
#: polls-manager.php:
|
97 |
msgid "Allows Users To Select More Than One Answer?"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: polls-add.php:
|
101 |
-
#: polls-manager.php:
|
102 |
-
#: polls-options.php:
|
103 |
-
#: polls-options.php:
|
104 |
-
#: polls-options.php:
|
105 |
#: wp-polls-widget.php:105
|
106 |
msgid "No"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: polls-add.php:
|
110 |
-
#: polls-logs.php:
|
111 |
-
#: polls-manager.php:
|
112 |
-
#: polls-manager.php:
|
113 |
-
#: polls-options.php:
|
114 |
-
#: polls-options.php:
|
115 |
-
#: polls-options.php:
|
116 |
-
#: polls-uninstall.php:
|
117 |
#: wp-polls-widget.php:110
|
118 |
msgid "Yes"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: polls-add.php:
|
122 |
-
#: polls-manager.php:
|
123 |
msgid "Maximum Number Of Selected Answers Allowed?"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: polls-add.php:
|
127 |
-
#: polls-manager.php:
|
128 |
msgid "Poll Start/End Date"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: polls-add.php:
|
132 |
-
#: polls-manager.php:
|
133 |
-
#: polls-manager.php:
|
134 |
msgid "Start Date/Time"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: polls-add.php:
|
138 |
-
#: polls-manager.php:
|
139 |
-
#: polls-manager.php:
|
140 |
msgid "End Date/Time"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: polls-add.php:
|
144 |
-
#: polls-manager.php:
|
145 |
msgid "Do NOT Expire This Poll"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: polls-add.php:
|
149 |
-
#: polls-manager.php:
|
150 |
msgid "Cancel"
|
151 |
msgstr ""
|
152 |
|
153 |
#: polls-admin-ajax.php:43
|
154 |
-
#: polls-manager.php:
|
155 |
-
#: wp-polls.php:
|
156 |
msgid "Delete All Logs"
|
157 |
msgstr ""
|
158 |
|
@@ -165,8 +166,8 @@ msgid "An Error Has Occured While Deleting All Polls Logs."
|
|
165 |
msgstr ""
|
166 |
|
167 |
#: polls-admin-ajax.php:54
|
168 |
-
#: polls-logs.php:
|
169 |
-
#: wp-polls.php:
|
170 |
msgid "Delete Logs For This Poll Only"
|
171 |
msgstr ""
|
172 |
|
@@ -181,7 +182,7 @@ msgid "An Error Has Occured While Deleting All Logs For '%s'"
|
|
181 |
msgstr ""
|
182 |
|
183 |
#: polls-admin-ajax.php:67
|
184 |
-
#: wp-polls.php:
|
185 |
msgid "Delete Poll Answer"
|
186 |
msgstr ""
|
187 |
|
@@ -196,8 +197,8 @@ msgid "Error In Deleting Poll Answer '%s'."
|
|
196 |
msgstr ""
|
197 |
|
198 |
#: polls-admin-ajax.php:83
|
199 |
-
#: polls-manager.php:
|
200 |
-
#: wp-polls.php:
|
201 |
msgid "Open Poll"
|
202 |
msgstr ""
|
203 |
|
@@ -212,8 +213,8 @@ msgid "Error Opening Poll '%s'"
|
|
212 |
msgstr ""
|
213 |
|
214 |
#: polls-admin-ajax.php:94
|
215 |
-
#: polls-manager.php:
|
216 |
-
#: wp-polls.php:
|
217 |
msgid "Close Poll"
|
218 |
msgstr ""
|
219 |
|
@@ -228,7 +229,7 @@ msgid "Error Closing Poll '%s'"
|
|
228 |
msgstr ""
|
229 |
|
230 |
#: polls-admin-ajax.php:105
|
231 |
-
#: wp-polls.php:
|
232 |
msgid "Delete Poll"
|
233 |
msgstr ""
|
234 |
|
@@ -249,207 +250,208 @@ msgstr ""
|
|
249 |
#: polls-logs.php:69
|
250 |
#: polls-logs.php:102
|
251 |
#: polls-logs.php:105
|
|
|
252 |
msgid "Guest"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: polls-logs.php:
|
256 |
msgid "Poll's Logs"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: polls-logs.php:
|
260 |
#, php-format
|
261 |
msgid "There are a total of <strong>%s</strong> recorded vote for this poll."
|
262 |
msgid_plural "There are a total of <strong>%s</strong> recorded votes for this poll."
|
263 |
msgstr[0] ""
|
264 |
msgstr[1] ""
|
265 |
|
266 |
-
#: polls-logs.php:
|
267 |
#, php-format
|
268 |
msgid "<strong>»</strong> <strong>%s</strong> vote is casted by registered users"
|
269 |
msgid_plural "<strong>»</strong> <strong>%s</strong> votes are casted by registered users"
|
270 |
msgstr[0] ""
|
271 |
msgstr[1] ""
|
272 |
|
273 |
-
#: polls-logs.php:
|
274 |
#, php-format
|
275 |
msgid "<strong>»</strong> <strong>%s</strong> vote is casted by comment authors"
|
276 |
msgid_plural "<strong>»</strong> <strong>%s</strong> votes are casted by comment authors"
|
277 |
msgstr[0] ""
|
278 |
msgstr[1] ""
|
279 |
|
280 |
-
#: polls-logs.php:
|
281 |
#, php-format
|
282 |
msgid "<strong>»</strong> <strong>%s</strong> vote is casted by guests"
|
283 |
msgid_plural "<strong>»</strong> <strong>%s</strong> votes are casted by guests"
|
284 |
msgstr[0] ""
|
285 |
msgstr[1] ""
|
286 |
|
287 |
-
#: polls-logs.php:
|
288 |
msgid "Filter Poll's Logs"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: polls-logs.php:
|
292 |
msgid "Display All Users That Voted For"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: polls-logs.php:
|
296 |
-
#: polls-logs.php:
|
297 |
msgid "Voters To EXCLUDE"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: polls-logs.php:
|
301 |
-
#: polls-logs.php:
|
302 |
msgid "Registered Users"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: polls-logs.php:
|
306 |
-
#: polls-logs.php:
|
307 |
msgid "Comment Authors"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: polls-logs.php:
|
311 |
msgid "Guests"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: polls-logs.php:
|
315 |
-
#: polls-logs.php:
|
316 |
-
#: polls-logs.php:
|
317 |
msgid "Filter"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: polls-logs.php:
|
321 |
msgid "Display Users That Voted For"
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: polls-logs.php:
|
325 |
msgid "More Than"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: polls-logs.php:
|
329 |
msgid "More Than Or Exactly"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: polls-logs.php:
|
333 |
msgid "Exactly"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: polls-logs.php:
|
337 |
msgid "Less Than Or Exactly"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: polls-logs.php:
|
341 |
msgid "Less Than"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: polls-logs.php:
|
345 |
msgid "1 Answer"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: polls-logs.php:
|
349 |
-
#: polls-logs.php:
|
350 |
#, php-format
|
351 |
msgid "%s Answer"
|
352 |
msgid_plural "%s Answers"
|
353 |
msgstr[0] ""
|
354 |
msgstr[1] ""
|
355 |
|
356 |
-
#: polls-logs.php:
|
357 |
msgid "Guests will automatically be excluded"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: polls-logs.php:
|
361 |
msgid "Display What This User Has Voted"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: polls-logs.php:
|
365 |
msgid "Clear Filter"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: polls-logs.php:
|
369 |
msgid "Poll Logs"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: polls-logs.php:
|
373 |
msgid "This default filter is limited to display only <strong>100</strong> records."
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: polls-logs.php:
|
377 |
msgid "IP"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: polls-logs.php:
|
381 |
msgid "Host"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: polls-logs.php:
|
385 |
-
#: polls-logs.php:
|
386 |
msgid "Date"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: polls-logs.php:
|
390 |
-
#: polls-logs.php:
|
391 |
-
#: polls-manager.php:
|
392 |
-
#: polls-manager.php:
|
393 |
-
#: polls-manager.php:
|
394 |
-
#: polls-manager.php:
|
395 |
-
#: wp-polls.php:
|
396 |
-
#: wp-polls.php:
|
397 |
-
#: wp-polls.php:
|
398 |
-
#: wp-polls.php:
|
399 |
-
#: wp-polls.php:
|
400 |
-
#: wp-polls.php:
|
401 |
#, php-format
|
402 |
msgid "%s @ %s"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: polls-logs.php:
|
406 |
-
#: polls-logs.php:
|
407 |
msgid "User"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: polls-logs.php:
|
411 |
msgid "No."
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: polls-logs.php:
|
415 |
msgid "IP/Host"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: polls-logs.php:
|
419 |
#, php-format
|
420 |
msgid "Total number of records that matches this filter: <strong>%s</strong>"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: polls-logs.php:
|
424 |
msgid "No poll logs matches the filter."
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: polls-logs.php:
|
428 |
-
#: polls-logs.php:
|
429 |
msgid "No poll logs available for this poll."
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: polls-logs.php:
|
433 |
msgid "Delete Poll Logs"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: polls-logs.php:
|
437 |
msgid "Are You Sure You Want To Delete Logs For This Poll Only?"
|
438 |
msgstr ""
|
439 |
|
440 |
-
#: polls-logs.php:
|
441 |
#, php-format
|
442 |
msgid "You are about to delete poll logs for this poll '%s' ONLY. This action is not reversible."
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: polls-logs.php:
|
446 |
-
#: polls-manager.php:
|
447 |
msgid "Note: If your logging method is by IP and Cookie or by Cookie, users may still be unable to vote if they have voted before as the cookie is still stored in their computer."
|
448 |
msgstr ""
|
449 |
|
450 |
#: polls-manager.php:39
|
451 |
-
#: polls-manager.php:
|
452 |
-
#: polls-manager.php:
|
453 |
msgid "Edit Poll"
|
454 |
msgstr ""
|
455 |
|
@@ -483,161 +485,167 @@ msgstr ""
|
|
483 |
msgid "Poll '%s' Edited Successfully."
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: polls-manager.php:
|
487 |
msgid "No more poll's answer to be removed."
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: polls-manager.php:
|
491 |
msgid "Answer No."
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: polls-manager.php:
|
495 |
msgid "Answer Text"
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: polls-manager.php:
|
499 |
msgid "No. Of Votes"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: polls-manager.php:
|
503 |
msgid "Null Votes"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: polls-manager.php:
|
507 |
-
#: polls-manager.php:
|
508 |
msgid "Delete"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: polls-manager.php:
|
512 |
#, php-format
|
513 |
msgid "You are about to delete this poll's answer '%s'."
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: polls-manager.php:
|
517 |
msgid "Total Votes:"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: polls-manager.php:
|
521 |
-
#: polls-manager.php:
|
522 |
msgid "Total Voters:"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: polls-manager.php:
|
526 |
msgid "Edit Start Date/Time"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: polls-manager.php:
|
530 |
msgid "This Poll Will Not Expire"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: polls-manager.php:
|
534 |
#, php-format
|
535 |
msgid "You are about to CLOSE this poll '%s'."
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: polls-manager.php:
|
539 |
#, php-format
|
540 |
msgid "You are about to OPEN this poll '%s'."
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: polls-manager.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
544 |
msgid "ID"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: polls-manager.php:
|
548 |
#: polls-templates.php:122
|
549 |
#: polls-templates.php:125
|
550 |
-
#: wp-polls.php:
|
551 |
-
#: wp-polls.php:
|
552 |
msgid "Total Voters"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#: polls-manager.php:
|
556 |
msgid "Status"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: polls-manager.php:
|
560 |
msgid "Action"
|
561 |
msgstr ""
|
562 |
|
563 |
-
#: polls-manager.php:
|
564 |
-
#: wp-polls.php:
|
565 |
-
#: wp-polls.php:
|
566 |
-
#: wp-polls.php:
|
567 |
msgid "No Expiry"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: polls-manager.php:518
|
571 |
#: polls-manager.php:522
|
572 |
-
#: polls-manager.php:
|
|
|
573 |
msgid "Displayed:"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: polls-manager.php:
|
577 |
msgid "Open"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: polls-manager.php:
|
581 |
msgid "Future"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: polls-manager.php:
|
585 |
msgid "Closed"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: polls-manager.php:
|
589 |
msgid "Logs"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: polls-manager.php:
|
593 |
msgid "Edit"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: polls-manager.php:
|
597 |
#, php-format
|
598 |
msgid "You are about to delete this poll, '%s'."
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: polls-manager.php:
|
602 |
msgid "No Polls Found"
|
603 |
msgstr ""
|
604 |
|
605 |
-
#: polls-manager.php:
|
606 |
msgid "Polls Stats:"
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: polls-manager.php:
|
610 |
msgid "Total Polls:"
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: polls-manager.php:
|
614 |
msgid "Total Polls' Answers:"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: polls-manager.php:
|
618 |
msgid "Total Votes Casted:"
|
619 |
msgstr ""
|
620 |
|
621 |
-
#: polls-manager.php:
|
622 |
msgid "Polls Logs"
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: polls-manager.php:
|
626 |
msgid "Are You Sure You Want To Delete All Polls Logs?"
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: polls-manager.php:
|
630 |
msgid "You are about to delete all poll logs. This action is not reversible."
|
631 |
msgstr ""
|
632 |
|
633 |
-
#: polls-manager.php:
|
634 |
-
#: wp-polls.php:
|
635 |
msgid "No poll logs available."
|
636 |
msgstr ""
|
637 |
|
638 |
#: polls-options.php:70
|
639 |
-
#: polls-options.php:
|
640 |
-
#: polls-options.php:
|
641 |
msgid "Poll Bar Style"
|
642 |
msgstr ""
|
643 |
|
@@ -686,7 +694,7 @@ msgid "Poll Close Option"
|
|
686 |
msgstr ""
|
687 |
|
688 |
#: polls-options.php:82
|
689 |
-
#: polls-options.php:
|
690 |
msgid "Logging Method"
|
691 |
msgstr ""
|
692 |
|
@@ -708,237 +716,237 @@ msgstr ""
|
|
708 |
msgid "No Poll Option Updated"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: polls-options.php:
|
712 |
-
#: wp-polls.php:
|
713 |
msgid "Poll Options"
|
714 |
msgstr ""
|
715 |
|
716 |
-
#: polls-options.php:
|
717 |
msgid "Use CSS Style"
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: polls-options.php:
|
721 |
msgid "Poll Bar Background"
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: polls-options.php:
|
725 |
msgid "Poll Bar Border"
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: polls-options.php:
|
729 |
msgid "Poll Bar Height"
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: polls-options.php:
|
733 |
msgid "Your poll bar will look like this"
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: polls-options.php:
|
737 |
msgid "Polls AJAX Style"
|
738 |
msgstr ""
|
739 |
|
740 |
-
#: polls-options.php:
|
741 |
msgid "Show Loading Image With Text"
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: polls-options.php:
|
745 |
msgid "Show Fading In And Fading Out Of Poll"
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: polls-options.php:
|
749 |
msgid "Sorting Of Poll Answers"
|
750 |
msgstr ""
|
751 |
|
752 |
-
#: polls-options.php:
|
753 |
msgid "Sort Poll Answers By:"
|
754 |
msgstr ""
|
755 |
|
756 |
-
#: polls-options.php:
|
757 |
-
#: polls-options.php:
|
758 |
msgid "Exact Order"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: polls-options.php:
|
762 |
-
#: polls-options.php:
|
763 |
msgid "Alphabetical Order"
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: polls-options.php:
|
767 |
-
#: polls-options.php:
|
768 |
msgid "Random Order"
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: polls-options.php:
|
772 |
msgid "Sort Order Of Poll Answers:"
|
773 |
msgstr ""
|
774 |
|
775 |
-
#: polls-options.php:
|
776 |
-
#: polls-options.php:
|
777 |
msgid "Ascending"
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: polls-options.php:
|
781 |
-
#: polls-options.php:
|
782 |
msgid "Descending"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: polls-options.php:
|
786 |
msgid "Sorting Of Poll Results"
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: polls-options.php:
|
790 |
msgid "Sort Poll Results By:"
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: polls-options.php:
|
794 |
msgid "Votes Casted"
|
795 |
msgstr ""
|
796 |
|
797 |
-
#: polls-options.php:
|
798 |
msgid "Sort Order Of Poll Results:"
|
799 |
msgstr ""
|
800 |
|
801 |
-
#: polls-options.php:
|
802 |
msgid "Allow To Vote"
|
803 |
msgstr ""
|
804 |
|
805 |
-
#: polls-options.php:
|
806 |
msgid "Who Is Allowed To Vote?"
|
807 |
msgstr ""
|
808 |
|
809 |
-
#: polls-options.php:
|
810 |
msgid "Guests Only"
|
811 |
msgstr ""
|
812 |
|
813 |
-
#: polls-options.php:
|
814 |
msgid "Registered Users Only"
|
815 |
msgstr ""
|
816 |
|
817 |
-
#: polls-options.php:
|
818 |
msgid "Registered Users And Guests"
|
819 |
msgstr ""
|
820 |
|
821 |
-
#: polls-options.php:
|
822 |
msgid "Poll Logging Method:"
|
823 |
msgstr ""
|
824 |
|
825 |
-
#: polls-options.php:
|
826 |
msgid "Do Not Log"
|
827 |
msgstr ""
|
828 |
|
829 |
-
#: polls-options.php:
|
830 |
msgid "Logged By Cookie"
|
831 |
msgstr ""
|
832 |
|
833 |
-
#: polls-options.php:
|
834 |
msgid "Logged By IP"
|
835 |
msgstr ""
|
836 |
|
837 |
-
#: polls-options.php:
|
838 |
msgid "Logged By Cookie And IP"
|
839 |
msgstr ""
|
840 |
|
841 |
-
#: polls-options.php:
|
842 |
msgid "Logged By Username"
|
843 |
msgstr ""
|
844 |
|
845 |
-
#: polls-options.php:
|
846 |
msgid "Expiry Time For Cookie And Log:"
|
847 |
msgstr ""
|
848 |
|
849 |
-
#: polls-options.php:
|
850 |
msgid "seconds (0 to disable)"
|
851 |
msgstr ""
|
852 |
|
853 |
-
#: polls-options.php:
|
854 |
msgid "Poll Archive"
|
855 |
msgstr ""
|
856 |
|
857 |
-
#: polls-options.php:
|
858 |
msgid "Number Of Polls Per Page:"
|
859 |
msgstr ""
|
860 |
|
861 |
-
#: polls-options.php:
|
862 |
msgid "Type Of Polls To Display In Poll Archive:"
|
863 |
msgstr ""
|
864 |
|
865 |
-
#: polls-options.php:
|
866 |
msgid "Closed Polls Only"
|
867 |
msgstr ""
|
868 |
|
869 |
-
#: polls-options.php:
|
870 |
msgid "Opened Polls Only"
|
871 |
msgstr ""
|
872 |
|
873 |
-
#: polls-options.php:
|
874 |
msgid "Closed And Opened Polls"
|
875 |
msgstr ""
|
876 |
|
877 |
-
#: polls-options.php:
|
878 |
msgid "Poll Archive URL:"
|
879 |
msgstr ""
|
880 |
|
881 |
-
#: polls-options.php:
|
882 |
msgid "Display Poll Archive Link Below Poll?"
|
883 |
msgstr ""
|
884 |
|
885 |
-
#: polls-options.php:
|
886 |
-
#: polls-options.php:
|
887 |
msgid "Note"
|
888 |
msgstr ""
|
889 |
|
890 |
-
#: polls-options.php:
|
891 |
msgid "Only polls' results will be shown in the Poll Archive regardless of whether the poll is closed or opened."
|
892 |
msgstr ""
|
893 |
|
894 |
-
#: polls-options.php:342
|
895 |
#: polls-options.php:345
|
|
|
896 |
#: wp-polls-widget.php:114
|
897 |
msgid "Current Active Poll"
|
898 |
msgstr ""
|
899 |
|
900 |
-
#: polls-options.php:
|
901 |
#: wp-polls-widget.php:120
|
902 |
msgid "Do NOT Display Poll (Disable)"
|
903 |
msgstr ""
|
904 |
|
905 |
-
#: polls-options.php:
|
906 |
#: wp-polls-widget.php:125
|
907 |
msgid "Display Random Poll"
|
908 |
msgstr ""
|
909 |
|
910 |
-
#: polls-options.php:
|
911 |
#: wp-polls-widget.php:130
|
912 |
msgid "Display Latest Poll"
|
913 |
msgstr ""
|
914 |
|
915 |
-
#: polls-options.php:
|
916 |
#: wp-polls-widget.php:135
|
917 |
msgid "Display Multiple Polls"
|
918 |
msgstr ""
|
919 |
|
920 |
-
#: polls-options.php:
|
921 |
msgid "If you chose 'Display Multiple Polls' for the above option, you need to configure it in Presentation -> Widgets -> Poll."
|
922 |
msgstr ""
|
923 |
|
924 |
-
#: polls-options.php:
|
925 |
msgid "When Poll Is Closed"
|
926 |
msgstr ""
|
927 |
|
928 |
-
#: polls-options.php:
|
929 |
msgid "Display Poll's Results"
|
930 |
msgstr ""
|
931 |
|
932 |
-
#: polls-options.php:
|
933 |
msgid "Display Disabled Poll's Voting Form"
|
934 |
msgstr ""
|
935 |
|
936 |
-
#: polls-options.php:
|
937 |
msgid "Do Not Display Poll In Post/Sidebar"
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: polls-options.php:
|
941 |
-
#: polls-templates.php:
|
942 |
msgid "Save Changes"
|
943 |
msgstr ""
|
944 |
|
@@ -1004,316 +1012,325 @@ msgstr ""
|
|
1004 |
|
1005 |
#: polls-templates.php:110
|
1006 |
#: polls-templates.php:125
|
1007 |
-
#: wp-polls.php:
|
1008 |
-
#: wp-polls.php:
|
1009 |
msgid "Vote"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
#: polls-templates.php:110
|
1013 |
-
#: wp-polls.php:
|
1014 |
msgid "View Results Of This Poll"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
#: polls-templates.php:110
|
1018 |
-
#: wp-polls.php:
|
1019 |
msgid "View Results"
|
1020 |
msgstr ""
|
1021 |
|
1022 |
#: polls-templates.php:116
|
1023 |
#: polls-templates.php:119
|
1024 |
-
#: wp-polls.php:
|
1025 |
-
#: wp-polls.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1026 |
msgid "Votes"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
#: polls-templates.php:119
|
1030 |
-
#: wp-polls.php:
|
1031 |
msgid "You Have Voted For This Choice"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
#: polls-templates.php:125
|
1035 |
-
#: wp-polls.php:
|
1036 |
msgid "Vote For This Poll"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
#: polls-templates.php:128
|
1040 |
-
#: wp-polls.php:
|
1041 |
msgid "Polls Archive"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
#: polls-templates.php:134
|
|
|
1045 |
msgid "Start Date:"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
#: polls-templates.php:134
|
|
|
1049 |
msgid "End Date:"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
#: polls-templates.php:143
|
1053 |
-
#: wp-polls.php:
|
1054 |
msgid "Sorry, there are no polls available at the moment."
|
1055 |
msgstr ""
|
1056 |
|
1057 |
#: polls-templates.php:146
|
1058 |
-
#: wp-polls.php:
|
1059 |
msgid "An error has occurred when processing your poll."
|
1060 |
msgstr ""
|
1061 |
|
1062 |
-
#: polls-templates.php:
|
1063 |
-
#: wp-polls.php:
|
1064 |
msgid "Poll Templates"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: polls-templates.php:
|
1068 |
msgid "Template Variables"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
-
#: polls-templates.php:
|
1072 |
msgid "Display the poll's ID"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
-
#: polls-templates.php:
|
1076 |
msgid "Display the poll's answer ID"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
-
#: polls-templates.php:
|
1080 |
msgid "Display the poll's question"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
-
#: polls-templates.php:
|
1084 |
msgid "Display the poll's answer"
|
1085 |
msgstr ""
|
1086 |
|
1087 |
-
#: polls-templates.php:
|
1088 |
msgid "Display the poll's total votes NOT the number of people who voted for the poll"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
-
#: polls-templates.php:
|
1092 |
msgid "Display the poll's answer without HTML formatting."
|
1093 |
msgstr ""
|
1094 |
|
1095 |
-
#: polls-templates.php:
|
1096 |
msgid "Displays URL to poll's result"
|
1097 |
msgstr ""
|
1098 |
|
1099 |
-
#: polls-templates.php:
|
1100 |
msgid "Display the poll's answer votes"
|
1101 |
msgstr ""
|
1102 |
|
1103 |
-
#: polls-templates.php:
|
1104 |
msgid "Display the poll's most voted answer"
|
1105 |
msgstr ""
|
1106 |
|
1107 |
-
#: polls-templates.php:
|
1108 |
msgid "Display the poll's answer percentage"
|
1109 |
msgstr ""
|
1110 |
|
1111 |
-
#: polls-templates.php:
|
1112 |
msgid "Display the poll's answer votes for the most voted answer"
|
1113 |
msgstr ""
|
1114 |
|
1115 |
-
#: polls-templates.php:
|
1116 |
msgid "Display the poll's answer image width"
|
1117 |
msgstr ""
|
1118 |
|
1119 |
-
#: polls-templates.php:
|
1120 |
msgid "Display the poll's answer percentage for the most voted answer"
|
1121 |
msgstr ""
|
1122 |
|
1123 |
-
#: polls-templates.php:
|
1124 |
msgid "Display the poll's least voted answer"
|
1125 |
msgstr ""
|
1126 |
|
1127 |
-
#: polls-templates.php:
|
1128 |
msgid "Display the poll's start date/time"
|
1129 |
msgstr ""
|
1130 |
|
1131 |
-
#: polls-templates.php:
|
1132 |
msgid "Display the poll's answer votes for the least voted answer"
|
1133 |
msgstr ""
|
1134 |
|
1135 |
-
#: polls-templates.php:
|
1136 |
msgid "Display the poll's end date/time"
|
1137 |
msgstr ""
|
1138 |
|
1139 |
-
#: polls-templates.php:
|
1140 |
msgid "Display the poll's answer percentage for the least voted answer"
|
1141 |
msgstr ""
|
1142 |
|
1143 |
-
#: polls-templates.php:
|
1144 |
msgid "Display the the maximum number of answers the user can choose if the poll supports multiple answers"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
-
#: polls-templates.php:
|
1148 |
msgid "Display \"checkbox\" or \"radio\" input types depending on the poll type"
|
1149 |
msgstr ""
|
1150 |
|
1151 |
-
#: polls-templates.php:
|
1152 |
msgid "Display the number of people who voted for the poll NOT the total votes of the poll"
|
1153 |
msgstr ""
|
1154 |
|
1155 |
-
#: polls-templates.php:
|
1156 |
msgid "Display the poll archive URL"
|
1157 |
msgstr ""
|
1158 |
|
1159 |
-
#: polls-templates.php:
|
1160 |
msgid "Note: <strong>%POLL_TOTALVOTES%</strong> and <strong>%POLL_TOTALVOTERS%</strong> will be different if your poll supports multiple answers. If your poll allows only single answer, both value will be the same."
|
1161 |
msgstr ""
|
1162 |
|
1163 |
-
#: polls-templates.php:
|
1164 |
msgid "Poll Voting Form Templates"
|
1165 |
msgstr ""
|
1166 |
|
1167 |
-
#: polls-templates.php:
|
1168 |
msgid "Voting Form Header:"
|
1169 |
msgstr ""
|
1170 |
|
1171 |
-
#: polls-templates.php:
|
1172 |
-
#: polls-templates.php:
|
1173 |
-
#: polls-templates.php:
|
1174 |
-
#: polls-templates.php:
|
1175 |
-
#: polls-templates.php:
|
1176 |
-
#: polls-templates.php:
|
1177 |
-
#: polls-templates.php:
|
1178 |
-
#: polls-templates.php:
|
1179 |
-
#: polls-templates.php:
|
1180 |
-
#: polls-templates.php:
|
1181 |
-
#: polls-templates.php:
|
1182 |
-
#: polls-templates.php:
|
1183 |
-
#: polls-templates.php:
|
1184 |
-
#: polls-templates.php:
|
1185 |
-
#: polls-templates.php:
|
1186 |
msgid "Allowed Variables:"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
-
#: polls-templates.php:
|
1190 |
-
#: polls-templates.php:
|
1191 |
-
#: polls-templates.php:
|
1192 |
-
#: polls-templates.php:
|
1193 |
-
#: polls-templates.php:
|
1194 |
-
#: polls-templates.php:
|
1195 |
-
#: polls-templates.php:
|
1196 |
-
#: polls-templates.php:
|
1197 |
-
#: polls-templates.php:
|
1198 |
-
#: polls-templates.php:
|
1199 |
-
#: polls-templates.php:
|
1200 |
-
#: polls-templates.php:
|
1201 |
-
#: polls-templates.php:
|
1202 |
-
#: polls-templates.php:
|
1203 |
-
#: polls-templates.php:
|
1204 |
msgid "Restore Default Template"
|
1205 |
msgstr ""
|
1206 |
|
1207 |
-
#: polls-templates.php:
|
1208 |
msgid "Voting Form Body:"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
-
#: polls-templates.php:
|
1212 |
msgid "Voting Form Footer:"
|
1213 |
msgstr ""
|
1214 |
|
1215 |
-
#: polls-templates.php:
|
1216 |
msgid "Poll Result Templates"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
-
#: polls-templates.php:
|
1220 |
msgid "Result Header:"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
-
#: polls-templates.php:
|
1224 |
-
#: polls-templates.php:
|
1225 |
msgid "Result Body:"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
-
#: polls-templates.php:
|
1229 |
-
#: polls-templates.php:
|
1230 |
msgid "Displayed When The User HAS NOT Voted"
|
1231 |
msgstr ""
|
1232 |
|
1233 |
-
#: polls-templates.php:
|
1234 |
-
#: polls-templates.php:
|
1235 |
msgid "Displayed When The User HAS Voted"
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: polls-templates.php:
|
1239 |
-
#: polls-templates.php:
|
1240 |
msgid "Result Footer:"
|
1241 |
msgstr ""
|
1242 |
|
1243 |
-
#: polls-templates.php:
|
1244 |
msgid "Poll Archive Templates"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
-
#: polls-templates.php:
|
1248 |
msgid "Poll Archive Link"
|
1249 |
msgstr ""
|
1250 |
|
1251 |
-
#: polls-templates.php:
|
1252 |
msgid "Template For Displaying Poll Archive Link"
|
1253 |
msgstr ""
|
1254 |
|
1255 |
-
#: polls-templates.php:
|
1256 |
msgid "Individual Poll Header"
|
1257 |
msgstr ""
|
1258 |
|
1259 |
-
#: polls-templates.php:
|
1260 |
msgid "Displayed Before Each Poll In The Poll Archive"
|
1261 |
msgstr ""
|
1262 |
|
1263 |
-
#: polls-templates.php:
|
1264 |
-
#: polls-templates.php:
|
1265 |
-
#: polls-templates.php:
|
1266 |
-
#: polls-templates.php:
|
1267 |
-
#: polls-templates.php:
|
1268 |
msgid "N/A"
|
1269 |
msgstr ""
|
1270 |
|
1271 |
-
#: polls-templates.php:
|
1272 |
msgid "Individual Poll Footer"
|
1273 |
msgstr ""
|
1274 |
|
1275 |
-
#: polls-templates.php:
|
1276 |
msgid "Displayed After Each Poll In The Poll Archive"
|
1277 |
msgstr ""
|
1278 |
|
1279 |
-
#: polls-templates.php:
|
1280 |
msgid "Paging Header"
|
1281 |
msgstr ""
|
1282 |
|
1283 |
-
#: polls-templates.php:
|
1284 |
msgid "Displayed Before Paging In The Poll Archive"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
-
#: polls-templates.php:
|
1288 |
msgid "Paging Footer"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
-
#: polls-templates.php:
|
1292 |
msgid "Displayed After Paging In The Poll Archive"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: polls-templates.php:
|
1296 |
msgid "Poll Misc Templates"
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: polls-templates.php:
|
1300 |
msgid "Poll Disabled"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
-
#: polls-templates.php:
|
1304 |
msgid "Displayed When The Poll Is Disabled"
|
1305 |
msgstr ""
|
1306 |
|
1307 |
-
#: polls-templates.php:
|
1308 |
msgid "Poll Error"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
-
#: polls-templates.php:
|
1312 |
msgid "Displayed When An Error Has Occured While Processing The Poll"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
#: polls-uninstall.php:39
|
1316 |
-
#: polls-uninstall.php:
|
1317 |
msgid "UNINSTALL WP-Polls"
|
1318 |
msgstr ""
|
1319 |
|
@@ -1332,46 +1349,46 @@ msgstr ""
|
|
1332 |
msgid "Error deleting Setting Key '%s'."
|
1333 |
msgstr ""
|
1334 |
|
1335 |
-
#: polls-uninstall.php:
|
1336 |
-
#: polls-uninstall.php:
|
1337 |
-
#: wp-polls.php:
|
1338 |
msgid "Uninstall WP-Polls"
|
1339 |
msgstr ""
|
1340 |
|
1341 |
-
#: polls-uninstall.php:
|
1342 |
#, php-format
|
1343 |
msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Polls Will Be Deactivated Automatically."
|
1344 |
msgstr ""
|
1345 |
|
1346 |
-
#: polls-uninstall.php:
|
1347 |
msgid "Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll's voting logs. To completely remove this plugin, you can uninstall it here."
|
1348 |
msgstr ""
|
1349 |
|
1350 |
-
#: polls-uninstall.php:
|
1351 |
msgid "WARNING:"
|
1352 |
msgstr ""
|
1353 |
|
1354 |
-
#: polls-uninstall.php:
|
1355 |
msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
|
1356 |
msgstr ""
|
1357 |
|
1358 |
-
#: polls-uninstall.php:
|
1359 |
msgid "The following WordPress Options/Tables will be DELETED:"
|
1360 |
msgstr ""
|
1361 |
|
1362 |
-
#: polls-uninstall.php:
|
1363 |
msgid "WordPress Options"
|
1364 |
msgstr ""
|
1365 |
|
1366 |
-
#: polls-uninstall.php:
|
1367 |
msgid "WordPress Tables"
|
1368 |
msgstr ""
|
1369 |
|
1370 |
-
#: polls-uninstall.php:
|
1371 |
msgid "Do you really want to uninstall WP-Polls?"
|
1372 |
msgstr ""
|
1373 |
|
1374 |
-
#: polls-uninstall.php:
|
1375 |
msgid ""
|
1376 |
"You Are About To Uninstall WP-Polls From WordPress.\\n"
|
1377 |
"This Action Is Not Reversible.\\n"
|
@@ -1379,11 +1396,6 @@ msgid ""
|
|
1379 |
" Choose [Cancel] To Stop, [OK] To Uninstall."
|
1380 |
msgstr ""
|
1381 |
|
1382 |
-
#: wp-polls-widget.php:64
|
1383 |
-
#: wp-polls.php:79
|
1384 |
-
msgid "Polls"
|
1385 |
-
msgstr ""
|
1386 |
-
|
1387 |
#: wp-polls-widget.php:96
|
1388 |
msgid "Title"
|
1389 |
msgstr ""
|
@@ -1396,140 +1408,140 @@ msgstr ""
|
|
1396 |
msgid "Select Multiple Polls"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
-
#: wp-polls.php:
|
1400 |
msgid "Your last request is still being processed. Please wait a while ..."
|
1401 |
msgstr ""
|
1402 |
|
1403 |
-
#: wp-polls.php:
|
1404 |
msgid "Please choose a valid poll answer."
|
1405 |
msgstr ""
|
1406 |
|
1407 |
-
#: wp-polls.php:
|
1408 |
msgid "Maximum number of choices allowed:"
|
1409 |
msgstr ""
|
1410 |
|
1411 |
-
#: wp-polls.php:
|
1412 |
msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs."
|
1413 |
msgstr ""
|
1414 |
|
1415 |
-
#: wp-polls.php:
|
1416 |
msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs for this poll ONLY."
|
1417 |
msgstr ""
|
1418 |
|
1419 |
-
#: wp-polls.php:
|
1420 |
msgid "Enter Poll ID"
|
1421 |
msgstr ""
|
1422 |
|
1423 |
-
#: wp-polls.php:
|
1424 |
msgid "Error: Poll ID must be numeric"
|
1425 |
msgstr ""
|
1426 |
|
1427 |
-
#: wp-polls.php:
|
1428 |
msgid "Please enter Poll ID again"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
-
#: wp-polls.php:
|
1432 |
-
#: wp-polls.php:
|
1433 |
msgid "Poll"
|
1434 |
msgstr ""
|
1435 |
|
1436 |
-
#: wp-polls.php:
|
1437 |
msgid "Insert Poll"
|
1438 |
msgstr ""
|
1439 |
|
1440 |
-
#: wp-polls.php:
|
1441 |
-
#: wp-polls.php:
|
1442 |
msgid "Loading"
|
1443 |
msgstr ""
|
1444 |
|
1445 |
-
#: wp-polls.php:
|
1446 |
msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll."
|
1447 |
msgstr ""
|
1448 |
|
1449 |
-
#: wp-polls.php:
|
1450 |
#, php-format
|
1451 |
msgid "Page %s of %s"
|
1452 |
msgstr ""
|
1453 |
|
1454 |
-
#: wp-polls.php:
|
1455 |
msgid "« First"
|
1456 |
msgstr ""
|
1457 |
|
1458 |
-
#: wp-polls.php:
|
1459 |
msgid "«"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
-
#: wp-polls.php:
|
1463 |
msgid "»"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
-
#: wp-polls.php:
|
1467 |
msgid "Last »"
|
1468 |
msgstr ""
|
1469 |
|
1470 |
-
#: wp-polls.php:
|
1471 |
#, php-format
|
1472 |
msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s"
|
1473 |
msgstr ""
|
1474 |
|
1475 |
-
#: wp-polls.php:
|
1476 |
#, php-format
|
1477 |
msgid "You Had Already Voted For This Poll. Poll ID #%s"
|
1478 |
msgstr ""
|
1479 |
|
1480 |
-
#: wp-polls.php:
|
1481 |
#, php-format
|
1482 |
msgid "Invalid Poll ID. Poll ID #%s"
|
1483 |
msgstr ""
|
1484 |
|
1485 |
-
#: wp-polls.php:
|
1486 |
-
#: wp-polls.php:
|
1487 |
-
#: wp-polls.php:
|
1488 |
msgid "WP-Polls"
|
1489 |
msgstr ""
|
1490 |
|
1491 |
-
#: wp-polls.php:
|
1492 |
#, php-format
|
1493 |
msgid "<strong>%s</strong> poll was created."
|
1494 |
msgid_plural "<strong>%s</strong> polls were created."
|
1495 |
msgstr[0] ""
|
1496 |
msgstr[1] ""
|
1497 |
|
1498 |
-
#: wp-polls.php:
|
1499 |
#, php-format
|
1500 |
msgid "<strong>%s</strong> polls' answer was given."
|
1501 |
msgid_plural "<strong>%s</strong> polls' answers were given."
|
1502 |
msgstr[0] ""
|
1503 |
msgstr[1] ""
|
1504 |
|
1505 |
-
#: wp-polls.php:
|
1506 |
#, php-format
|
1507 |
msgid "<strong>%s</strong> vote was casted."
|
1508 |
msgid_plural "<strong>%s</strong> votes were casted."
|
1509 |
msgstr[0] ""
|
1510 |
msgstr[1] ""
|
1511 |
|
1512 |
-
#: wp-polls.php:
|
1513 |
msgid "How Is My Site?"
|
1514 |
msgstr ""
|
1515 |
|
1516 |
-
#: wp-polls.php:
|
1517 |
msgid "Good"
|
1518 |
msgstr ""
|
1519 |
|
1520 |
-
#: wp-polls.php:
|
1521 |
msgid "Excellent"
|
1522 |
msgstr ""
|
1523 |
|
1524 |
-
#: wp-polls.php:
|
1525 |
msgid "Bad"
|
1526 |
msgstr ""
|
1527 |
|
1528 |
-
#: wp-polls.php:
|
1529 |
msgid "Can Be Improved"
|
1530 |
msgstr ""
|
1531 |
|
1532 |
-
#: wp-polls.php:
|
1533 |
msgid "No Comments"
|
1534 |
msgstr ""
|
1535 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-Polls 2.31\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-12-13 03:53+0800\n"
|
6 |
+
"PO-Revision-Date: 2008-12-13 03:53+0800\n"
|
7 |
"Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
|
8 |
"Language-Team: Lester Chan <lesterchan@gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Poedit-Country: SINGAPORE\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;__ngettext_noop:1,2\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
"X-Poedit-Language: English\n"
|
16 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
#: polls-add.php:36
|
20 |
+
#: polls-add.php:175
|
21 |
+
#: polls-add.php:242
|
22 |
+
#: wp-polls.php:64
|
23 |
msgid "Add Poll"
|
24 |
msgstr ""
|
25 |
|
40 |
msgstr ""
|
41 |
|
42 |
#: polls-add.php:96
|
43 |
+
#: polls-manager.php:461
|
44 |
+
#: wp-polls.php:63
|
45 |
msgid "Manage Polls"
|
46 |
msgstr ""
|
47 |
|
48 |
#: polls-add.php:124
|
49 |
+
#: polls-logs.php:281
|
50 |
+
#: polls-logs.php:324
|
51 |
+
#: polls-manager.php:238
|
52 |
msgid "Answer"
|
53 |
msgstr ""
|
54 |
|
56 |
msgid "You need at least a minimum of 2 poll answers."
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: polls-add.php:177
|
60 |
+
#: polls-manager.php:311
|
61 |
msgid "Poll Question"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: polls-add.php:180
|
65 |
+
#: polls-manager.php:314
|
66 |
+
#: polls-manager.php:468
|
67 |
msgid "Question"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: polls-add.php:185
|
71 |
+
#: polls-manager.php:319
|
72 |
msgid "Poll Answers"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: polls-add.php:190
|
76 |
+
#: polls-manager.php:354
|
77 |
msgid "Add Answer"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: polls-add.php:190
|
81 |
+
#: polls-manager.php:354
|
82 |
msgid "Remove Answer"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: polls-add.php:197
|
86 |
+
#: polls-manager.php:341
|
87 |
#, php-format
|
88 |
msgid "Answer %s"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: polls-add.php:206
|
92 |
+
#: polls-manager.php:365
|
93 |
msgid "Poll Multiple Answers"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: polls-add.php:209
|
97 |
+
#: polls-manager.php:368
|
98 |
msgid "Allows Users To Select More Than One Answer?"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: polls-add.php:212
|
102 |
+
#: polls-manager.php:371
|
103 |
+
#: polls-options.php:207
|
104 |
+
#: polls-options.php:216
|
105 |
+
#: polls-options.php:333
|
106 |
#: wp-polls-widget.php:105
|
107 |
msgid "No"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: polls-add.php:213
|
111 |
+
#: polls-logs.php:373
|
112 |
+
#: polls-manager.php:372
|
113 |
+
#: polls-manager.php:597
|
114 |
+
#: polls-options.php:208
|
115 |
+
#: polls-options.php:217
|
116 |
+
#: polls-options.php:334
|
117 |
+
#: polls-uninstall.php:134
|
118 |
#: wp-polls-widget.php:110
|
119 |
msgid "Yes"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: polls-add.php:218
|
123 |
+
#: polls-manager.php:377
|
124 |
msgid "Maximum Number Of Selected Answers Allowed?"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: polls-add.php:231
|
128 |
+
#: polls-manager.php:394
|
129 |
msgid "Poll Start/End Date"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: polls-add.php:234
|
133 |
+
#: polls-manager.php:397
|
134 |
+
#: polls-manager.php:470
|
135 |
msgid "Start Date/Time"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: polls-add.php:238
|
139 |
+
#: polls-manager.php:405
|
140 |
+
#: polls-manager.php:471
|
141 |
msgid "End Date/Time"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: polls-add.php:239
|
145 |
+
#: polls-manager.php:416
|
146 |
msgid "Do NOT Expire This Poll"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: polls-add.php:242
|
150 |
+
#: polls-manager.php:442
|
151 |
msgid "Cancel"
|
152 |
msgstr ""
|
153 |
|
154 |
#: polls-admin-ajax.php:43
|
155 |
+
#: polls-manager.php:598
|
156 |
+
#: wp-polls.php:245
|
157 |
msgid "Delete All Logs"
|
158 |
msgstr ""
|
159 |
|
166 |
msgstr ""
|
167 |
|
168 |
#: polls-admin-ajax.php:54
|
169 |
+
#: polls-logs.php:374
|
170 |
+
#: wp-polls.php:247
|
171 |
msgid "Delete Logs For This Poll Only"
|
172 |
msgstr ""
|
173 |
|
182 |
msgstr ""
|
183 |
|
184 |
#: polls-admin-ajax.php:67
|
185 |
+
#: wp-polls.php:249
|
186 |
msgid "Delete Poll Answer"
|
187 |
msgstr ""
|
188 |
|
197 |
msgstr ""
|
198 |
|
199 |
#: polls-admin-ajax.php:83
|
200 |
+
#: polls-manager.php:441
|
201 |
+
#: wp-polls.php:250
|
202 |
msgid "Open Poll"
|
203 |
msgstr ""
|
204 |
|
213 |
msgstr ""
|
214 |
|
215 |
#: polls-admin-ajax.php:94
|
216 |
+
#: polls-manager.php:440
|
217 |
+
#: wp-polls.php:251
|
218 |
msgid "Close Poll"
|
219 |
msgstr ""
|
220 |
|
229 |
msgstr ""
|
230 |
|
231 |
#: polls-admin-ajax.php:105
|
232 |
+
#: wp-polls.php:243
|
233 |
msgid "Delete Poll"
|
234 |
msgstr ""
|
235 |
|
250 |
#: polls-logs.php:69
|
251 |
#: polls-logs.php:102
|
252 |
#: polls-logs.php:105
|
253 |
+
#: wp-polls.php:1258
|
254 |
msgid "Guest"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: polls-logs.php:124
|
258 |
msgid "Poll's Logs"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: polls-logs.php:127
|
262 |
#, php-format
|
263 |
msgid "There are a total of <strong>%s</strong> recorded vote for this poll."
|
264 |
msgid_plural "There are a total of <strong>%s</strong> recorded votes for this poll."
|
265 |
msgstr[0] ""
|
266 |
msgstr[1] ""
|
267 |
|
268 |
+
#: polls-logs.php:128
|
269 |
#, php-format
|
270 |
msgid "<strong>»</strong> <strong>%s</strong> vote is casted by registered users"
|
271 |
msgid_plural "<strong>»</strong> <strong>%s</strong> votes are casted by registered users"
|
272 |
msgstr[0] ""
|
273 |
msgstr[1] ""
|
274 |
|
275 |
+
#: polls-logs.php:129
|
276 |
#, php-format
|
277 |
msgid "<strong>»</strong> <strong>%s</strong> vote is casted by comment authors"
|
278 |
msgid_plural "<strong>»</strong> <strong>%s</strong> votes are casted by comment authors"
|
279 |
msgstr[0] ""
|
280 |
msgstr[1] ""
|
281 |
|
282 |
+
#: polls-logs.php:130
|
283 |
#, php-format
|
284 |
msgid "<strong>»</strong> <strong>%s</strong> vote is casted by guests"
|
285 |
msgid_plural "<strong>»</strong> <strong>%s</strong> votes are casted by guests"
|
286 |
msgstr[0] ""
|
287 |
msgstr[1] ""
|
288 |
|
289 |
+
#: polls-logs.php:135
|
290 |
msgid "Filter Poll's Logs"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: polls-logs.php:143
|
294 |
msgid "Display All Users That Voted For"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: polls-logs.php:164
|
298 |
+
#: polls-logs.php:211
|
299 |
msgid "Voters To EXCLUDE"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: polls-logs.php:166
|
303 |
+
#: polls-logs.php:213
|
304 |
msgid "Registered Users"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: polls-logs.php:167
|
308 |
+
#: polls-logs.php:214
|
309 |
msgid "Comment Authors"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: polls-logs.php:168
|
313 |
msgid "Guests"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: polls-logs.php:172
|
317 |
+
#: polls-logs.php:219
|
318 |
+
#: polls-logs.php:253
|
319 |
msgid "Filter"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: polls-logs.php:183
|
323 |
msgid "Display Users That Voted For"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: polls-logs.php:186
|
327 |
msgid "More Than"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: polls-logs.php:187
|
331 |
msgid "More Than Or Exactly"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: polls-logs.php:188
|
335 |
msgid "Exactly"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: polls-logs.php:189
|
339 |
msgid "Less Than Or Exactly"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: polls-logs.php:190
|
343 |
msgid "Less Than"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: polls-logs.php:197
|
347 |
msgid "1 Answer"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: polls-logs.php:200
|
351 |
+
#: polls-logs.php:202
|
352 |
#, php-format
|
353 |
msgid "%s Answer"
|
354 |
msgid_plural "%s Answers"
|
355 |
msgstr[0] ""
|
356 |
msgstr[1] ""
|
357 |
|
358 |
+
#: polls-logs.php:215
|
359 |
msgid "Guests will automatically be excluded"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: polls-logs.php:235
|
363 |
msgid "Display What This User Has Voted"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: polls-logs.php:261
|
367 |
msgid "Clear Filter"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: polls-logs.php:268
|
371 |
msgid "Poll Logs"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: polls-logs.php:273
|
375 |
msgid "This default filter is limited to display only <strong>100</strong> records."
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: polls-logs.php:282
|
379 |
msgid "IP"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: polls-logs.php:283
|
383 |
msgid "Host"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: polls-logs.php:284
|
387 |
+
#: polls-logs.php:331
|
388 |
msgid "Date"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: polls-logs.php:291
|
392 |
+
#: polls-logs.php:319
|
393 |
+
#: polls-manager.php:399
|
394 |
+
#: polls-manager.php:411
|
395 |
+
#: polls-manager.php:491
|
396 |
+
#: polls-manager.php:499
|
397 |
+
#: wp-polls.php:446
|
398 |
+
#: wp-polls.php:451
|
399 |
+
#: wp-polls.php:562
|
400 |
+
#: wp-polls.php:567
|
401 |
+
#: wp-polls.php:952
|
402 |
+
#: wp-polls.php:956
|
403 |
#, php-format
|
404 |
msgid "%s @ %s"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: polls-logs.php:299
|
408 |
+
#: polls-logs.php:329
|
409 |
msgid "User"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: polls-logs.php:328
|
413 |
msgid "No."
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: polls-logs.php:330
|
417 |
msgid "IP/Host"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: polls-logs.php:352
|
421 |
#, php-format
|
422 |
msgid "Total number of records that matches this filter: <strong>%s</strong>"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: polls-logs.php:359
|
426 |
msgid "No poll logs matches the filter."
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: polls-logs.php:361
|
430 |
+
#: polls-logs.php:377
|
431 |
msgid "No poll logs available for this poll."
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: polls-logs.php:368
|
435 |
msgid "Delete Poll Logs"
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: polls-logs.php:372
|
439 |
msgid "Are You Sure You Want To Delete Logs For This Poll Only?"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: polls-logs.php:374
|
443 |
#, php-format
|
444 |
msgid "You are about to delete poll logs for this poll '%s' ONLY. This action is not reversible."
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: polls-logs.php:381
|
448 |
+
#: polls-manager.php:605
|
449 |
msgid "Note: If your logging method is by IP and Cookie or by Cookie, users may still be unable to vote if they have voted before as the cookie is still stored in their computer."
|
450 |
msgstr ""
|
451 |
|
452 |
#: polls-manager.php:39
|
453 |
+
#: polls-manager.php:309
|
454 |
+
#: polls-manager.php:430
|
455 |
msgid "Edit Poll"
|
456 |
msgstr ""
|
457 |
|
485 |
msgid "Poll '%s' Edited Successfully."
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: polls-manager.php:280
|
489 |
msgid "No more poll's answer to be removed."
|
490 |
msgstr ""
|
491 |
|
492 |
+
#: polls-manager.php:323
|
493 |
msgid "Answer No."
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: polls-manager.php:324
|
497 |
msgid "Answer Text"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: polls-manager.php:325
|
501 |
msgid "No. Of Votes"
|
502 |
msgstr ""
|
503 |
|
504 |
+
#: polls-manager.php:334
|
505 |
msgid "Null Votes"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: polls-manager.php:343
|
509 |
+
#: polls-manager.php:546
|
510 |
msgid "Delete"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: polls-manager.php:343
|
514 |
#, php-format
|
515 |
msgid "You are about to delete this poll's answer '%s'."
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: polls-manager.php:355
|
519 |
msgid "Total Votes:"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: polls-manager.php:360
|
523 |
+
#: polls-manager.php:580
|
524 |
msgid "Total Voters:"
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: polls-manager.php:400
|
528 |
msgid "Edit Start Date/Time"
|
529 |
msgstr ""
|
530 |
|
531 |
+
#: polls-manager.php:409
|
532 |
msgid "This Poll Will Not Expire"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: polls-manager.php:440
|
536 |
#, php-format
|
537 |
msgid "You are about to CLOSE this poll '%s'."
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: polls-manager.php:441
|
541 |
#, php-format
|
542 |
msgid "You are about to OPEN this poll '%s'."
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: polls-manager.php:462
|
546 |
+
#: wp-polls-widget.php:64
|
547 |
+
#: wp-polls.php:60
|
548 |
+
msgid "Polls"
|
549 |
+
msgstr ""
|
550 |
+
|
551 |
+
#: polls-manager.php:467
|
552 |
msgid "ID"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: polls-manager.php:469
|
556 |
#: polls-templates.php:122
|
557 |
#: polls-templates.php:125
|
558 |
+
#: wp-polls.php:1425
|
559 |
+
#: wp-polls.php:1428
|
560 |
msgid "Total Voters"
|
561 |
msgstr ""
|
562 |
|
563 |
+
#: polls-manager.php:472
|
564 |
msgid "Status"
|
565 |
msgstr ""
|
566 |
|
567 |
+
#: polls-manager.php:473
|
568 |
msgid "Action"
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: polls-manager.php:497
|
572 |
+
#: wp-polls.php:449
|
573 |
+
#: wp-polls.php:565
|
574 |
+
#: wp-polls.php:954
|
575 |
msgid "No Expiry"
|
576 |
msgstr ""
|
577 |
|
|
|
578 |
#: polls-manager.php:522
|
579 |
+
#: polls-manager.php:526
|
580 |
+
#: polls-manager.php:529
|
581 |
msgid "Displayed:"
|
582 |
msgstr ""
|
583 |
|
584 |
+
#: polls-manager.php:537
|
585 |
msgid "Open"
|
586 |
msgstr ""
|
587 |
|
588 |
+
#: polls-manager.php:539
|
589 |
msgid "Future"
|
590 |
msgstr ""
|
591 |
|
592 |
+
#: polls-manager.php:541
|
593 |
msgid "Closed"
|
594 |
msgstr ""
|
595 |
|
596 |
+
#: polls-manager.php:544
|
597 |
msgid "Logs"
|
598 |
msgstr ""
|
599 |
|
600 |
+
#: polls-manager.php:545
|
601 |
msgid "Edit"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: polls-manager.php:546
|
605 |
#, php-format
|
606 |
msgid "You are about to delete this poll, '%s'."
|
607 |
msgstr ""
|
608 |
|
609 |
+
#: polls-manager.php:554
|
610 |
msgid "No Polls Found"
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: polls-manager.php:564
|
614 |
msgid "Polls Stats:"
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: polls-manager.php:568
|
618 |
msgid "Total Polls:"
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: polls-manager.php:572
|
622 |
msgid "Total Polls' Answers:"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: polls-manager.php:576
|
626 |
msgid "Total Votes Casted:"
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: polls-manager.php:589
|
630 |
msgid "Polls Logs"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: polls-manager.php:596
|
634 |
msgid "Are You Sure You Want To Delete All Polls Logs?"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: polls-manager.php:598
|
638 |
msgid "You are about to delete all poll logs. This action is not reversible."
|
639 |
msgstr ""
|
640 |
|
641 |
+
#: polls-manager.php:601
|
642 |
+
#: wp-polls.php:244
|
643 |
msgid "No poll logs available."
|
644 |
msgstr ""
|
645 |
|
646 |
#: polls-options.php:70
|
647 |
+
#: polls-options.php:138
|
648 |
+
#: polls-options.php:141
|
649 |
msgid "Poll Bar Style"
|
650 |
msgstr ""
|
651 |
|
694 |
msgstr ""
|
695 |
|
696 |
#: polls-options.php:82
|
697 |
+
#: polls-options.php:288
|
698 |
msgid "Logging Method"
|
699 |
msgstr ""
|
700 |
|
716 |
msgid "No Poll Option Updated"
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: polls-options.php:136
|
720 |
+
#: wp-polls.php:65
|
721 |
msgid "Poll Options"
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: polls-options.php:168
|
725 |
msgid "Use CSS Style"
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: polls-options.php:172
|
729 |
msgid "Poll Bar Background"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: polls-options.php:177
|
733 |
msgid "Poll Bar Border"
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: polls-options.php:182
|
737 |
msgid "Poll Bar Height"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: polls-options.php:186
|
741 |
msgid "Your poll bar will look like this"
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: polls-options.php:201
|
745 |
msgid "Polls AJAX Style"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: polls-options.php:204
|
749 |
msgid "Show Loading Image With Text"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: polls-options.php:213
|
753 |
msgid "Show Fading In And Fading Out Of Poll"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: polls-options.php:224
|
757 |
msgid "Sorting Of Poll Answers"
|
758 |
msgstr ""
|
759 |
|
760 |
+
#: polls-options.php:227
|
761 |
msgid "Sort Poll Answers By:"
|
762 |
msgstr ""
|
763 |
|
764 |
+
#: polls-options.php:230
|
765 |
+
#: polls-options.php:255
|
766 |
msgid "Exact Order"
|
767 |
msgstr ""
|
768 |
|
769 |
+
#: polls-options.php:231
|
770 |
+
#: polls-options.php:256
|
771 |
msgid "Alphabetical Order"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: polls-options.php:232
|
775 |
+
#: polls-options.php:257
|
776 |
msgid "Random Order"
|
777 |
msgstr ""
|
778 |
|
779 |
+
#: polls-options.php:237
|
780 |
msgid "Sort Order Of Poll Answers:"
|
781 |
msgstr ""
|
782 |
|
783 |
+
#: polls-options.php:240
|
784 |
+
#: polls-options.php:265
|
785 |
msgid "Ascending"
|
786 |
msgstr ""
|
787 |
|
788 |
+
#: polls-options.php:241
|
789 |
+
#: polls-options.php:266
|
790 |
msgid "Descending"
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: polls-options.php:248
|
794 |
msgid "Sorting Of Poll Results"
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: polls-options.php:251
|
798 |
msgid "Sort Poll Results By:"
|
799 |
msgstr ""
|
800 |
|
801 |
+
#: polls-options.php:254
|
802 |
msgid "Votes Casted"
|
803 |
msgstr ""
|
804 |
|
805 |
+
#: polls-options.php:262
|
806 |
msgid "Sort Order Of Poll Results:"
|
807 |
msgstr ""
|
808 |
|
809 |
+
#: polls-options.php:273
|
810 |
msgid "Allow To Vote"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: polls-options.php:276
|
814 |
msgid "Who Is Allowed To Vote?"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: polls-options.php:279
|
818 |
msgid "Guests Only"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: polls-options.php:280
|
822 |
msgid "Registered Users Only"
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: polls-options.php:281
|
826 |
msgid "Registered Users And Guests"
|
827 |
msgstr ""
|
828 |
|
829 |
+
#: polls-options.php:291
|
830 |
msgid "Poll Logging Method:"
|
831 |
msgstr ""
|
832 |
|
833 |
+
#: polls-options.php:294
|
834 |
msgid "Do Not Log"
|
835 |
msgstr ""
|
836 |
|
837 |
+
#: polls-options.php:295
|
838 |
msgid "Logged By Cookie"
|
839 |
msgstr ""
|
840 |
|
841 |
+
#: polls-options.php:296
|
842 |
msgid "Logged By IP"
|
843 |
msgstr ""
|
844 |
|
845 |
+
#: polls-options.php:297
|
846 |
msgid "Logged By Cookie And IP"
|
847 |
msgstr ""
|
848 |
|
849 |
+
#: polls-options.php:298
|
850 |
msgid "Logged By Username"
|
851 |
msgstr ""
|
852 |
|
853 |
+
#: polls-options.php:303
|
854 |
msgid "Expiry Time For Cookie And Log:"
|
855 |
msgstr ""
|
856 |
|
857 |
+
#: polls-options.php:304
|
858 |
msgid "seconds (0 to disable)"
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: polls-options.php:309
|
862 |
msgid "Poll Archive"
|
863 |
msgstr ""
|
864 |
|
865 |
+
#: polls-options.php:312
|
866 |
msgid "Number Of Polls Per Page:"
|
867 |
msgstr ""
|
868 |
|
869 |
+
#: polls-options.php:316
|
870 |
msgid "Type Of Polls To Display In Poll Archive:"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: polls-options.php:319
|
874 |
msgid "Closed Polls Only"
|
875 |
msgstr ""
|
876 |
|
877 |
+
#: polls-options.php:320
|
878 |
msgid "Opened Polls Only"
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: polls-options.php:321
|
882 |
msgid "Closed And Opened Polls"
|
883 |
msgstr ""
|
884 |
|
885 |
+
#: polls-options.php:326
|
886 |
msgid "Poll Archive URL:"
|
887 |
msgstr ""
|
888 |
|
889 |
+
#: polls-options.php:330
|
890 |
msgid "Display Poll Archive Link Below Poll?"
|
891 |
msgstr ""
|
892 |
|
893 |
+
#: polls-options.php:339
|
894 |
+
#: polls-options.php:377
|
895 |
msgid "Note"
|
896 |
msgstr ""
|
897 |
|
898 |
+
#: polls-options.php:340
|
899 |
msgid "Only polls' results will be shown in the Poll Archive regardless of whether the poll is closed or opened."
|
900 |
msgstr ""
|
901 |
|
|
|
902 |
#: polls-options.php:345
|
903 |
+
#: polls-options.php:348
|
904 |
#: wp-polls-widget.php:114
|
905 |
msgid "Current Active Poll"
|
906 |
msgstr ""
|
907 |
|
908 |
+
#: polls-options.php:351
|
909 |
#: wp-polls-widget.php:120
|
910 |
msgid "Do NOT Display Poll (Disable)"
|
911 |
msgstr ""
|
912 |
|
913 |
+
#: polls-options.php:352
|
914 |
#: wp-polls-widget.php:125
|
915 |
msgid "Display Random Poll"
|
916 |
msgstr ""
|
917 |
|
918 |
+
#: polls-options.php:353
|
919 |
#: wp-polls-widget.php:130
|
920 |
msgid "Display Latest Poll"
|
921 |
msgstr ""
|
922 |
|
923 |
+
#: polls-options.php:355
|
924 |
#: wp-polls-widget.php:135
|
925 |
msgid "Display Multiple Polls"
|
926 |
msgstr ""
|
927 |
|
928 |
+
#: polls-options.php:378
|
929 |
msgid "If you chose 'Display Multiple Polls' for the above option, you need to configure it in Presentation -> Widgets -> Poll."
|
930 |
msgstr ""
|
931 |
|
932 |
+
#: polls-options.php:382
|
933 |
msgid "When Poll Is Closed"
|
934 |
msgstr ""
|
935 |
|
936 |
+
#: polls-options.php:385
|
937 |
msgid "Display Poll's Results"
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: polls-options.php:386
|
941 |
msgid "Display Disabled Poll's Voting Form"
|
942 |
msgstr ""
|
943 |
|
944 |
+
#: polls-options.php:387
|
945 |
msgid "Do Not Display Poll In Post/Sidebar"
|
946 |
msgstr ""
|
947 |
|
948 |
+
#: polls-options.php:395
|
949 |
+
#: polls-templates.php:493
|
950 |
msgid "Save Changes"
|
951 |
msgstr ""
|
952 |
|
1012 |
|
1013 |
#: polls-templates.php:110
|
1014 |
#: polls-templates.php:125
|
1015 |
+
#: wp-polls.php:1416
|
1016 |
+
#: wp-polls.php:1429
|
1017 |
msgid "Vote"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
#: polls-templates.php:110
|
1021 |
+
#: wp-polls.php:1417
|
1022 |
msgid "View Results Of This Poll"
|
1023 |
msgstr ""
|
1024 |
|
1025 |
#: polls-templates.php:110
|
1026 |
+
#: wp-polls.php:1417
|
1027 |
msgid "View Results"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
#: polls-templates.php:116
|
1031 |
#: polls-templates.php:119
|
1032 |
+
#: wp-polls.php:1422
|
1033 |
+
#: wp-polls.php:1423
|
1034 |
+
msgid ","
|
1035 |
+
msgstr ""
|
1036 |
+
|
1037 |
+
#: polls-templates.php:116
|
1038 |
+
#: polls-templates.php:119
|
1039 |
+
#: wp-polls.php:1422
|
1040 |
+
#: wp-polls.php:1423
|
1041 |
msgid "Votes"
|
1042 |
msgstr ""
|
1043 |
|
1044 |
#: polls-templates.php:119
|
1045 |
+
#: wp-polls.php:1423
|
1046 |
msgid "You Have Voted For This Choice"
|
1047 |
msgstr ""
|
1048 |
|
1049 |
#: polls-templates.php:125
|
1050 |
+
#: wp-polls.php:1429
|
1051 |
msgid "Vote For This Poll"
|
1052 |
msgstr ""
|
1053 |
|
1054 |
#: polls-templates.php:128
|
1055 |
+
#: wp-polls.php:1456
|
1056 |
msgid "Polls Archive"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
#: polls-templates.php:134
|
1060 |
+
#: wp-polls.php:1460
|
1061 |
msgid "Start Date:"
|
1062 |
msgstr ""
|
1063 |
|
1064 |
#: polls-templates.php:134
|
1065 |
+
#: wp-polls.php:1460
|
1066 |
msgid "End Date:"
|
1067 |
msgstr ""
|
1068 |
|
1069 |
#: polls-templates.php:143
|
1070 |
+
#: wp-polls.php:1431
|
1071 |
msgid "Sorry, there are no polls available at the moment."
|
1072 |
msgstr ""
|
1073 |
|
1074 |
#: polls-templates.php:146
|
1075 |
+
#: wp-polls.php:1432
|
1076 |
msgid "An error has occurred when processing your poll."
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: polls-templates.php:157
|
1080 |
+
#: wp-polls.php:66
|
1081 |
msgid "Poll Templates"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
+
#: polls-templates.php:159
|
1085 |
msgid "Template Variables"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
+
#: polls-templates.php:164
|
1089 |
msgid "Display the poll's ID"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: polls-templates.php:168
|
1093 |
msgid "Display the poll's answer ID"
|
1094 |
msgstr ""
|
1095 |
|
1096 |
+
#: polls-templates.php:174
|
1097 |
msgid "Display the poll's question"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
+
#: polls-templates.php:178
|
1101 |
msgid "Display the poll's answer"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
+
#: polls-templates.php:184
|
1105 |
msgid "Display the poll's total votes NOT the number of people who voted for the poll"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
+
#: polls-templates.php:188
|
1109 |
msgid "Display the poll's answer without HTML formatting."
|
1110 |
msgstr ""
|
1111 |
|
1112 |
+
#: polls-templates.php:194
|
1113 |
msgid "Displays URL to poll's result"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
+
#: polls-templates.php:198
|
1117 |
msgid "Display the poll's answer votes"
|
1118 |
msgstr ""
|
1119 |
|
1120 |
+
#: polls-templates.php:204
|
1121 |
msgid "Display the poll's most voted answer"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
+
#: polls-templates.php:208
|
1125 |
msgid "Display the poll's answer percentage"
|
1126 |
msgstr ""
|
1127 |
|
1128 |
+
#: polls-templates.php:214
|
1129 |
msgid "Display the poll's answer votes for the most voted answer"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: polls-templates.php:218
|
1133 |
msgid "Display the poll's answer image width"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: polls-templates.php:224
|
1137 |
msgid "Display the poll's answer percentage for the most voted answer"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: polls-templates.php:228
|
1141 |
msgid "Display the poll's least voted answer"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: polls-templates.php:234
|
1145 |
msgid "Display the poll's start date/time"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
+
#: polls-templates.php:238
|
1149 |
msgid "Display the poll's answer votes for the least voted answer"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
+
#: polls-templates.php:244
|
1153 |
msgid "Display the poll's end date/time"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: polls-templates.php:248
|
1157 |
msgid "Display the poll's answer percentage for the least voted answer"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
+
#: polls-templates.php:254
|
1161 |
msgid "Display the the maximum number of answers the user can choose if the poll supports multiple answers"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#: polls-templates.php:258
|
1165 |
msgid "Display \"checkbox\" or \"radio\" input types depending on the poll type"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
+
#: polls-templates.php:264
|
1169 |
msgid "Display the number of people who voted for the poll NOT the total votes of the poll"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
+
#: polls-templates.php:268
|
1173 |
msgid "Display the poll archive URL"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
+
#: polls-templates.php:273
|
1177 |
msgid "Note: <strong>%POLL_TOTALVOTES%</strong> and <strong>%POLL_TOTALVOTERS%</strong> will be different if your poll supports multiple answers. If your poll allows only single answer, both value will be the same."
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: polls-templates.php:279
|
1181 |
msgid "Poll Voting Form Templates"
|
1182 |
msgstr ""
|
1183 |
|
1184 |
+
#: polls-templates.php:283
|
1185 |
msgid "Voting Form Header:"
|
1186 |
msgstr ""
|
1187 |
|
1188 |
+
#: polls-templates.php:284
|
1189 |
+
#: polls-templates.php:299
|
1190 |
+
#: polls-templates.php:312
|
1191 |
+
#: polls-templates.php:328
|
1192 |
+
#: polls-templates.php:343
|
1193 |
+
#: polls-templates.php:357
|
1194 |
+
#: polls-templates.php:371
|
1195 |
+
#: polls-templates.php:391
|
1196 |
+
#: polls-templates.php:416
|
1197 |
+
#: polls-templates.php:425
|
1198 |
+
#: polls-templates.php:434
|
1199 |
+
#: polls-templates.php:453
|
1200 |
+
#: polls-templates.php:462
|
1201 |
+
#: polls-templates.php:476
|
1202 |
+
#: polls-templates.php:485
|
1203 |
msgid "Allowed Variables:"
|
1204 |
msgstr ""
|
1205 |
|
1206 |
+
#: polls-templates.php:292
|
1207 |
+
#: polls-templates.php:305
|
1208 |
+
#: polls-templates.php:316
|
1209 |
+
#: polls-templates.php:336
|
1210 |
+
#: polls-templates.php:350
|
1211 |
+
#: polls-templates.php:364
|
1212 |
+
#: polls-templates.php:384
|
1213 |
+
#: polls-templates.php:404
|
1214 |
+
#: polls-templates.php:418
|
1215 |
+
#: polls-templates.php:427
|
1216 |
+
#: polls-templates.php:446
|
1217 |
+
#: polls-templates.php:455
|
1218 |
+
#: polls-templates.php:464
|
1219 |
+
#: polls-templates.php:478
|
1220 |
+
#: polls-templates.php:487
|
1221 |
msgid "Restore Default Template"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
+
#: polls-templates.php:298
|
1225 |
msgid "Voting Form Body:"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
+
#: polls-templates.php:311
|
1229 |
msgid "Voting Form Footer:"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: polls-templates.php:323
|
1233 |
msgid "Poll Result Templates"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: polls-templates.php:327
|
1237 |
msgid "Result Header:"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: polls-templates.php:342
|
1241 |
+
#: polls-templates.php:356
|
1242 |
msgid "Result Body:"
|
1243 |
msgstr ""
|
1244 |
|
1245 |
+
#: polls-templates.php:342
|
1246 |
+
#: polls-templates.php:390
|
1247 |
msgid "Displayed When The User HAS NOT Voted"
|
1248 |
msgstr ""
|
1249 |
|
1250 |
+
#: polls-templates.php:356
|
1251 |
+
#: polls-templates.php:370
|
1252 |
msgid "Displayed When The User HAS Voted"
|
1253 |
msgstr ""
|
1254 |
|
1255 |
+
#: polls-templates.php:370
|
1256 |
+
#: polls-templates.php:390
|
1257 |
msgid "Result Footer:"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: polls-templates.php:411
|
1261 |
msgid "Poll Archive Templates"
|
1262 |
msgstr ""
|
1263 |
|
1264 |
+
#: polls-templates.php:415
|
1265 |
msgid "Poll Archive Link"
|
1266 |
msgstr ""
|
1267 |
|
1268 |
+
#: polls-templates.php:415
|
1269 |
msgid "Template For Displaying Poll Archive Link"
|
1270 |
msgstr ""
|
1271 |
|
1272 |
+
#: polls-templates.php:424
|
1273 |
msgid "Individual Poll Header"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
+
#: polls-templates.php:424
|
1277 |
msgid "Displayed Before Each Poll In The Poll Archive"
|
1278 |
msgstr ""
|
1279 |
|
1280 |
+
#: polls-templates.php:426
|
1281 |
+
#: polls-templates.php:454
|
1282 |
+
#: polls-templates.php:463
|
1283 |
+
#: polls-templates.php:477
|
1284 |
+
#: polls-templates.php:486
|
1285 |
msgid "N/A"
|
1286 |
msgstr ""
|
1287 |
|
1288 |
+
#: polls-templates.php:433
|
1289 |
msgid "Individual Poll Footer"
|
1290 |
msgstr ""
|
1291 |
|
1292 |
+
#: polls-templates.php:433
|
1293 |
msgid "Displayed After Each Poll In The Poll Archive"
|
1294 |
msgstr ""
|
1295 |
|
1296 |
+
#: polls-templates.php:452
|
1297 |
msgid "Paging Header"
|
1298 |
msgstr ""
|
1299 |
|
1300 |
+
#: polls-templates.php:452
|
1301 |
msgid "Displayed Before Paging In The Poll Archive"
|
1302 |
msgstr ""
|
1303 |
|
1304 |
+
#: polls-templates.php:461
|
1305 |
msgid "Paging Footer"
|
1306 |
msgstr ""
|
1307 |
|
1308 |
+
#: polls-templates.php:461
|
1309 |
msgid "Displayed After Paging In The Poll Archive"
|
1310 |
msgstr ""
|
1311 |
|
1312 |
+
#: polls-templates.php:471
|
1313 |
msgid "Poll Misc Templates"
|
1314 |
msgstr ""
|
1315 |
|
1316 |
+
#: polls-templates.php:475
|
1317 |
msgid "Poll Disabled"
|
1318 |
msgstr ""
|
1319 |
|
1320 |
+
#: polls-templates.php:475
|
1321 |
msgid "Displayed When The Poll Is Disabled"
|
1322 |
msgstr ""
|
1323 |
|
1324 |
+
#: polls-templates.php:484
|
1325 |
msgid "Poll Error"
|
1326 |
msgstr ""
|
1327 |
|
1328 |
+
#: polls-templates.php:484
|
1329 |
msgid "Displayed When An Error Has Occured While Processing The Poll"
|
1330 |
msgstr ""
|
1331 |
|
1332 |
#: polls-uninstall.php:39
|
1333 |
+
#: polls-uninstall.php:135
|
1334 |
msgid "UNINSTALL WP-Polls"
|
1335 |
msgstr ""
|
1336 |
|
1349 |
msgid "Error deleting Setting Key '%s'."
|
1350 |
msgstr ""
|
1351 |
|
1352 |
+
#: polls-uninstall.php:82
|
1353 |
+
#: polls-uninstall.php:93
|
1354 |
+
#: wp-polls.php:67
|
1355 |
msgid "Uninstall WP-Polls"
|
1356 |
msgstr ""
|
1357 |
|
1358 |
+
#: polls-uninstall.php:83
|
1359 |
#, php-format
|
1360 |
msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Polls Will Be Deactivated Automatically."
|
1361 |
msgstr ""
|
1362 |
|
1363 |
+
#: polls-uninstall.php:95
|
1364 |
msgid "Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll's voting logs. To completely remove this plugin, you can uninstall it here."
|
1365 |
msgstr ""
|
1366 |
|
1367 |
+
#: polls-uninstall.php:98
|
1368 |
msgid "WARNING:"
|
1369 |
msgstr ""
|
1370 |
|
1371 |
+
#: polls-uninstall.php:99
|
1372 |
msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
|
1373 |
msgstr ""
|
1374 |
|
1375 |
+
#: polls-uninstall.php:102
|
1376 |
msgid "The following WordPress Options/Tables will be DELETED:"
|
1377 |
msgstr ""
|
1378 |
|
1379 |
+
#: polls-uninstall.php:107
|
1380 |
msgid "WordPress Options"
|
1381 |
msgstr ""
|
1382 |
|
1383 |
+
#: polls-uninstall.php:108
|
1384 |
msgid "WordPress Tables"
|
1385 |
msgstr ""
|
1386 |
|
1387 |
+
#: polls-uninstall.php:133
|
1388 |
msgid "Do you really want to uninstall WP-Polls?"
|
1389 |
msgstr ""
|
1390 |
|
1391 |
+
#: polls-uninstall.php:135
|
1392 |
msgid ""
|
1393 |
"You Are About To Uninstall WP-Polls From WordPress.\\n"
|
1394 |
"This Action Is Not Reversible.\\n"
|
1396 |
" Choose [Cancel] To Stop, [OK] To Uninstall."
|
1397 |
msgstr ""
|
1398 |
|
|
|
|
|
|
|
|
|
|
|
1399 |
#: wp-polls-widget.php:96
|
1400 |
msgid "Title"
|
1401 |
msgstr ""
|
1408 |
msgid "Select Multiple Polls"
|
1409 |
msgstr ""
|
1410 |
|
1411 |
+
#: wp-polls.php:196
|
1412 |
msgid "Your last request is still being processed. Please wait a while ..."
|
1413 |
msgstr ""
|
1414 |
|
1415 |
+
#: wp-polls.php:197
|
1416 |
msgid "Please choose a valid poll answer."
|
1417 |
msgstr ""
|
1418 |
|
1419 |
+
#: wp-polls.php:198
|
1420 |
msgid "Maximum number of choices allowed:"
|
1421 |
msgstr ""
|
1422 |
|
1423 |
+
#: wp-polls.php:246
|
1424 |
msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs."
|
1425 |
msgstr ""
|
1426 |
|
1427 |
+
#: wp-polls.php:248
|
1428 |
msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs for this poll ONLY."
|
1429 |
msgstr ""
|
1430 |
|
1431 |
+
#: wp-polls.php:265
|
1432 |
msgid "Enter Poll ID"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
+
#: wp-polls.php:266
|
1436 |
msgid "Error: Poll ID must be numeric"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
+
#: wp-polls.php:266
|
1440 |
msgid "Please enter Poll ID again"
|
1441 |
msgstr ""
|
1442 |
|
1443 |
+
#: wp-polls.php:283
|
1444 |
+
#: wp-polls.php:289
|
1445 |
msgid "Poll"
|
1446 |
msgstr ""
|
1447 |
|
1448 |
+
#: wp-polls.php:290
|
1449 |
msgid "Insert Poll"
|
1450 |
msgstr ""
|
1451 |
|
1452 |
+
#: wp-polls.php:527
|
1453 |
+
#: wp-polls.php:687
|
1454 |
msgid "Loading"
|
1455 |
msgstr ""
|
1456 |
|
1457 |
+
#: wp-polls.php:733
|
1458 |
msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll."
|
1459 |
msgstr ""
|
1460 |
|
1461 |
+
#: wp-polls.php:1083
|
1462 |
#, php-format
|
1463 |
msgid "Page %s of %s"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
+
#: wp-polls.php:1085
|
1467 |
msgid "« First"
|
1468 |
msgstr ""
|
1469 |
|
1470 |
+
#: wp-polls.php:1089
|
1471 |
msgid "«"
|
1472 |
msgstr ""
|
1473 |
|
1474 |
+
#: wp-polls.php:1099
|
1475 |
msgid "»"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
+
#: wp-polls.php:1103
|
1479 |
msgid "Last »"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: wp-polls.php:1284
|
1483 |
#, php-format
|
1484 |
msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s"
|
1485 |
msgstr ""
|
1486 |
|
1487 |
+
#: wp-polls.php:1288
|
1488 |
#, php-format
|
1489 |
msgid "You Had Already Voted For This Poll. Poll ID #%s"
|
1490 |
msgstr ""
|
1491 |
|
1492 |
+
#: wp-polls.php:1292
|
1493 |
#, php-format
|
1494 |
msgid "Invalid Poll ID. Poll ID #%s"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
+
#: wp-polls.php:1320
|
1498 |
+
#: wp-polls.php:1322
|
1499 |
+
#: wp-polls.php:1332
|
1500 |
msgid "WP-Polls"
|
1501 |
msgstr ""
|
1502 |
|
1503 |
+
#: wp-polls.php:1334
|
1504 |
#, php-format
|
1505 |
msgid "<strong>%s</strong> poll was created."
|
1506 |
msgid_plural "<strong>%s</strong> polls were created."
|
1507 |
msgstr[0] ""
|
1508 |
msgstr[1] ""
|
1509 |
|
1510 |
+
#: wp-polls.php:1335
|
1511 |
#, php-format
|
1512 |
msgid "<strong>%s</strong> polls' answer was given."
|
1513 |
msgid_plural "<strong>%s</strong> polls' answers were given."
|
1514 |
msgstr[0] ""
|
1515 |
msgstr[1] ""
|
1516 |
|
1517 |
+
#: wp-polls.php:1336
|
1518 |
#, php-format
|
1519 |
msgid "<strong>%s</strong> vote was casted."
|
1520 |
msgid_plural "<strong>%s</strong> votes were casted."
|
1521 |
msgstr[0] ""
|
1522 |
msgstr[1] ""
|
1523 |
|
1524 |
+
#: wp-polls.php:1400
|
1525 |
msgid "How Is My Site?"
|
1526 |
msgstr ""
|
1527 |
|
1528 |
+
#: wp-polls.php:1403
|
1529 |
msgid "Good"
|
1530 |
msgstr ""
|
1531 |
|
1532 |
+
#: wp-polls.php:1404
|
1533 |
msgid "Excellent"
|
1534 |
msgstr ""
|
1535 |
|
1536 |
+
#: wp-polls.php:1405
|
1537 |
msgid "Bad"
|
1538 |
msgstr ""
|
1539 |
|
1540 |
+
#: wp-polls.php:1406
|
1541 |
msgid "Can Be Improved"
|
1542 |
msgstr ""
|
1543 |
|
1544 |
+
#: wp-polls.php:1407
|
1545 |
msgid "No Comments"
|
1546 |
msgstr ""
|
1547 |
|