if($feed['favorited']==1){
}else{
} if($_SESSION['mid']!=$feed['uid']){ if($feed['is_digg']===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.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){ }
}
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;
}
}
{$feed.transpond_data.publish_time|friendlyDate}
转发:{$feed.transpond_data.repost_count} 评论:{$feed.transpond_data.comment_count} 赞:{$feed.transpond_data.digg_count}
}elseif ($feed['type'] == '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;
}
}
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.transpond_data.publish_time|friendlyDate}
转发:{$feed.transpond_data.repost_count} 评论:{$feed.transpond_data.comment_count} 赞:{$feed.transpond_data.digg_count}
}elseif($feed['type'] == 'weiba_repost' && $feed['api_source']['is_del'] == '1'){
◆◆
原文已被删除
}
删除
取消
$has_pre = $page > 1; $has_after = count($weibolist) >= $item_count; if(empty($_GET['page']) || $_GET['page']==1){ 上一页 }else{ 上一页 } if(!$has_after) { 下一页 }else{ 下一页 } if($has_pre || $has_after) { }