80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> 80){ $arrTemp = splitStr($productItem['productName'],80); $label = htmlspecialchars($arrTemp[0],ENT_QUOTES,'UTF-8').'...'; } else { $label = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); } $TPL_ARR['LABEL'] = $label; $TPL_ARR['TITLE'] = htmlspecialchars($productItem['productName'],ENT_QUOTES,'UTF-8'); // Kurzes Label /* $tmpName = splitStr($label,45); $TPL_ARR['LABEL-SHORT'] = $tmpName[0]; if($productItem['endTime']){ $TPL_ARR['TITLE'] .= htmlentities('
').$productItem['endTime']; } */ $TPL_ARR['MORE-INFO'] = LANG_MORE_INFO; // Link zum Preisvergleich $TPL_ARR['PV-LINK'] = createUrl('preisvergleich',urlencode($productItem['productId']),strip_tags(html_entity_decode($label))); // Url, Offer-ID, Produkt-ID, Anbietername, Kat-ID, Klickpreis, Klickpreris-Typ // $TPL_ARR['URL'] = $productItem['shop_url']; $TPL_ARR['PRICE-STR'] = $productItem['preis']; $TPL_ARR['SHIPPING-STR'] = $productItem['versandkosten']; $TPL_ARR['BASE-PRICE'] = $productItem['grundpreis'] != '' ? '
'.$productItem['grundpreis'].'
' : ''; // Bild löschen können, wenn eingeloggt /* if($_SESSION['user']['userName']){ if(preg_match('/^\/images\/produkte/',$productItem['image_url'])){ $TPL_ARR['SHIPPING-STR'] .= ' '; } } */ $TPL_ARR['IMG'] = $productItem['image_url']; // OG Image für Facebook if(!$ogImages || !is_array($ogImages)){ $ogImages = []; } if(count($ogImages) < 6){ $ogImages[] = $productItem['image_url']; } // Bilder, die nicht über den Image-Parser funktionieren $TPL_ARR['IMG-SIZE'] = $productItem['imgH'] ? ' height="'.$productItem['imgH'].'"' : ''; if(preg_match('/^[http|\/images\/logo\/]/i',$productItem['shopLogo']) !== false){ $TPL_ARR['SHOP-LOGO'] = ''; } else { $TPL_ARR['SHOP-LOGO'] = ''; } $TPL_ARR['SHOP-NAME'] = $productItem['shopName']; //$TPL_ARR['SHOP-NAME-STRING'] = '

'.$productItem['shopName'].'

'; //$TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'.LANG_INFO_AND_COMPARE.'** '.$label.'
'; // Eurozeichen: glyphicon-euro // Liste: glyphicon-tasks oder glyphicon-list if($productItem['ean'] != ''){ $ebayNoFollow = $productItem['affId'] == 3 ? ' rel=nofollow' : ''; $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } else { $TPL_ARR['BTN-PREISVERGLEICH'] = $typ == 'preisvergleich' && $forceSearchLoad == 0 ? '' : '
'; } // Tracking $TPL_ARR['AFF-ID'] = $productItem['affId']; $TPL_ARR['TRACK-LABEL'] = $productItem['affId'] == 1 || $productItem['affId'] >= 4 ? addslashes($productItem['affId'].'-'.$productItem['shopName']) : $affiliates[$productItem['affId']]; $TPL_ARR['KEYWORD'] = ''; if(isset($_SESSION['keyword']) && $_SESSION['keyword'] != ''){ $TPL_ARR['KEYWORD'] = (string)$_SESSION['keyword']; } else if(isset($cat) && $cat != ''){ $TPL_ARR['KEYWORD'] = isset($categories[$cat]) ? 'Kat: '.$categories[$cat][0] : 'cat undefined'; } else { $TPL_ARR['KEYWORD'] = substr(encStr($label),0,36); } $TPL_ARR['TRACK-KEYWORD'] = $TPL_ARR['KEYWORD'] != '' ? addslashes($TPL_ARR['KEYWORD']) : ''; //$TPL_ARR['KEYWORD'] = isset($_SESSION['keyword']) ? $_SESSION['keyword'] : (isset($cat) ? $categories[$cat] : ''); $TPL_ARR['MERCHANT-URL'] = $productItem['shop_url']; // Url zu visit.php //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']).'&affId='.$productItem['affId'].'&affName='.urlencode($TPL_ARR['TRACK-LABEL']).'&ppid='.$productItem['productId']; //$TPL_ARR['URL'] = urlShopEncoded($productItem['shop_url']); $TPL_ARR['URL'] = urlShop($productItem['shop_url']); $TPL_ARR['SID'] = session_name().','.session_id(); // Merkliste - to do $TPL_ARR['BTN-WATCHLIST'] = ''; $isOnWatchlist = isset($_COOKIE['watchlist'][$productItem['productId']]) ? true : false; if($isOnWatchlist === true){ $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'remove\',\'0\')'; //$wlGlyphicon = 'glyphicon-floppy-remove orange'; $wlGlyphicon = 'wl-icon wl-icon-yes'; $wlTitle = LANG_WATCHLIST_REM; } else { // 0=pid, 1=title, 3=bild, 4=shopName, 5=shopLogo, 6=preis, 7=versand, 8=ean, 9=eek, 10=offer_type, 11=valid_to, 12=shopurl $wsTrennzeichen = '|O|'; $wsAddStr = $productItem['productId'].$wsTrennzeichen.$TPL_ARR['TITLE'].$wsTrennzeichen; $wsAddStr .= $TPL_ARR['IMG'].$wsTrennzeichen.$productItem['shopName'].$wsTrennzeichen.$productItem['shopLogo'].$wsTrennzeichen; $wsAddStr .= $productItem['preis'].$wsTrennzeichen.$productItem['versandkosten'].$wsTrennzeichen.$productItem['ean'].$wsTrennzeichen.$productItem['eek']; $wsAddStr .= $wsTrennzeichen.$productItem['offerType'].$wsTrennzeichen.$productItem['validTo'].$wsTrennzeichen.$TPL_ARR['MERCHANT-URL']; $wlLink = 'watchlist(\''.$productItem['productId'].'\',\'0\',\'add\',\''.base64_encode($wsAddStr).'\')'; //$wlGlyphicon = 'glyphicon-floppy-disk blau'; $wlGlyphicon = 'wl-icon wl-icon-no'; $wlTitle = LANG_WATCHLIST_ADD; unset($wsAddStr); } $TPL_ARR['BTN-WATCHLIST'] = '
'; $TPL_ARR['BUTTON-TEXT'] = $productItem['offerType'] == 'auction' ? LANG_EBAY_BID_NOW : LANG_OFFER_TO; // Gutschein $productItem['productId'] $TPL_ARR['GUTSCHEIN'] = ''; if($productItem['ShopId'] != ''){ $gutschein = getField("id",TABLE_PREFIX."aff_gutscheine","programid=".$productItem['ShopId']." AND `end` > NOW()"); if($gutschein !== false){ $TPL_ARR['GUTSCHEIN'] = '
'.LANG_VOUCHER.'
'; } } // EEK $TPL_ARR['EEK'] = $productItem['eek'] !== false && is_string($productItem['eek']) ? '
'.$productItem['eek'].'
' : ''; // Bewertung $TPL_ARR['STARS'] = ''; $TPL_ARR['DESCRIPTION'] = ''; if($productItem['description']){ $splitStrArr = splitStr($productItem['description'],CHARS_DESCRIPTION); $TPL_ARR['DESCRIPTION'] = $splitStrArr[0]; } if(isset($productItem['trackingImg'])){ $TPL_ARR['DESCRIPTION'] .= $productItem['trackingImg']; } //include(SERVER_ROOT.'/inc/module.watchlist_str.php'); // save the product name as md5 hash with the product ID /* $label2Url = umlaute($label); send_sql("INSERT INTO ".TABLE_PREFIX."pid VALUES('".md5($label2Url)."','$parsedPid','$label2Url') ON DUPLICATE KEY UPDATE pid='$parsedPid',`label`='$label2Url'"); */ //$pageContent .= parse_tpl(PRODUCT_INLINE_TPL,$TPL_ARR); $pageContent .= parse_tpl(constant('PRODUCT_'.LAYOUT.'_TPL'),$TPL_ARR); // DELIVERY //$delivery_period =& $item -> {'top-offer'} -> delivery -> period; //$delivery_price = trim($item -> {'top-offer'} -> delivery -> charge) != '' ? $item -> {'top-offer'} -> delivery -> charge : 'k.A.'; ?> mannol legend formula c5 10 liter 0w 20 motoroel motorenoel vergleichen bei Ebay bei Ebay | preiskater.de
Meine Merkliste [0]
 Merkliste - leerMerkliste - leerMerkliste - leerMerkliste - leerMerkliste - leerMerkliste - leer
0 && $typ != 'page' && $typ != 'index'){ if(preg_match('/\.php$/',$pagingBasisLink)){ $priceBaseLink =& $pagingBasisLink; $price_query = array2query($_GET,'pr,plh,typ,page,init_kw,pgn,pm,'.SOURCE_ID.','.PARTNER_ID.','.KEYWORD); } else { $priceBaseLink = $pagingBasisLink.'-1.html'; $price_query = array2query($_GET,'pr,typ,page,init_kw,pgn,icid,ipid,pm,'.SOURCE_ID.','.PARTNER_ID.','.KEYWORD); } $pll_current = isset($pll) ? $pll : $minPriceCat; $plh_current = isset($plh) ? $plh : $maxPriceCat; ?>
Preis-Schieber
Preise von bis
3
100
 

mannol legend formula c5 10 liter 0w 20 motoroel motorenoel bei Ebay

Nichts Passendes gefunden? mannol legend formula c5 10 liter 0w 20 motoroel motorenoel > bei Amazon finden.
 
 

Erklärung der Icons:

Merkliste Produkt auf die Merkliste setzen

Merkliste Produkt ist auf der Merkliste, klicken zum entfernen

Möglicherweise ist ein Preisvergleich zu diesem Produkt verfügbar

Produktinfo, kein Preisvergleich möglich.

* Hinweise zu den Preisen: Alle Preise enthalten die für Deutschland geltende Mehrwertsteuer in Höhe von 19% und sind tagesaktuell. Dennoch weisen wir ausdrücklich darauf hin, dass aus technischen Gründen die bei preiskater.de angezeigten Preise von denen im Shop der Verkäufer abweichen können. Zum Zeitpunkt des Kaufes ist der aktuell auf der Website des jeweiligen Verkäufers angegebene Preis maßgeblich. Diese Website richtet sich ausschließlich an Bürger mit Wohnsitz in Deutschland.
**Hinweise zum Preisvergleich: Leider ist nicht für jedes Produkt ein Preisvergleich verfügbar. Ebay® ist bisher aus technischen Gründen nicht im Preisvergleich enthalten.