'; echo '
'; echo ''; if (!empty($_POST)) { $checkForDuplicates[] = "000000000"; //Setup array for later use $listOfApps = getSearchResultsFromApple($entity); buildListOfFoundApps($listOfApps,"1",$shortCodeStart); if($_POST['type'] == "iOS") { $biggerListOfApps = getSearchResultsFromApple("iPadSoftware"); buildListOfFoundApps($biggerListOfApps,"2",$shortCodeStart); } if(is_array($masterList)){ echo "";
$masterList[$i] .= "".$appData->trackName."";
$masterList[$i] .= " (".$appData->version.")
";
$masterList[$i] .= " by ".$appData->artistName."/".$appData->sellerName."
";
$masterList[$i] .= " [".$TheAppPrice."] ";
$masterList[$i] .= " [".$Categories."] ";
if($startKey == "2") $masterList[$i] .= " [iPad Only]";
$masterList[$i] .= "
";
$masterList[$i] .= '';
$masterList[$i] .= "
.')
";echo print_r($iTunesItem, true);echo ""; } $return = ob_get_contents(); ob_end_clean(); return $return; } function appStore_page_output($app, $more_info_text,$mode="internal",$platform="ios_app") { GLOBAL $is_iphone; // Start capturing output so the text in the post comes first. ob_start(); $TheAppPrice = format_price($app->price); $appURL = getAffiliateURL($app->trackViewUrl); // App Artwork switch (appStore_setting('appstoreicon_to_use')) { case "60": $artwork_url = $app->artworkUrl60; break; case "512": $artwork_url = $app->artworkUrl512; break; } if(appStore_setting('cache_images_locally') == '1') { $upload_dir = wp_upload_dir(); $artwork_url = $upload_dir['baseurl'] . '/appstoreassistant_cache/' . $app->trackId . '/' . basename($artwork_url); } $originalImageSize = getimagesize("$artwork_url"); $adjustIcon = appStore_setting('appicon_size_adjust')/100; if($is_iphone) $adjustIcon = appStore_setting('appicon_iOS_size_adjust')/100; $newImageWidth = $originalImageSize[0] * $adjustIcon; $newImageHeight = $originalImageSize[1] * $adjustIcon; if(appStore_setting('appstoreicon_size_adjust_type') == 'pixels') { $newIconSize = appStore_setting('appicon_size_max'); if($is_iphone) $newIconSize = appStore_setting('appicon_iOS_size_max'); $newImageWidth = $newIconSize; $newImageHeight = $newIconSize; } //App Category $appCategory = $app->genres; $appCategoryList = implode(', ', $appCategory); //App Rating if ($app->averageUserRating > 0 && $app->averageUserRating <=10) { $appRating = $app->averageUserRating * 20; }else { $appRating = 0; } $AppFeatures = $app->features; if(appStore_setting('smaller_buy_button_iOS') == "yes" && $is_iphone) { $buttonText = $TheAppPrice." "; } else { $buttonText = $TheAppPrice." - View in App Store "; } $smallDescription = shortenDescription($app->description); ?>
';
}
?>