$limit) {
$words = str_word_count($text, 2);
$pos = array_keys($words);
$text = substr($text, 0, $pos[$limit]);
}
$ret = ($blDoubleCut) ? substr($text, 0, 120) : $text;
return ($ret != '') ? $ret . '... ' : '';
}
function formatPrice($dPrice, $blAmazon = false)
{
if ($blAmazon) {
$dPrice = $dPrice / 100;
}
$sFormattedPrice = number_format($dPrice, 2, ",", ".");
if (!$blAmazon) {
$aSplit = explode(',', $sFormattedPrice);
$sDecimalSuffix = ',' . $aSplit[1] . '';
if ((int)$aSplit[1] == 0) {
$sDecimalSuffix = ',-';
}
$sFormattedPrice = $aSplit[0] . $sDecimalSuffix;
} else {
$sFormattedPrice = '*' . $sFormattedPrice . ' €';
}
return $sFormattedPrice;
}
function extractAlias($sString)
{
$suchen = array('/ß/', '/ä/', '/ö/', '/ü/', '/\-/', '/[^a-zA-Z0-9\-\s]+/', '/\s+/');
$ersetzen = array('ss', 'ae', 'oe', 'ue', '-', '', '-');
return strtolower(preg_replace($suchen, $ersetzen, $sString));
}
function genKeywords($str)
{
$suchen = array('/\-/', '/[^a-zA-Z0-9\-\söäüÖÄÜ]+/', '/\s+/');
$ersetzen = array('-', '', ',');
return strtolower(preg_replace($suchen, $ersetzen, $str));
}
$blHasAmazonArticles = null;
if ($aVars && isset($aVars['feedData']) && is_array($aVars['feedData'])){
foreach ($aVars['feedData'] as $key => $item) {
$item['picture'] = (!empty($item['picture'])) ? $item['picture'] : ((!empty($item['itemPicture'])) ? $item['itemPicture'] : "");
//$aVars['feedData'][$key]
$aVars['feedData'][$key]['link'] = preg_replace('/http\:/', $this->getProtocol() . ':', $item['link']);
$aVars['feedData'][$key]['imgUrl'] = preg_replace('/http\:/', $this->getProtocol() . ':', $item['imgUrl']);
$aVars['feedData'][$key]['picture'] = preg_replace('/http\:/', $this->getProtocol() . ':', $item['picture']);
if ($blHasAmazonArticles === null && array_key_exists('amazonBestPrice', $item) && $item['amazonBestPrice'] !== null) {
$blHasAmazonArticles = true;
}
$aVars['feedData'][$key]['title'] = str_replace('\\"', '\'', $item['title']);
}
}
if (is_array($aVars['feedData'])) {
$firstData = $aVars['feedData'][0];
}
$canonicalUKat = null;
$canonicalOKat = null;
$sH2Text = 'Preiswerte Markenartikel zu Bestpreisen.';
$blIsBware = (bool)$aVars['isBware'];
if (is_array($aVars['feedData'])) {
// divide into first 3 elements and the rest
$aTheItem = array_slice($aVars['feedData'], 0, 1);
$aOtherLines = array_slice($aVars['feedData'], 1);
}
?>
blIsCategoryUrl){
$sTheTitle = $firstData['title'];
} else {
if(isset($aVars['currentCategory']['ukatTitle'])){
$sTheTitle = $aVars['currentCategory']['ukatTitle'];
} else {
$sTheTitle = $aVars['currentCategory']['okatTitle'];
}
}
}
if(!$this->blIsCategoryUrl){
if (isset($aVars['currentCategory']['ukatTitle'])) {
if (strlen($sTheTitle.$aVars['currentCategory']['ukatTitle']) <= 52){
$sTheTitle.= " | " . $aVars['currentCategory']['ukatTitle'];
}
$canonicalUKat = $aVars['currentCategory']['ukatAlias'];
$sH2Text = $aVars['currentCategory']['ukatTitle'];
}
if (isset($aVars['currentCategory']['okatTitle'])) {
$canonicalOKat = $aVars['currentCategory']['okatAlias'];
$sH2Text = $aVars['currentCategory']['okatTitle'];
}
}
if (!empty($_GET['okat']) && $_GET['okat'] == "fussball-wm-2018") {
$sTheTitle = 'B-Ware Günstig - Alles für die WM 2018';
}
/**
* remove double whitespaces
*/
echo trim_text(preg_replace('/\s+/', ' ',$sTheTitle), 55);
?>
getProductLdJson();
?>
156) {
$sMetaDescription = limitByWordCount($sMetaDescription, 156);
}
}
if (!empty($_GET['okat']) && $_GET['okat'] == "fussball-wm-2018"){
$sMetaDescription = 'Statte Dich bei uns für die bevorstehende Fussball-WM 2018 aus und mache diese Zeit zu einem unvergesslichen Ereignis.';
}
?>
" />
" />
">
Hinweis: Die Artikel auf dieser Seite sind keine B-Ware-Artikel.
Hinweis: Die Artikel auf dieser Seite sind ausschließlich B-Ware-Artikel.
Die Inhalte dieser Webseite enthalten Affiliate-Links, für die wir möglicherweise eine Vergütung erhalten.
keine B-Ware Artikel";
}
?>
';
if(isset($aTheItem[0]['attributes'])){
foreach($aTheItem[0]['attributes'] as $name=>$value){
if(stripos($name, 'rücknahme') === false){
echo '
'.$name.''.$value.'';
}
}
}
echo '
Artikelnr.'.$aTheItem[0]['id'].'';
echo '';
?>
Jetzt bei eBay:
getRatingView($aTheItem[0]['averageRating'], $aTheItem[0]['link']);
}
?>
Das könnte Dich auch interessieren:
0){
foreach ($aOtherLines as $key => $aItemData) {
$halfClass = '';
$buttonTitle = 'Zum Angebot *';
?>
Jetzt bei eBay:
$value){
if(stripos($name, 'rücknahme') === false){
echo '- '.$name.''.$value.'
';
}
}
}
?>
getPixel();
?>
* Affiliate-Link zur Verkaufsplattform eBay
getPageBrands()) !== null) { ?>
.
Hinweis: Die auf dieser Unterseite aufgelisteten Artikel sind keine B-Ware Artikel
Hinweis: Die auf dieser Unterseite aufgelisteten Artikel sind ausschließlich B-Ware Artikel
Zur Optimierung der Benutzerfreundlichkeit werden auf dieser Webseite Cookies verwendet. [
Weitere Infos ]
OK
×
Die Datenerfassung durch Google Analytics wurde deaktiviert