"1", "ssw" => "480", "iconsize" => "72", "current" => "0", "linkshareid" => "", "default_store" => "US" ); update_option('asl_plugin', $arr); } } add_action('admin_init', 'asl_pluginoptions_init' ); add_action('admin_menu', 'asl_pluginoptions_add_page'); // Init plugin options to white list our options function asl_pluginoptions_init(){ $settings = get_option('asl_options'); if(!$settings) asl_add_defaults(); register_setting( 'asl_pluginoptions_options', 'asl_plugin', 'asl_pluginoptions_validate' ); } // Add menu page function asl_pluginoptions_add_page() { add_options_page('AppStore Lookup Options', 'AppStore Lookup', 'manage_options', 'asl_pluginoptions', 'asl_pluginoptions_do_page'); } // Draw the menu page itself function asl_pluginoptions_do_page() { ?>
These are the shortcodes you can use to display your app data. An appstore id passed with the id= parameter is required for all shortcodes.
New: setting a post custom attribute called appId with the value of your AppStore ID will eliminate the requirement for setting an id in the shortcode.
asl_name Will display the name of the application.asl_icon Will output the icon image. Optional parameters: thumb w, qasl_genre Will display the Primary genre of the application.asl_price Displays the formatted price of the application.asl_version Displays the latest version number of the application.asl_description Outputs the description using nl2br.asl_seller Outputs the seller name.asl_filesize Displays the filesize in B, KB, MB, GB, or TB (!) depending on the size.asl_release_notes Displays the release notes for the current version using nl2br.asl_rating Displays the Average User rating. Optionally can display for only the current version using current.asl_num_ratings Displays the total number of ratings the app has received in iTunes. Optionally can display for only the current version using current.asl_release_date Displays the release date in F j, Y format. Optionally accepts dateformat and any PHP date format.asl_content_rating Displays the content advisory rating for the app.asl_screenshots Displays the application screenshots in an unordered list. Optionally accepts: thumb, w, q, type, firstParameters for shortcodes.
id The app id is required for all shortcodes. This can also be passed as a post custom attribute called appId.thumb Optional. Overrides the default TimThumb setting. Accepts true/false; 1,0w Optional. Overrides the default Width setting for screenshots or icon. Accepts a number in pixels.q Optional. Changes the compression settings for TimThumb. Accepts a number between 0 and 100.current Optional for rating and num_ratings, overrides the default "current version only". Accepts true, false, 1,0first Optional for screenshots, will display only the first screenshot. Defaults to all. Accepts true, false, 1,0img Optional for link, allows you to display the buy link as an image you choose (ie, Available in the AppStore image)title Optional for link, allows you to change the buy link text to something other than "Download"