Bradley Stoke's Got Music
Facebook
"; // set counter to 0, because we only want to display 10 posts $i = 0; foreach($pagefeed['data'] as $post) { if ($post['type'] == 'status' || $post['type'] == 'link' || $post['type'] == 'photo') { // open up an fb-update div echo "
"; // post the time // check if post type is a status if ($post['type'] == 'status') { echo 'Willow Brook Centre'; echo '

' . date('jS M', (strtotime($post['created_time']))) . '

'; if (empty($post['story']) === false) { echo '

' . $post['story'] . '

'; } elseif (empty($post['message']) === false) { echo '

' . $post['message'] . '

'; } } // check if post type is a link if ($post['type'] == 'link') { echo 'Willow Brook Centre'; echo '

' . date("jS M", (strtotime($post['created_time']))) . '

'; echo "

" . $post['name'] . "

"; echo "

view link

"; } // check if post type is a photo if ($post['type'] == 'photo') { echo 'Willow Brook Centre'; echo '

' . date("jS M", (strtotime($post['created_time']))) . '

'; echo '

' . substr($post['message'], 0 ,100) . '...view post

'; } echo "
"; // close fb-update div $i++; // add 1 to the counter if our condition for $post['type'] is met } // break out of the loop if counter has reached 10 if ($i == 10) { break; } } // end the foreach statement echo "
"; ?>

Sign Up

Free Parking

4 hours

  • Facebook logo
  • Twitter logo

What's on

Store Directory

Map showing Bradley Stoke

Bradley Stoke
Community

Groups and clubs in the Bradley Stoke community.