if(empty($commentlist)) {暂无更多信息}
{$feed.user_info.uname}
if($feed['app'] == 'weiba' || $feed['app'] == 'w3g' || $feed['app'] == 'public'){ $ctime=strtotime($feed[ctime]); echo friendlyDate($ctime); }else{ echo friendlyDate($feed[ctime]); } {$feed.from}

if($feed[to_comment_id] != 0){ $res = M('Comment')->where('comment_id='.$feed[to_comment_id])->find(); $uname = getUserName($feed[to_uid]); echo wapFormatContent($feed[content].' //@'.$uname.'：'.$res[content]); }else{ echo wapFormatContent($feed[content]); } if($feed[sourceInfo][is_del] == 0){ if($feed['sourceInfo']['type']=='postimage') {

{$feed['sourceInfo']['uname']}{:FriendlyDate($feed['sourceInfo']['publish_time'])}

{:getShort($feed['sourceInfo']['feed_content'],40)}

} else if($feed['sourceInfo']['type']=='post'){
@{$feed.sourceInfo.source_user_info.uname}:{:wapFormatContent($feed['sourceInfo'][feed_content]);}
}else if($feed['sourceInfo']['type']=='repost'){
@{$feed.sourceInfo.source_user_info.uname}:{:wapFormatContent($feed['sourceInfo'][feed_content]);}
} else if($feed['sourceInfo']['type']=='postfile'){
@{$feed.sourceInfo.source_user_info.uname}:{:wapFormatContent($feed['sourceInfo'][feed_content]);}
foreach($feed['sourceInfo']['transpond_data']['attach'] as $value){ switch($value['extension']){ case 'png':$type='pic';break; case 'jpg':$type='pic';break; case 'jpeg':$type='pic';break; case 'bmp':$type='pic';break; case 'gif':$type='pic';break; case 'zip':$type='zip';break; case 'rar':$type='zip';break; case 'doc':$type='word';break; case 'docx':$type='word';break; case 'xls':$type='xls';break; case 'ppt':$type='ppt';break; case 'pdf':$type='pdf';break; default:$type='unknow';break; } $size=$value['size']; if($size > 1024 && $size< 1024*1024){ $size=$size/1024; $size=round($size,2); $size.='K'; }else if($size < 1024){ $size.='B'; }else{ $size=$size/1024/1024; $size=round($size,2); $size.='M'; }
echo $value['attach_name']; echo $size;
}
}
@{$feed.sourceInfo.api_source.source_user_info.uname}:发表了一个帖子 {$feed['sourceInfo']['api_source']['title']}在 {$feed['sourceInfo']['api_source']['weiba_name']}
}else{
原文已被删除
}
if($feed['sourceInfo']['transpond_data']['type'] == 'postimage' || $feed['sourceInfo']['transpond_data']['type'] == 'postfile'){
if (($feed['sourceInfo']['type'] == 'repost' && $feed['sourceInfo']['api_source']['is_del'] == '0') || ($feed['sourceInfo']['type'] == 'repost' && $feed['transpond_data']['api_source']['is_del'] == '0') || ($feed['sourceInfo']['type'] == 'repost' && $feed['sourceInfo']['is_del'] == '0')) {
if($feed['sourceInfo']['api_source']['type'] == 'postimage'){
{$feed['sourceInfo']['uname']}{:FriendlyDate($feed['sourceInfo']['api_source']['publish_time'])}

{:getShort($feed['sourceInfo']['api_source']['feed_content'],40)}

}
if(isset($feed['sourceInfo']['transpond_data']['attach']) && $feed['sourceInfo']['transpond_data']['type'] == 'postfile'){
foreach($feed['sourceInfo']['attach'] as $value){ switch($value['extension']){ case 'png':$type='pic';break; case 'jpg':$type='pic';break; case 'jpeg':$type='pic';break; case 'bmp':$type='pic';break; case 'gif':$type='pic';break; case 'zip':$type='zip';break; case 'rar':$type='zip';break; case 'doc':$type='word';break; case 'docx':$type='word';break; case 'xls':$type='xls';break; case 'ppt':$type='ppt';break; case 'pdf':$type='pdf';break; default:$type='unknow';break; } $size=$value['size']; if($size > 1024 && $size< 1024*1024){ $size=$size/1024; $size=round($size,2); $size.='K'; }else if($size < 1024){ $size.='B'; }else{ $size=$size/1024/1024; $size=round($size,2); $size.='M'; }
echo $value['attach_name']; echo $size;
}
} }elseif (($feed['sourceInfo']['type'] == 'repost' && $feed['sourceInfo']['api_source']['is_del'] == '1') || ($feed['type']['sourceInfo'] == 'repost' && $feed['transpond_data']['api_source']['is_del'] == '1') || ($feed['sourceInfo']['type'] == 'repost' && $feed['sourceInfo']['is_del'] == '1')) {
◆◆
原文已被删除
} if(isset($feed['sourceInfo']['attach']) && $feed['sourceInfo']['type'] == 'postfile'){
foreach($feed['sourceInfo']['attach'] as $value){ switch($value['extension']){ case 'png':$type='pic';break; case 'jpg':$type='pic';break; case 'jpeg':$type='pic';break; case 'bmp':$type='pic';break; case 'gif':$type='pic';break; case 'zip':$type='zip';break; case 'rar':$type='zip';break; case 'doc':$type='word';break; case 'docx':$type='word';break; case 'xls':$type='xls';break; case 'ppt':$type='ppt';break; case 'pdf':$type='pdf';break; default:$type='unknow';break; } $size=$value['size']; if($size > 1024 && $size< 1024*1024){ $size=$size/1024; $size=round($size,2); $size.='K'; }else if($size < 1024){ $size.='B'; }else{ $size=$size/1024/1024; $size=round($size,2); $size.='M'; }
echo $value['attach_name']; echo $size;
}
} if ($feed['sourceInfo']['type'] == 'weiba_repost' && $feed['sourceInfo']['api_source']['is_del'] == '0' || ($feed['sourceInfo']['source_table'] == 'weiba_repost' && $feed['sourceInfo']['api_source']['is_del'] == '0')){
@{$feed.sourceInfo.api_source.source_user_info.uname}: 发表了一个帖子{$feed['sourceInfo']['api_source']['title']}在{$feed['sourceInfo']['api_source']['weiba_name']}
查看全文
} elseif($feed['sourceInfo']['type'] == 'weiba_repost' && $feed['sourceInfo']['api_source']['is_del'] == '1' || ($feed['sourceInfo']['source_table'] == 'weiba_repost' && $feed['api_source']['is_del'] == '1')){
原文已被删除
}
} else if($feed['sourceInfo']['transpond_data']['type'] == 'post'){
@{$feed.sourceInfo.transpond_data.uname}:{:wapFormatContent($feed['sourceInfo']['transpond_data'][feed_content]);}
}
if($count>20){
if(empty($_GET['page']) || $_GET['page']==1){ 上一页 }else{ 上一页 } $_GET['page']!=0?$get=$_GET['page']:$get=1; $_count = ceil($count/20); if($get == ($_count)) { 下一页 }else{ 下一页 }
}