"; echo "

Example Review Formatting

"; echo ""; echo "
"; echo "" . $rss->channel['title'] . "
"; foreach ($rss->items as $item) { // specify the URL to the source for the feed $href = $item['link']; $title = $item['title']; echo "
$title
"; $c = $item['c']; if ( isset( $c['thumbnail_image_width'] ) && isset( $c['thumbnail_image_height'] ) && isset( $c['thumbnail_image_url'] ) ) { echo ""; } if ( isset( $c['rating_image_width'] ) && isset( $c['rating_image_height'] ) && isset( $c['rating_image_url'] ) ) { $alt = isset( $c['average_rating'] ) ? "alt=\"" . $c['average_rating'] . "\" " : ""; $average_rating_unit = isset( $c['average_rating_unit'] ) ? $c['average_rating_unit'] : ""; echo "
" . $average_rating_unit . "
"; } if ( isset( $c['review_summary'] ) ) { echo "
Summary: " . $c['review_summary']; } if ( isset( $c['review_pros'] ) ) { echo "
Pros: " . $c['review_pros']; } if ( isset( $c['review_cons'] ) ) { echo "
Cons: " . $c['review_cons']; } if ( isset( $c['review_text'] ) ) { echo "

" . $c['review_text'] . " more"; } echo "
"; } echo "
"; echo "
"; } else { // if there was a problem parsing the feed, let's see it... echo "Error: " . magpie_error(); } ?>