Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Markus Hermann
wp-polls
Commits
c9c67925
Unverified
Commit
c9c67925
authored
Jun 21, 2018
by
Lester Chan
Browse files
Support %POLL_MULTIPLE_ANSWER_PERCENTAGE%. This is total votes divided by total voters.
parent
9c65f0ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
polls-templates.php
View file @
c9c67925
...
...
@@ -349,6 +349,7 @@ if( isset($_POST['Submit']) && $_POST['Submit'] ) {
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_TEXT%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_VOTES%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_PERCENTAGE%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_MULTIPLE_ANSWER_PERCENTAGE%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_IMAGEWIDTH%
</p><br
/>
<input
type=
"button"
name=
"RestoreDefault"
value=
"
<?php
_e
(
'Restore Default Template'
,
'wp-polls'
);
?>
"
onclick=
"poll_default_templates('resultbody');"
class=
"button"
/>
</td>
...
...
@@ -363,7 +364,8 @@ if( isset($_POST['Submit']) && $_POST['Submit'] ) {
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_TEXT%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_VOTES%
</p>
- %POLL_ANSWER_PERCENTAGE%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_PERCENTAGE%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_MULTIPLE_ANSWER_PERCENTAGE%
</p>
<p
style=
"margin: 2px 0"
>
- %POLL_ANSWER_IMAGEWIDTH%
</p><br
/>
<input
type=
"button"
name=
"RestoreDefault"
value=
"
<?php
_e
(
'Restore Default Template'
,
'wp-polls'
);
?>
"
onclick=
"poll_default_templates('resultbody2');"
class=
"button"
/>
</td>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment