';
if (!empty($context['poll_error']['messages']))
echo '
|
', $context['is_edit'] ? $txt['error_while_editing_poll'] : $txt['error_while_adding_poll'], ':
', empty($context['poll_error']['messages']) ? '' : implode(' ', $context['poll_error']['messages']), '
|
';
echo '
' . $txt['smf21'] . ': |
|
|
';
foreach ($context['choices'] as $choice)
{
echo '
: ';
// Does this option have a vote count yet, or is it new?
if ($choice['votes'] != -1)
echo ' (', $choice['votes'], ' ', $txt['smf42'], ')';
if (!$choice['is_last'])
echo ' ';
}
echo '
(', $txt['poll_add_option'], ')
|
';
if ($context['can_moderate_poll'])
echo '
', $txt['poll_options'], ': |
', $txt['poll_options5'], ' |
|
', $txt['poll_options1a'], ' ', $txt['poll_options1b'], ' |
|
|
| ';
else
echo '
', $txt['poll_options'], ': | ';
echo '
' . $txt['poll_options2'] . '
' . $txt['poll_options3'] . '
' . $txt['poll_options4'] . '
| ';
// If this is an edit, we can allow them to reset the vote counts.
if ($context['is_edit'])
echo '
' . $txt['smf40'] . ': |
' . $txt['smf41'] . ' | ';
echo '
' . $txt['smf16'] . '
|
|
|