"175", "ss_size" => "120", "cache_time_select_box" => (24*60*60), "cache_images_locally" => "1", "linkshare_partner_id" => "" ); update_option('adp_options', $arr); } } // Init plugin options to white list our options function adp_init(){ $settings = get_option('adp_options'); if(!$settings) adp_add_defaults(); //Added store country option if(!ios_app_setting('store_country')) ios_app_set_setting('store_country', 'us'); register_setting( 'adp_plugin_options', 'adp_options', 'adp_validate_options' ); } // Add menu page function adp_add_options_page() { add_options_page('App Display Page Options', 'App Display Page', 'manage_options', __FILE__, 'adp_render_form'); } // Render the Plugin options form function adp_render_form() { ?>

App Display Page Options

Store Country: This option determines how long before the plugin requests new data from Apple's servers.
Icon Width/Height:
(in px.)
Screenshot Width:
(in px. Height is automatic.)
Data cache time: This option determines how long before the plugin requests new data from Apple's servers.
Cache images locally:
Load icons, screenshots, etc. locally instead of using Apple's CDN server. Your wp-content/uploads/ directory MUST be writeable for this option to have any effect.
Linkshare Partner ID: Leave this blank if you don not have an Linkshare iTunes affiliate account.
You can find this by looking at a generated Linkshare URL and taking the property after "id=" like this:
http://click.linksynergy.com/fs-bin/stat?id=BiWowje1A&offerid=146261&type=3&subid=0...