{if !is_array($best_choices) || empty($best_choices)} {$best_choices = [0]} {/if}

{__('Poll results', 'Votes of the poll')} {if $hidden}({__('PollInfo', 'Results are hidden.')}){/if}

{if $admin && !$expired} {foreach $slots as $id=>$slot} {/foreach} {/if} {foreach $slots as $id=>$slot} {/foreach} {foreach $votes as $vote} {if $editingVoteId === $vote->uniqId} {* Edited line *} {foreach $vote->choices as $id=>$choice} {/foreach} {elseif !$hidden} {* Voted line *} {foreach $vote->choices as $id=>$choice} {if $choice==2} {elseif $choice==1} {else} {/if} {/foreach} {if $active && !$expired && ($poll->editable == constant('Framadate\Editable::EDITABLE_BY_ALL') or $admin)} {else} {/if} {/if} {/foreach} {* Line to add a new vote *} {if $active && $editingVoteId === 0 && !$expired} {foreach $slots as $id=>$slot} {/foreach} {/if} {if !$hidden} {* Line displaying best moments *} {$count_bests = 0} {$max = max($best_choices['y'])} {if $max > 0} {foreach $best_choices['y'] as $i=>$best_choice} {if $max == $best_choice} {$count_bests = $count_bests +1} {elseif $best_choice > 0} {elseif $best_choices['inb'][$i]>0} {else} {/if} {/foreach} {/if} {/if}
{__('Poll results', 'Votes of the poll')} {$poll->title|html}
{__('Generic', 'Remove')} {__('Poll results', 'Add a column')}
{$slot->title|markdown}
{$vote->name|html}{__('Generic', 'Yes')}(){__('Generic', 'Ifneedbe')}{__('Generic', 'No')} {__('Generic', 'Edit')} {if $admin} {__('Generic', 'Remove')} {/if}
{__('Poll results', 'Addition')}
{$votes|count} {if ($votes|count)==1}{__('Poll results', 'polled user')}{else}{__('Poll results', 'polled users')}{/if}
{$best_choice|html}{if $best_choices['inb'][$i]>0}
(+{$best_choices['inb'][$i]|html}){/if}
{$best_choice|html}{if $best_choices['inb'][$i]>0}
(+{$best_choices['inb'][$i]|html}){/if}

(+{$best_choices['inb'][$i]|html})
{if !$hidden && $max > 0} {/if} {if !$hidden} {* Best votes listing *} {$max = max($best_choices['y'])} {if $max > 0}
{if $count_bests == 1}

{__('Poll results', 'Best choice')}

{__('Poll results', 'The best choice at this time is:')}

{elseif $count_bests > 1}

{__('Poll results', 'Best choices')}

{__('Poll results', 'The bests choices at this time are:')}

{/if} {$i = 0}
    {foreach $slots as $slot} {if $best_choices['y'][$i] == $max}
  • {$slot->title|markdown:true}
  • {/if} {$i = $i+1} {/foreach}

{__('Generic', 'with')} {$max|html} {if $max==1}{__('Generic', 'vote')}{else}{__('Generic', 'votes')}{/if}.

{/if} {/if}