{strip} {assign var=c_tr_w value=''} {assign var=c_tr_h value=''} {assign var=visible_photos value=0} {assign var=widget_enabled value=0} {assign var=club_id value=$clubid} {if $clubid > 0} {assign var=feed_author value={$clubid}} {assign var=isclub value=true} {else} {assign var=isclub value=false} {assign var=feed_author value={$res.uid}} {/if} {if $res.community == 'yes' && !$isclub && $index_feed > 0} {$clubid = $res.parent_id} {/if}
{if $photo_c == 1}
{else if $photo_c <= 5 && $photo_c > 1}
{else}
{/if} {foreach $m_photos as $ph_id} {assign var=kl_res value={$this->gMultiPhotosKlass($ph_id)}} {assign var=kl_count value={$this->smarty_explode_data($kl_res,',','0')}} {assign var=kl_eu value={$this->smarty_explode_data($kl_res,',','1')}} {if $clubid > 0} {assign var=is_gif value={$this->is_gif($ph_id,1)}} {else} {assign var=is_gif value={$this->is_gif($ph_id)}} {/if} {if $photo_c == 1} {assign $widget_enabled $widget_enabled++ nocache} {if $clubid > 0}
{$this->str_smilies($this->getPhotoDescription($ph_id,1))}
{else}
{$this->str_smilies($this->getPhotoDescription($ph_id))}
{/if}
{if $clubid > 0} {else} {/if}
{else} {assign var=comm_count value=$this->getCommentsCount($ph_id,'photo',$clubid)}
{if $clubid > 0} {if $visible_photos === 5}
+{$photo_c-6}
{/if} {if $is_gif}GIF{/if} {else} {if $visible_photos === 5}
+{$photo_c-6}
{/if} {if $is_gif}GIF{/if} {/if}
{$visible_photos = $visible_photos+1} {/if} {/foreach}
{if $widget_enabled}
{include file="{$smarty.const.__ROOT__}{$this->feed_templates}/widget-list.html"}
{/if}
{if $widget_enabled} {/if} {/strip}