Plugin Directory

Changeset 1447808


Ignore:
Timestamp:
07/02/2016 03:16:14 PM (10 years ago)
Author:
RPG84
Message:
  • Small fix to make rel=nofollow also work when using lightbox
Location:
tradetracker-store
Files:
69 added
4 edited

Legend:

Unmodified
Added
Removed
  • tradetracker-store/trunk/Tradetracker-Store.php

    r1431406 r1447808  
    33* Plugin Name: Tradetracker-Store
    44* Plugin URI: http://wpaffiliatefeed.com
    5 * Version: 4.6.28
     5* Version: 4.6.29
    66* Description: A Plugin that will add a TradeTracker affiliate feed to your site with several options to choose from.
    77* Author: Robert Braam
  • tradetracker-store/trunk/front.php

    r1327054 r1447808  
    349349            $multixmlfeed = "";
    350350        } else {
    351             $multixmlfeed = "and xmlfeed = ".$multi_val->multixmlfeed." ";
     351            $multixmlfeed = "and xmlfeed in ( ".$multi_val->multixmlfeed." )";
    352352        }
    353353        $i="1";
     
    512512            $multixmlfeed = "";
    513513        } else {
    514             $multixmlfeed = "and xmlfeed = ".$multi_val->multixmlfeed." ";
     514            $multixmlfeed = "and xmlfeed in ( ".$multi_val->multixmlfeed." )";
    515515        }
    516516        if($multi_val->multiproductpage == "1" ){
     
    729729            $producturl = "".get_option("Tradetracker_productpageURL")."?ttproductid=".$product->productID."";
    730730            $urltarget ="";
    731             $rel = "";
     731            $relimage = "";
     732            $relurl = "";
    732733        } elseif (isset($outpage) && !empty($outpage)){
    733734            $producturl = "".$outpage."?id=".$product->productID."";
    734735            $urltarget ="target=\"_blank\"";
    735             $rel = "";     
     736            $relimage = "";
     737            $relurl = "";       
    736738        } else {
    737739            $producturl = htmlspecialchars($product->productURL);
    738740            $urltarget ="target=\"_blank\"";
    739             $rel = "rel=\"nofollow\"";
     741            $relimage = "rel=\"nofollow\"";
     742            $relurl = "rel=\"nofollow\"";
    740743        }
    741744        if($product->imageURL==""){
     
    784787            $image = $imageURL;
    785788            $target = "";   
    786             $rel = "";
     789            $relimage = "";
    787790            $imagerel = "rel=\"lightbox[store]\"";
    788791            if($fancylink ==1){
     
    806809                ".$logo."
    807810                <div class=\"".$storename."store-image store-image\">
    808                     <a href=\"".$image."\" ".$rel." ".$imagerel." ".$target.">
     811                    <a href=\"".$image."\" ".$relimage." ".$imagerel." ".$target.">
    809812                        <img src=\"".$imageURL."\" ".$alt." ".$title." style=\"max-width:".$width."px;max-height:180px;width:auto;height:auto;\"/>
    810813                    </a>
     
    816819                    ".$more."
    817820                    <div class=\"".$storename."buttons buttons\">
    818                         <a href=\"".$producturl."\" ".$rel." class=\"regular\" ".$urltarget." title=\"".$productname."\">
     821                        <a href=\"".$producturl."\" ".$relurl." class=\"regular\" ".$urltarget." title=\"".$productname."\">
    819822                            ".$buynow."
    820823                        </a>
  • tradetracker-store/trunk/import/database.php

    r1319488 r1447808  
    205205                        $wpdb->flush();
    206206                        if($product->categories->category==""){
    207                             $wpdb->insert($ttstorecattable ,array('productID' => $productID,'categorie' => "empty category",'categorieid' => md5($xmlfeed[$xmlfeednumber][0]."empty category") ),array('%s','%s','%s'));
     207                            if (isset($newcategory) && $newcategory == "1"){
     208                                $wpdb->insert($ttstorecattable ,array('productID' => $productID,'categorie' => "empty category",'categorieid' => md5($xmlfeed[$xmlfeednumber][0]."empty category") ),array('%s','%s','%s'));
     209                            } else {
     210                                $wpdb->insert($ttstorecattable ,array('productID' => $productID,'categorie' => "empty category",'categorieid' => md5("empty category") ),array('%s','%s','%s'));
     211                            }
    208212                        } else {
    209213                            $querycat = "";
  • tradetracker-store/trunk/readme.txt

    r1431406 r1447808  
    55Requires at least: 4
    66Tested up to: 4.4
    7 Stable tag: 4.6.28
     7Stable tag: 4.6.29
    88
    99A plugin that lets you import an XML productfeed from TradeTracker.
     
    4242
    4343== Changelog ==
     44= 4.6.29 =
     45- Small fix to make rel=nofollow also work when using lightbox
     46
    4447= 4.6.28 =
    4548- Small fix to make image work in specific tradetracker feed
Note: See TracChangeset for help on using the changeset viewer.