results); if ($numberOfResults > 0) { return $searchResult->results[0]; } else { return null; } } function getAppBasicsHtml($atts, $content = null){ extract( shortcode_atts( array('appid' => '','searchcountry' => 'AU',), $atts ) ); //$app = getAppFromStore($atts[0],$atts[1]); //TESTS $app = getAppFromStore($appid,$searchcountry); $finishedhtml = ""; if ($app <> null) { $name = $app->trackCensoredName; $icon = $app->artworkUrl60; $dev = $app->artistName; $price = $app->formattedPrice; $currency = ""; //testing if free so as to not display currency if($price <> "Free") {$price = $app->formattedPrice." ".$app->currency;} $version = $app->version; $url = $app->trackViewUrl; ?>