{strip} {if empty($pd)}
{$res.fullname} {$this->lang['liked_a_post']}
{$this->feedConvDate($res.added)}
{$this->corrFeed()}
{else} {assign var="str_text" value=$this->str_smilies($this->generateMediaPost($p_text,'text'))} {assign var="bgcolor" value=$this->generateMediaPost($p_text,'bgcolor')} {assign var="track_cover" value=$this->generateMediaPost($p_text,'songs_cover')} {assign var="tagged_friends" value=$this->generateMediaPost($p_text,'tagged_people')} {assign var="tagged_places" value=$this->generateMediaPost($p_text,'places')} {assign var="photos" value=$this->generateMediaPost($p_text,'photos',$pid)} {assign var="video" value=$this->generateMediaPost($p_text,'videos')} {assign var="tracks" value=$this->generateMediaPost($p_text,'tracks')} {assign var="links" value=$this->generateMediaPost($p_text,'links')} {assign var="item_type" value="post"} {assign var="k_it_type" value=""} {assign var="more" value=0} {assign var="c_more" value=0}
{$res.fullname} {$this->lang['liked_a_post']}
{$this->feedConvDate($res.added)}
{if $bgcolor} {$bgcolor} {else} {$this->checkForTranslating($str_text)} {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 $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} {/if}
•••
{include file="{$this->theme_dir}/feed/widget-list.html"}
{/if} {/strip}