{$profile['uname']}
if($profile['uid']==$_SESSION['mid']){ } if($profile['uid'] != $mid) {
发私信
if(!$profile['follow_state']['following']){
加关注
}else {
取消关注
} }else{ 编辑资料 发分享
}
if($isAllowed == 0){
-_-。sorry！根据对方隐私设置，您无权查看TA的主页
}else{ if($profile['uid'] != $mid){ $iicb='i_info_counts_box'; }else{ $iicb='i_info_counts_box_i'; }
if($profile['uid']!=$_SESSION['mid']){
详细
资料
}
{$profile.count_info.feed_count}
分享
{$profile.count_info.following_count}
关注
{$profile.count_info.follower_count}
粉丝
if($profile['uid']==$_SESSION['mid']){
{$profile.count_info.favorite_count}
收藏
}
$listid = 'userpage-weibo-list'; if($profile['uid']===(string)$_SESSION['mid']){ $listid = 'ts-list'; }
if($feed['user_gicon']): endif;
{$feed.uname}
{$feed['publish_time']|FriendlyDate} {$feed.from}

{$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; case 4: $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']) == 4) || (count($feed['attach']) == 2)){ echo ''; }elseif(count($feed['attach']) == 1){ echo ''; } else { echo ''; } } echo '
'; break; case 'repost': $more = ''; if($attachCount > 1) { $more = ''.$attachCount.'photos'; } if($feed['transpond_data']['attach'] > 0 && $feed['transpond_data']['type'] == 'postimage'){ echo '
'.$feed['transpond_data']['uname'].' '.FriendlyDate($feed['transpond_data']['publish_time']).'

'.getShort($feed['transpond_data']['content'],40).'

'; } elseif($feed['transpond_data']['attach'] > 0 && $feed['transpond_data']['type'] == 'postfile') { echo '
'; for($i=0;$i
{$feed['transpond_data']['attach'][$i]['attach_name']} {$feed['transpond_data']['attach'][$i]['size']}
} echo '
'; } else { echo '
'.$feed['transpond_data']['uname'].': '.$feed['transpond_data']['content'].'
'; } break; case 'repost-postimage': echo '
'.$feed['transpond_data']['uname'].' '.FriendlyDate($feed['transpond_data']['publish_time']).'

'.getShort($feed['transpond_data']['content'],55).'

'; break; case 'repost-removed': echo '
'.$feed['transpond_data']['uname'].': 这条分享不幸被删除了...
'; break; case 'weiba_repost': echo '

转载自'.$feed['api_source']['weiba_name'].''.$feed['api_source']['title'].'

'; break; case 'weiba_repost-removed': echo '

原帖子已删除

'; break; case 'postfile': echo '

'; for($i=0;$i
{$feed['attach'][$i]['attach_name']} {$feed['attach'][$i]['size']}
} echo '
'; break; case 'repost-postfile': echo '
'; for($i=0;$i
{$feed['transpond_data']['attach'][$i]['attach_name']} {$feed['transpond_data']['attach'][$i]['size']}
//var_dump($feed['api_source']['attach'][$i]); } echo '
'; break; case 'postvideo': if(preg_match("/(thinksns\.com)/i", $feed['flashvar'])){ echo '
'; echo '
'; echo ''; echo '
'; } break; case 'repost-postvideo': echo '
'.$feed['transpond_data']['uname'].': '.$feed['transpond_data']['content']; if(preg_match("/(thinksns\.com)/i", $feed['transpond_data']['flashvar'])){ echo '
'; echo '
'; echo ''; echo '
'; } echo '
'; break; default: //dump($feed['type']); break; }
if($count>10){
if(empty($_GET['page']) || $_GET['page']==1){ 上一页 }else{ 上一页 } $_GET['page']!=0?$get=$_GET['page']:$get=1; $_count = ceil($count/10); if($get == $_count) { 下一页 }else{ 下一页 }
}
}