"apple.com", "affiliatepartnerid" => "30", "max_description" => "300", "qty_of_apps" => "10", "icon_size" => "128", "ss_size" => "120", "cache_time_select_box" => (24*60*60), "cache_images_locally" => "1" ); update_option('appStore_options', $arr); } } // Init plugin options to white list our options function appStore_init(){ $settings = get_option('appStore_options'); if(!$settings) appStore_add_defaults(); register_setting( 'appStore_plugin_options', 'appStore_options', 'appStore_validate_options' ); } // Add menu page function appStore_add_options_page() { add_options_page('AppStore Assistant', 'AppStore Assistant', 'manage_options', __FILE__, 'appStore_render_form'); } // Render the Plugin options form function appStore_render_form() { ?>

AppStore Assistant Page Options

Affiliate click-tracking URL:
(ex: http://click.linksynergy.com/fs-bin/stat?id=aaaaaaaaaa&offerid=112345&type=3&subid=0&tmpid=1234&RD_PARM1=)
Affiliate Link Partner ID:
(ex: 30)
Max Short Description Length:
For "My Picks" list pages.
How many apps to display from ATOM feed:
App 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.

'.__('Settings').''; // make the 'Settings' link appear first array_unshift( $links, $appStore_links ); } return $links; }