"1", "ssw" => "480", "iconsize" => "72", "current" => "0", "linkshareid" => "", "default_store" => "US", "json_cache" => "15" ); 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() { ?>

/>
TimThumb to dynamically resize images and store caches on your server, rather than using the full-size images from Apple and resizing via HTML or CSS. This option can be overwritten in the shortcodes for individual cases.', 'appstore-lookup' ), esc_url( $url ) ); echo $link; ?>
px
px
/>


Default Store:

Shortcodes

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 custom field in your post or page called appId with the value of your AppStore ID will eliminate the requirement for setting an id in the shortcode, and add a Smart App Banner for visitors on mobile Safari.

)', 'appstore-lookup'); _e('

Parameters

Parameters for shortcodes.

', 'appstore-lookup'); } // Sanitize and validate input. Accepts an array, return a sanitized array. function asl_pluginoptions_validate($input) { return $input; }