if(count($weibolist,0)>10){ echo 'moreThanTen'; }else{
if($feed['favorited']==1){
}else{
}
{$feed.uname}
{$feed.publish_time|friendlyDate}
赞：{$feed.digg_count}
转发：{$feed.repost_count}
评论：{$feed.comment_count}
echo wapFormatContent($feed[feed_content]); if($feed['type'] == 'weiba_post'){
查看全文
}
if($feed['feedType']=='postimage') {
foreach($feed['attach'] as $value){ }
} if (($feed['type'] == 'repost' && $feed['api_source']['is_del'] == '0') || ($feed['type'] == 'repost' && $feed['transpond_data']['api_source']['is_del'] == '0')) {
◆◆
@{$feed.transpond_data.uname}: echo wapFormatContent($feed['transpond_data'][feed_content]); if($feed['transpond_data']['type'] == 'weiba_post'){
查看全文
}
if($feed['transpond_data']['type']=='postimage') {
foreach($feed['transpond_data']['attach'] as $value){ }
}
{$feed.transpond_data.publish_time|friendlyDate}
转发:{$feed.transpond_data.repost_count} 评论:{$feed.transpond_data.comment_count} 赞:{$feed.transpond_data.digg_count}
if(isset($feed['transpond_data']['attach']) && $feed['transpond_data']['type'] == 'postfile'){
foreach($feed['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;
}
}
}elseif (($feed['type'] == 'repost' && $feed['api_source']['is_del'] == '1') || ($feed['type'] == 'repost' && $feed['transpond_data']['api_source']['is_del'] == '1')) {
◆◆
原文已被删除
} if ($feed['type'] == 'weiba_repost' && $feed['api_source']['is_del'] == '0') {
◆◆
@{$feed.api_source.source_user_info.uname}: echo wapFormatContent($feed['api_source']['source_content']);
{$feed[api_source][post_time]|friendlyDate}
评论:{$feed[api_source][reply_count]}
查看全文
}elseif($feed['type'] == 'weiba_repost' && $feed['api_source']['is_del'] == '1'){
◆◆
原文已被删除
}
if(isset($feed['attach']) && $feed['type'] == 'postfile'){
foreach($feed['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;
}
}
删除
取消
}