function render_profile_box($id, $prints) { // Render the most recent 5 no matter what, and the second most recent 5 // only if the box is on the right (wide) side of the profile. return render_prints($prints, 5) . '<fb:wide>' . render_prints(array_slice($prints, 5), 5) . '</fb:wide>' . '<div style="clear: both;">' . render_step_link($to) . '</div>'; }
<h2>Hi <fb:name firstnameonly="true" uid="<?php echo $user; ?> " useyou="false"/>!</h2><br/> <a href="<?php echo $facebook->get_add_url(); ?> ">Put Footprints in your profile</a>, if you haven't already! <form method="post" > <?php if ($prints_id != $user) { echo 'Do you want to step on <fb:name uid="' . $prints_id . '"/>?'; echo '<input type="hidden" name="to" value="' . $prints_id . '"/>'; } else { echo '<br/>Step on a friend:'; echo '<fb:friend-selector idname="to"/>'; } ?> <input value="step" type="submit"/> </form> <hr/> These are <fb:name uid="<?php echo $prints_id; ?> " possessive="true"/> Footprints:<br/> <?php echo render_prints($prints, 10); ?> <div style="clear: both;"/> </div>