{strip} {assign var=check_admin value=false} {assign var=club_id value=$clubid} {if $clubid > 0} {assign var=feed_author value={$clubid}} {assign var=isclub value=true} {assign var=check_admin value=$this->checkGroupAdmin($res.byuser,$clubid)} {else} {assign var=isclub value=false} {assign var=feed_author value={$res.uid}} {/if} {if empty($pd)}
{$this->corrFeed()}
{else} {if $res.community == 'yes' && !$isclub} {$clubid = $res.parent_id} {$isclub = true} {assign var=check_admin value=$this->checkGroupAdmin($res.byuser,$clubid)} {/if} {assign var="bgcolor" value=$this->generateMediaPost($p_text,'bgcolor',0,$clubid)} {assign var="str_text" value=$this->str_smilies($this->generateMediaPost($p_text,'text',0,$clubid))} {assign var="track_cover" value=$this->generateMediaPost($p_text,'songs_cover',0,$clubid)} {assign var="tagged_friends" value=$this->generateMediaPost($p_text,'tagged_people',0,$clubid)} {assign var="tagged_places" value=$this->generateMediaPost($p_text,'places',0,$clubid)} {assign var="photos" value=$this->generateMediaPost($p_text,'photos',$pid,$clubid)} {assign var="video" value=$this->generateMediaPost($p_text,'videos',0,$clubid)} {assign var="tracks" value=$this->generateMediaPost($p_text,'tracks',0,$clubid)} {assign var="links" value=$this->generateMediaPost($p_text,'links',0,$clubid)} {assign var="poll" value=$this->generateMediaPost($p_text,'poll',0,$clubid)} {assign var="item_type" value="post"} {assign var="k_it_type" value=""} {assign var="more" value=0} {assign var="c_more" value=0}
{if $bgcolor}{$bgcolor}{else} {$this->checkForTranslating($str_text)} {/if} {if empty($video[0]) && empty($photos[0]) && !$links && count($tagged_places)}
{$tagged_places[1]}
{/if} {if $video[0] != '' && $video[1] != ''} {if $c_more < 2}
{$video[0]}
{/if} {if $video[1] == 1} {$k_it_type = 'video'}{/if} {$c_more = $c_more+1} {if $video[1] > 3} {$more = 1} {/if} {else if $pd.type == 'videos'} {$this->unv_feed('video',$res.id)} {/if} {if $photos[0] != '' && $photos[1] != ''} {if $photos[1] == 1 && $k_it_type == ''} {$k_it_type = 'photos'} {else if $photos[1] >= 1 && $k_it_type != ''} {$k_it_type = ''} {/if} {if $c_more < 2}
{$photos[0]}
{/if} {$c_more = $c_more+1} {if $photos[1] && $video[0] != '' || $photos[1] > 2} {$more = 1} {/if} {else if $pd.type === 'photo'} Photo is not available {/if} {if $poll}
{$poll}
{/if} {if $links && $c_more < 2}
{$links}
{$k_it_type = ''} {$c_more = $c_more+1} {/if} {if !empty($tracks[0]) && !empty($tracks[1]) && $c_more < 2} {$k_it_type = ''} {if !$photos && !$video[0] && !$tagged_places && !$links} {if $track_cover}{assign var="song_use_cv" value="1"}
{/if} {/if}
{$tracks[0]}
{$c_more = $c_more+1} {if $tracks[1] > 4 || ($tracks[1] && $tagged_places) } {$more = 1} {/if} {/if}
•••
{include file="{$smarty.const.__ROOT__}{$this->feed_templates}/widget-list.html"}
{/if} {/strip}