{if ($__wcf->getUser()->userID || $poll->canSeeResult() || $poll->canViewParticipants()) && !$__pollLoadedJavaScript|isset} {assign var=__pollLoadedJavaScript value=true} {/if}
{$poll->question} {#$poll->votes}
{if !$__wcf->getUser()->userID} {if $poll->canSeeResult()} {include file='pollResult'} {else} {include file='pollVote'} {/if} {else} {if $poll->canVote() && !$poll->isParticipant()} {include file='pollVote'} {else} {include file='pollResult'} {/if} {/if} {event name='pollData'}
{hascontent}
{content} {if $__wcf->getUser()->userID} {/if} {if $poll->canViewParticipants()} {/if} {event name='pollButtons'} {/content}
{/hascontent}