{strip} {assign var=post_mode value=''}
{if ((isset($clubid) && $clubid > 0) || (isset($r) && $r.original_post_community == 'yes')) && $post_type == 'club'} {$this->generateCommunitySharedPost($clubid)} {else if $post_type == 'photo'} {assign var=author value=$this->getUserDetails($r.post_author_id)} {assign var=post_mode value=$this->lang['added_a_photo']} {if $r.original_post_community == 'yes'} {assign var=clubid value=$this->getClubidFromMediaPhotos($r.original_post_id)} {/if} {include file="{$this->theme_dir}/feed/shared-cnt-author-header.html"}
{if $r.original_post_community == 'yes'} {else} {/if}
{else if $post_type == 'market_product'} {assign var=author value=$this->getUserDetails($r.post_author_id)} {assign var=post_mode value=$this->lang['posted_an_item_for_sale']} {$r.text = "[product_{$r.original_post_id}]"} {assign var=product value=$this->getMarketProductDetails($r.original_post_id)}
{$author.fullname} {$this->lang['posted_an_item_for_sale']}
{$product.product_name}
{pellipse($product.product_description,100)} {if strlen($product.product_description) > 180}{$this->lang['Read_more']}{/if}
{$product.product_location}
{$product.price} {$this->settings['MARKETPLACE_CURRENCY']}.
{$this->lang['View_product']}
{else if $post_type == 'video'} {assign var=author value=$this->getUserDetails($r.post_author_id)} {assign var=post_mode value=$this->lang['added_a_video']} {include file="{$this->theme_dir}/feed/shared-cnt-author-header.html"} {assign var=c_video value={"[postVideo]{$r.original_post_id}[/postVideo]"}} {assign var="video" value=$this->generateMediaPost($c_video,'videos',0,$clubid)} {if $video[0] != '' && $video[1] != ''}
{$video[0]}
{/if} {else} {assign var=author value=$this->getUserDetails($r.post_author_id)} {assign var="p_text" value=$r.text} {assign var="str_text" value=$this->str_smilies($this->generateMediaPost($p_text,'text',0,$clubid))} {assign var="bgcolor" value=$this->generateMediaPost($p_text,'bgcolor',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',$r.id,$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="more" value=0} {assign var="c_more" value=0} {include file="{$this->theme_dir}/feed/shared-cnt-author-header.html"} {if $r.type == 'bgcolor'} {$bgcolor} {else} {$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 $r.type == 'videos'} Video is not available {/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 $r.type === 'photo'} Photo is not available {/if} {if $links && $c_more < 2}
{$links}
{$k_it_type = ''} {$c_more = $c_more+1} {/if} {if $poll}
{$poll}
{/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}
{$this->lang['view_more']} •••
{/if} {/if} {/if}
{$this->getCommentsCount($r.original_post_id,$post_type)} {$this->lang['Comments']}
{$this->getShareCount($r.original_post_id,$post_type)} {$this->lang['Share']}
{$this->getLikesCount($r.original_post_id,$post_type)} {$this->lang['likes']}
{/strip}