{$feed['uname']}
{$feed.publish_time|friendlyDate} {$feed.from}

echo wapFormatContent($feed['content']);

switch($feed['type']){ case 'postimage': switch(count($feed['attach'])){ case 1: $img_class='m-i-b-p-100'; break; case 2: $img_class='m-i-b-p-50'; break; default: $img_class='m-i-b-p'; break; } echo '
'; foreach($feed['attach'] as $k => $v){ //dump($v); if(count($feed['attach'])>=3){ echo ''; }else{ echo ''; } } echo '
'; break; case 'repost': echo '
'.$feed['transpond_data']['uname'].': '.$feed['transpond_data']['content'].'
'; break; case 'repost-postimage': echo '
'.$feed['transpond_data']['uname'].': '.$feed['transpond_data']['content']; switch(count($feed['transpond_data']['attach'])){ case 1: $img_class='m-i-b-p-100'; break; case 2: $img_class='m-i-b-p-50'; break; default: $img_class='m-i-b-p'; break; } echo '
'; foreach($feed['transpond_data']['attach'] as $k => $v){ if(count($feed['transpond_data']['attach'])>=3){ echo ''; }else{ echo ''; } } echo '
'; break; case 'repost-removed': echo '
'.$feed['transpond_data']['uname'].': 这条分享不幸被删除了...
'; break; case 'weiba_repost': echo '

'.$feed['transpond_data']['uname'].':'.$feed['api_source']['title'].'

'.$feed['api_source']['content'].'link

'; break; case 'weiba_repost-removed': //dump($feed['api_source']); echo '

'.$feed['transpond_data']['uname'].':'.$feed['api_source']['title'].'

'.$feed['api_source']['content'].'link

'; break; case 'postfile': echo '

'; for($i=0;$i
{$feed['attach'][$i]['attach_name']}
} echo '
'; break; case 'repost-postfile': echo '
'; for($i=0;$i
{$feed['api_source']['attach'][$i]['attach_name']}
} echo '
'; break; case 'postvideo': echo '
'; echo '
'; echo ''; echo '
'; break; case 'repost-postvideo': echo '
'.$feed['transpond_data']['uname'].': '.$feed['transpond_data']['content']; echo '
'; echo '
'; echo ''; echo '
'; echo '
'; break; default: break; }