Changeset 348522
- Timestamp:
- 02/21/2011 07:38:39 AM (15 years ago)
- Location:
- appstore/trunk
- Files:
-
- 2 added
- 4 edited
-
AppFunctions.php (modified) (4 diffs)
-
AppStore.php (modified) (3 diffs)
-
button/editor_plugin.js (modified) (1 diff)
-
languages/appstore-pl_PL.mo (added)
-
languages/appstore-pl_PL.po (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
appstore/trunk/AppFunctions.php
r345668 r348522 130 130 $AppStore_country = get_option("AppStore_country"); 131 131 // Tradedoubler ProgrammID für das jeweilige Land berücksichgigen 132 if($AppStore_country == " AT") {132 if($AppStore_country == "at") { 133 133 $TradedoublerProgrammID = "24380"; 134 134 135 } elseif ($AppStore_country == " DE") {135 } elseif ($AppStore_country == "de") { 136 136 $TradedoublerProgrammID = "23761"; 137 137 138 } elseif ($AppStore_country == " CH") {138 } elseif ($AppStore_country == "ch") { 139 139 $TradedoublerProgrammID = "24380"; 140 140 141 } elseif ($AppStore_country == "it") { 142 $TradedoublerProgrammID = "24373"; 143 141 144 } else { 142 145 $TradedoublerProgrammID = "24380"; // wenn nix dann AT … … 160 163 $AffURL = "http://clk.tradedoubler.com/click?p=".$TradedoublerProgrammID."&a=".$tradedoubler_id."&url="; 161 164 $AffLinkPartnerID = "&partnerId=2003"; 162 return htmlspecialchars($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 165 //return htmlspecialchars($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 166 return ($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID)); 163 167 } 164 168 … … 561 565 "nz" => __("New Zealand","appstore"), 562 566 "jp" => __("Japan","appstore"), 567 "pl" => __("Polen","appstore") 563 568 ); 564 569 asort($Countries); … … 586 591 } elseif ($AppStore_country == "jp") { 587 592 return " JPY"; 593 } elseif ($AppStore_country == "pl") { 594 return " zł"; 588 595 } else { 589 596 return " EUR"; -
appstore/trunk/AppStore.php
r345675 r348522 4 4 Plugin URI: http://tirolercast.ste-bi.net/wordpress-plugins/appstore-plugin/ 5 5 Description: A filter for WordPress that displays AppstoreDetails 6 Version:4.2. 16 Version:4.2.2 7 7 Author: Stephan 8 8 Author URI: http://www.ste-bi.net … … 47 47 } 48 48 49 50 function appstore_defaults_array() { 51 $defaults = array( 52 'id'=> '', 53 'screenshots'=>false); 54 return $defaults; 55 56 } 57 58 function appstore_process($atts, $content=null, $code="" ) { 59 60 $a = shortcode_atts(appstore_defaults_array(), $atts ); 61 extract($a); 62 63 $showScreenshots = 0; 64 65 if ($screenshots==true) { 66 $showScreenshots = 1; 67 } 68 69 if ($id<>"") { 70 return AppStoreLinks_getContent($id,$showScreenshots); 71 } 72 73 74 } 49 75 50 76 function AppStoreLinks_getContent($searchid,$type) { … … 673 699 add_action('wp_head', 'AppStoreLinks_SetSyle'); 674 700 add_action('admin_head', 'admin_register_head'); 701 702 add_shortcode('appstore', 'appstore_process'); 703 675 704 load_plugin_textdomain('appstore',null, dirname(plugin_basename(__FILE__))."/languages/"); 676 705 -
appstore/trunk/button/editor_plugin.js
r345250 r348522 1 1 function appstoreButton() { 2 2 var searchwindow = window.open('http://appsuche.touchtalk.at/index.php?wpsearch=true','mywindow','width=450,height=600') 3 3 /*var searchwindow = window.open('http://touchtalk.dreamhosters.com/AppstoreTest/index.php?wpsearch=true','mywindow','width=450,height=600')*/ 4 4 /* return "[app ]"; */ 5 5 return ""; -
appstore/trunk/readme.txt
r345672 r348522 47 47 48 48 == Changelog == 49 = 4.2.2 = 50 * Fixed a bug when Tradedoubler says "There is no relationship..." This could already happen if there is no Tradedoubler Affiliate in your country. If you got this Problem and there is an TD-Affiliate Programm in your Country, please send me an working TD-Link (http://tirolercast.ste-bi.net/kontakt/)and I will fix this asap. 51 (Thanks to @_AppForThat_) 52 * Added Polish translation (Thanks to Bartosz) 53 49 54 = 4.2.1 = 50 55 * fix for wrong characters in Sellername (Widget) … … 56 61 * More Countries 57 62 * More fun ;-) 58 59 63 60 64 = 4.1.2 =
Note: See TracChangeset
for help on using the changeset viewer.