Plugin Directory

Changeset 348522


Ignore:
Timestamp:
02/21/2011 07:38:39 AM (15 years ago)
Author:
Ste-Bi
Message:
 
Location:
appstore/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • appstore/trunk/AppFunctions.php

    r345668 r348522  
    130130    $AppStore_country = get_option("AppStore_country");
    131131    // Tradedoubler ProgrammID für das jeweilige Land berücksichgigen
    132     if($AppStore_country == "AT") {
     132    if($AppStore_country == "at") {
    133133        $TradedoublerProgrammID = "24380";
    134134       
    135     } elseif ($AppStore_country == "DE") {
     135    } elseif ($AppStore_country == "de") {
    136136        $TradedoublerProgrammID = "23761";
    137137   
    138     } elseif ($AppStore_country == "CH") {
     138    } elseif ($AppStore_country == "ch") {
    139139        $TradedoublerProgrammID = "24380";
    140        
     140   
     141    } elseif ($AppStore_country == "it") {
     142        $TradedoublerProgrammID = "24373";
     143           
    141144    } else {
    142145        $TradedoublerProgrammID = "24380"; // wenn nix dann AT
     
    160163        $AffURL = "http://clk.tradedoubler.com/click?p=".$TradedoublerProgrammID."&a=".$tradedoubler_id."&url=";
    161164        $AffLinkPartnerID = "&partnerId=2003";
    162         return htmlspecialchars($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID));
     165        //return htmlspecialchars($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID));     
     166        return ($AffURL.urlencode($trackViewUrl.$AffLinkPartnerID));
    163167    }
    164168   
     
    561565                        "nz" => __("New Zealand","appstore"),
    562566                        "jp" => __("Japan","appstore"),
     567                        "pl" => __("Polen","appstore")
    563568                        );
    564569    asort($Countries);
     
    586591    } elseif ($AppStore_country == "jp") {
    587592        return " JPY";
     593    } elseif ($AppStore_country == "pl") {
     594        return " zł";     
    588595    } else {
    589596        return " EUR";
  • appstore/trunk/AppStore.php

    r345675 r348522  
    44Plugin URI: http://tirolercast.ste-bi.net/wordpress-plugins/appstore-plugin/
    55Description: A filter for WordPress that displays AppstoreDetails
    6 Version:4.2.1
     6Version:4.2.2
    77Author: Stephan
    88Author URI: http://www.ste-bi.net
     
    4747}
    4848
     49
     50function appstore_defaults_array() {
     51    $defaults = array(
     52        'id'=> '',
     53        'screenshots'=>false);     
     54    return $defaults;
     55
     56}
     57
     58function 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}
    4975
    5076function AppStoreLinks_getContent($searchid,$type) {   
     
    673699add_action('wp_head', 'AppStoreLinks_SetSyle');
    674700add_action('admin_head', 'admin_register_head');
     701
     702add_shortcode('appstore', 'appstore_process');
     703
    675704load_plugin_textdomain('appstore',null, dirname(plugin_basename(__FILE__))."/languages/");
    676705
  • appstore/trunk/button/editor_plugin.js

    r345250 r348522  
    11function appstoreButton() {
    22    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')*/
    44    /* return "[app ]"; */
    55    return "";
  • appstore/trunk/readme.txt

    r345672 r348522  
    4747
    4848== 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
    4954= 4.2.1 =
    5055* fix for wrong characters in Sellername (Widget)
     
    5661* More Countries
    5762* More fun ;-)
    58 
    5963
    6064= 4.1.2 =
Note: See TracChangeset for help on using the changeset viewer.