<?php include_once './modular/header.php'; ?> <!--end div#header--> <!--div#main--> <div id="main"> <div id="contactbox"> <?php foreach ($friends as $item) { $statu = $client->POST('status.gets', array($item['id'], '1', '1')); echo '<div class="each_contact">'; echo '<div class="contact_img"><a target = "_blank" href = "http://www.renren.com/profile.do?id=' . $item['id'] . '"><img src="' . $item['headurl'] . '" alt="" /></a></div>'; echo '<div class="contact_name"><a href="">' . $item['name'] . '</a></div>'; if (isset($statu[0]['message'])) { echo '<div class="contact_statu"><a href="">' . text_to_bq($statu[0]['message'], $bq) . '</a></div>'; } if (isset($statu[0]['source_name'])) { echo '<div class="contact_source_name">来源:' . $statu[0]['source_name'] . '</div>'; } echo '</div>'; } ?> </div> </div> <!--end div#main--> <!-- div#nav_page--分页导航--> <div id = "nav_page"> <a href = "?page=<?php echo $_GET['page'] > 1 ? $_GET['page'] - 1 : 1; ?>
<span class="like_status_button"></span> <span>我很喜欢!</span> </div> <!--div.news_comment_area包裹着所有评论--> <div class="news_comment_area"> <!--div.each_news_comment每一条评论--> <?php if (isset($item['comments']['comment'])) { foreach ($item['comments']['comment'] as $comment) { echo '<div class="each_news_comment">'; // 评论者的照片 echo '<img src="' . $comment['headurl'] . '" alt="img/user_portrait.jpg" class="comment_fds_portrait" />'; // 评论者的名字 echo '<div class="comment_fds_name"><a href="">' . $comment['name'] . ':</a></div>'; // 评论内容 echo '<div class="comment_content">' . text_to_bq($comment['text'], $bq) . '</div>'; echo '</div>'; } } ?> </div> <!--发表评论框--> <!--图片所有者id<?php if (isset($item['attachment'])) { echo $item['actor_id']; } ?> --> <!--图片id<?php if (isset($item['attachment'])) { echo $item['attachment'][0]['media_id'];
<!--当前用户姓名&新鲜事的题目--> <span class="news_title"><a href="" class="fds_name"><?php echo $us[0]['name']; ?> :</a><?php if (isset($item['prefix'])) { echo $item['prefix']; } if (isset($item['title'])) { echo $item['title']; } ?> </span> <!--新鲜事的文字部分--> <div class="text_content"><?php echo text_to_bq($item['message'], $bq); ?> </div> <!--来源--> <div class="source_name_content">来源:<?php echo $item['source_name']; ?> </div> <div class="pic_content"> <?php if (isset($item['attachment'])) { foreach ($item['attachment'] as $attachment) { $str_href = ''; $str_src = ''; if (isset($attachment['href'])) {