"400", "use_shortDesc_on_single" => "no", "use_shortDesc_on_multiple" => "yes", "smaller_buy_button_iOS" => "yes", "qty_of_apps" => "10", "ss_size" => "120", "currency_format" => "US", "full_star_color" => "blue", "empty_star_color" => "clear", "color_buttonStart" => "79bbff", "color_buttonStop" => "378de5", "color_buttonText" => "fcfc00", "color_buttonTextShadow" => "39618a", "color_buttonShadow" => "bbdaf7", "color_buttonBorder" => "84bbf3", "color_buttonHoverStart" => "378de5", "color_buttonHoverStop" => "79bbff", "color_buttonHoverText" => "C9C9FF", "displayapptitle" => "no", "displayversion" => "yes", "displayadvisoryrating" => "yes", "displaycategories" => "yes", "displayfilesize" => "no", "displaystarrating" => "yes", "displaydevelopername" => "yes", "displaysellername" => "yes", "displaygamecenterenabled" => "yes", "displayuniversal" => "yes", "displaysupporteddevices" => "no", "displayreleasedate" => "no", "appstoreicon_to_use" => "512", "appicon_size_adjust" => "25", "appicon_iOS_size_adjust" => "12", "displayitunestitle" => "yes", "displayitunestrackcount" => "yes", "displayitunesartistname" => "yes", "displayitunesfromalbum" => "yes", "displayitunesgenre" => "yes", "displayitunesreleasedate" => "yes", "displayitunesdescription" => "yes", "displayitunesexplicitwarning" => "yes", "itunesicon_to_use" => "100", "itunesicon_size_adjust" => "100", "itunesicon_iOS_size_adjust" => "50", "cache_time_select_box" => (24*60*60), "cache_images_locally" => "1", "affiliatepartnerid" => "999", "affiliatecode" => "http://click.linksynergy.com/fs-bin/stat?id=uiuOb3Yu7Hg&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=", "affiliatetoken" => "uiuOb3Yu7Hg", "tdwebsiteID" => "", "tdprogramID" => "23708", "dgmwrapper" => "", "ResetCheckOne" => "NoWay", "ResetCheckTwo" => "NoWay", "ResetCheckThree" => "NoWay", "versionInstalled" => "4.4.2" ); $tmp = get_option('appStore_options'); if(!$tmp || !is_array($tmp) || $ResetOptions) { delete_option('appStore_options'); update_option('appStore_options', $appStore_defaults); } } // 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' ); wp_enqueue_script('jquery-ui-core');//enables UI wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_style( 'farbtastic' ); wp_enqueue_script( 'farbtastic' ); } // 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() { $options = get_option('appStore_options'); if($options['ResetCheckOne']=="DoIt" && $options['ResetCheckTwo']=="DoIt" && $options['ResetCheckThree']=="DoIt") { appStore_add_defaults(true); $OptionsReset = true; $options = get_option('appStore_options'); } ?>

AppStore Assistant Page Options

All Options have been reset to defaults!'; ?>
Max Short Description Length:
Use short description on Single Post />
Use short description on Multiple Post Page />
Smaller iOS Buy Button />
How many apps to display from ATOM feed:
Screenshot Width:
(in px. Height is automatic.)
Currency Type:

Full Star:

'; echo ''.$starColor.' Star'; echo '   '; } ?>

Empty Star:

'; echo ''.$starColor.' Star'; echo '   '; } ?>

Colors

'color_buttonStart', 'label' => 'Button Background Gradient Start'), array('ID' => 'color_buttonStop', 'label' => 'Button Background Gradient Stop'), array('ID' => 'color_buttonText', 'label' => 'Button Text'), array('ID' => 'color_buttonTextShadow', 'label' => 'Button Text Shadow'), array('ID' => 'color_buttonShadow', 'label' => 'Button Shadow'), array('ID' => 'color_buttonBorder', 'label' => 'Button Border'), array('ID' => 'color_buttonHoverStart', 'label' => 'Button Background Gradient Start (Hover)'), array('ID' => 'color_buttonHoverStop', 'label' => 'Button Background Gradient Stop (Hover)'), array('ID' => 'color_buttonHoverText', 'label' => 'Button Text (Hover)'), ); foreach($colorPickers as $colorPicker) { echo "
\r"; echo ''."\r"; echo ''."\r"; echo '
'."\r"; echo '
'."\r"; } ?>

Show in Post body:

"displayapptitle", 'label' => "App Name"), array('ID' => "displayversion", 'label' => "App Version"), array('ID' => "displayadvisoryrating", 'label' => "Advisory Rating"), array('ID' => "displaycategories", 'label' => "App Categories"), array('ID' => "displayfilesize", 'label' => "File Size"), array('ID' => "displaystarrating", 'label' => "App Star Rating"), array('ID' => "displaydevelopername", 'label' => "Developer Name"), array('ID' => "displaysellername", 'label' => "Seller Name"), array('ID' => "displaygamecenterenabled", 'label' => "Game Center Enabled icon"), array('ID' => "displayuniversal", 'label' => "Universal App icon"), array('ID' => "displaysupporteddevices", 'label' => "Supported Devices list"), array('ID' => "displayreleasedate", 'label' => "Date Released"), ); foreach($appStoreProperties as $appStoreProperty) { echo ' '.$appStoreProperty['label']."
\r"; } ?>

App Icon Size:

Icon to start with: /> 60px /> 512px
% Adjust Icon Size
% Adjust Icon Size (iOS)

Show in Post body:

"displayitunestitle", 'label' => "Music Title"), array('ID' => "displayitunestrackcount", 'label' => "Track Count"), array('ID' => "displayitunesartistname", 'label' => "Artist Name"), array('ID' => "displayitunesfromalbum", 'label' => "From Album…"), array('ID' => "displayitunesgenre", 'label' => "Genre"), array('ID' => "displayitunesreleasedate", 'label' => "Release Date"), array('ID' => "displayitunesdescription", 'label' => "Description"), array('ID' => "displayitunesexplicitwarning", 'label' => "Explicit Lyrics Bagde"), ); foreach($iTunesStoreProperties as $iTunesStoreProperty) { echo ' '.$iTunesStoreProperty['label']."
\r"; } ?>

App Icon Size:

Icon to start with: /> 30px /> 60px /> 100px
% Adjust Icon Size
% Adjust Icon Size (iOS)
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.
Affiliate Networks
Affiliate Network:
LinkShare Settings

1. The easiest way to get your LinkShare Wrapper is to first get an example link to use as a guideline. You can do this by logging into your LinkShare dashboard and navigating to the Link Maker tool. Once there, make sure the country pop-up menu matches the affiliate program you just came through. Next, search for anything you like, click one of the results, and take the chunk of HTML that is given to you in step 3. It should look similar to this:

<a href="http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Falbum%252Fjust-breathe%252Fid329520595%253Fi%253D329520674%2526uo%253D6%2526partnerId%253D30" target="itunes_store"><img height="15" width="61" alt="Pearl Jam - Backspacer - Just Breathe" src="http://ax.phobos.apple.com.edgesuite.net/images/badgeitunes61x15dark.gif" /></a>

2. From your chunk of HTML, grab the actual link in the HREF tag. For example:

http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Falbum%252Fjust-breathe%252Fid329520595%253Fi%253D329520674%2526uo%253D6%2526partnerId%253D30

3. From the actual link, you now need to cut out the "wrapper." This is the part of the affiliate link that stays the same. This can be identified as everything in the beginning of link up through the RD_PARM1=. For example:

http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=


When using LinkShare, the affiliate token is siteID. This value is your 11-character encrypted ID that exists as the "id" value in any other LinkShare built link. The easiest way to find this value is to build a sample link using the Link Maker tool as defined in steps 1 and 2 earlier in the Affiliate Encoding for LinkShare section. For example, the siteID for an account that generated the following link would be: CBIMl*gYY/8.

http://click.linksynergy.com/fs-bin/stat?id=CBIMl*gYY/8&offerid=146261&type=3&subid=0&tmpid=1826&RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Falbum%252Fjust-breathe%252Fid329520595%253Fi%253D329520674%2526uo%253D6%2526partnerId%253D30

LinkShare Wrapper:
LinkShare Affiliate Token:
TradeDoubler Settings

TradeDoubler offers the iTunes and App Store Affiliate Program as separate programs in 14 different countries. You need to be accepted into at least one country to be able to link in Europe. If you need to link to several EU countries for which you don't yet have an affiliate account, you can enable this directly on the TradeDoubler portal (Settings -> Site Information -> My Countries).

To create an affiliate tracking link for TradeDoubler (Europe), you will need your program ID and website ID. These can be found on the TradeDoubler affiliate dashboard (Under "Settings" then "Site information").

TradeDoubler websiteID:
TradeDoubler Program ID:
DGM Settings

Following these steps will allow you to create an affiliate link for the Australia or New Zealand program. Before you begin, it is important to make sure you have been approved for these accounts and have access to them.

1. The easiest way to start building your affiliate links is to first get an example. You can do this by logging into your DGM dashboard and navigating to the Link Maker tool. Once there, make sure the country pop-up menu matches the affiliate program you just came through. Next, search for anything you like, click one of the results, and take the chunk of HTML that is then given to you. It should look similar to this:

<a href="http://www.s2d6.com/x/?x=c&z=s&v=1530946&t=http%3A%2F%2Fitunes.apple.com%2Fau%2Falbum%2Fthe-fixer%2Fid327780123%3Fi%3D327780135%26uo%3D6%26partnerId%3D1002" target="itunes_store"><img height="15" width="61" alt="Pearl Jam - Backspacer - The Fixer" src="http://ax.phobos.apple.com.edgesuite.net/images/badgeitunes61x15dark.gif" /></a>

2. From your chunk of HTML, grab the actual link in the HREF tag. For example:

http://www.s2d6.com/x/?x=c&z=s&v=1530946&t=http%3A%2F%2Fitunes.apple.com%2Fau%2Falbum%2Fthe-fixer%2Fid327780123%3Fi%3D327780135%26uo%3D6%26partnerId%3D1002

3. From the actual link, you now need to cut out the "wrapper." This is the part of the affiliate link that stays the same. This can be identified as everything in the link up through the "t=". For example:

http://www.s2d6.com/x/?x=c&z=s&v=1530946&t=

DGM wrapper:

Reset All Settings to Defaults:

I want to reset all settings to their defaults.

I know this will not save any of my changes.

I wont get mad when all my changes are lost.

'.__('Settings').''; // make the 'Settings' link appear first array_unshift( $links, $appStore_links ); } return $links; } function load_js_files() { wp_enqueue_script('jquerymenusstart', plugins_url('/js_functions/jquerymenusstart.js',__FILE__), null, null, true); wp_enqueue_script('jscolor', plugins_url('/js_functions/jscolor/jscolor.js',__FILE__), null, null, true); } function appStore_admin_page_add_stylesheet() { wp_register_style('appStore-admin-styles', plugins_url( 'appStore-admin.css', __FILE__ )); wp_enqueue_style( 'appStore-admin-styles'); }