{* Show Polls *} {if $polls|@count > 0}
Recent Polls

{assign var=polltotal value=$polls|@count} {if $polltotal < 4} {assign var=polltotal value=$polltotal-1} {else} {assign var=polltotal value=4} {/if} {section name=poll_loop loop=$polls max=4}
{$polls[poll_loop]->poll_info.poll_title|truncate:50:"...":true}
{assign var='poll_datecreated' value=$datetime->time_since($polls[poll_loop]->poll_info.poll_datecreated)}{capture assign="created"}{lang_sprintf id=$poll_datecreated[0] 1=$poll_datecreated[1]}{/capture} {lang_sprintf id=2500108 1=$created 2="/profile.php?user=`$polls[poll_loop]->poll_owner->user_info.user_username`" 3=$polls[poll_loop]->poll_owner->user_displayname}
{lang_sprintf id=2500028 1=$polls[poll_loop]->poll_info.poll_totalvotes}, {lang_sprintf id=507 1=$polls[poll_loop]->poll_info.total_comments}, {lang_sprintf id=949 1=$polls[poll_loop]->poll_info.poll_views}
{$polls[poll_loop]->poll_info.poll_desc|escape:html|truncate:75:"...":true}
{if $smarty.section.poll_loop.rownum < 4 || $smarty.section.poll_loop.rownum < $polltotal}
{else}
 
{/if} {/section}
{/if}