{if not empty($ratings) and $tiki_p_wiki_view_ratings eq 'y'}
{button href="#" _onclick="show('pollzone');hide('polledit');hide('pollopen');return false;" class="link" _text="{tr}Rating{/tr}"}
{if $tiki_p_wiki_vote_ratings eq 'y'}
{button href="#" _onclick="hide('pollzone');hide('polledit');show('pollopen');return false;" _text="{tr}[-]{/tr}"} {button href="#" _onclick="show('pollzone');hide('polledit');hide('pollopen');return false;" class="link" _text="{tr}View{/tr}"}
{foreach from=$ratings item=r} {if $r.title}
{$r.title|escape}
{/if}
{if $page} {/if} {foreach from=$r.options item=option} {/foreach}
({$option.votes|escape})
{/foreach}
{button href="#" _onclick="hide('pollzone');hide('polledit');show('pollopen');return false;" _text="[-]"} {button href="#" _onclick="hide('pollzone');show('polledit');hide('pollopen');return false;" _text="{tr}Vote{/tr}"}
{foreach from=$ratings item=r}
{if $r.title}
{$r.title|escape}
{/if} {foreach from=$r.options item=option}
{$option.votes|escape} : {$option.title|escape}
{/foreach}
{/foreach}
{else}
{button href="#" _onclick="hide('pollzone');hide('polledit');show('pollopen');return false;" _text="[-]"}
{foreach from=$ratings item=r}
{if $r.title}
{$r.title|escape}
{/if} {foreach item=option from=$r.options}
{$option.votes|escape} : {$option.title|escape}
{/foreach}
{/foreach}
{/if}
{/if}