{source 0} input->get('id', null); $view = JFactory::getApplication()->input->get('view'); $intro_image = null; $style = []; function getThumb($url) { return preg_replace('/(^(?!http)(?:(?!thumb).)*)\.(jpe?g|png)/', '$1.2560.$2', $url); } $associations = MenusHelper::getAssociations($Itemid); if ($article_id ) { $article->load($article_id); if ($article->language != 'de-DE') { $article_id = $app->getMenu()->getItem($associations['de-DE'])->query['id']; $article->load($article_id); } $images = json_decode($article->images); if ($images->image_intro) { $intro_image = '/'. $images->image_intro; } } $article_id = JFactory::getApplication()->input->get('articleId', $article_id || null); if (!$intro_image && $article_id && $view == 'pixelcms_articles') { $controller = JControllerLegacy::getInstance('pixelcms_articles'); $model = $controller->load('pixelcms_articles'); $article = $model->getArticle(); if ($article && $article->titleimage) { $thumb = getThumb($article->titleimage->url); $intro_image = "https://cms.pixel-kraft.de$thumb"; if ($article->titleimage->position) { $posX = ($article->titleimage->position->x * 100); $posY = ($article->titleimage->position->y * 100); $style[] = "background-position: $posX% $posY%"; } } } if (!$intro_image && $article_id && $view == 'pixelcms_events') { $controller = JControllerLegacy::getInstance('pixelcms_events'); $model = $controller->load('pixelcms_events'); $article = $model->getArticle(); if ($article && $article->image) { $thumb = getThumb($article->image->url); $intro_image = "https://cms.pixel-kraft.de$thumb"; if ($article->image->position) { $posX = ($article->image->position->x * 100); $posY = ($article->image->position->y * 100); $style[] = "background-position: $posX% $posY%"; } } } if (!$intro_image && $article_id && $view == 'pixelcms_news') { $controller = JControllerLegacy::getInstance('pixelcms_articles'); $model = $controller->load('pixelcms_news'); $article = $model->getNews(); if ($article && count($article->images) > 0) { $intro_image = "{$article->images[0]}"; } } $category = JFactory::getApplication()->input->get('pixelcms_category_id', null); if (!$intro_image && $category) { $controller = JControllerLegacy::getInstance('pixelcms_articles'); $model = $controller->load('pixelcms_articles'); $article = $model->getCategory(); if ($article && $article->image) { $thumb = getThumb($article->image->url); $intro_image = "https://cms.pixel-kraft.de$thumb"; if ($article->image->position) { $posX = ($article->image->position->x * 100); $posY = ($article->image->position->y * 100); $style[] = "background-position: $posX% $posY%"; } } } if (!$intro_image && $article && $article->category->image) { $thumb = getThumb($article->category->image->url); $intro_image = "https://cms.pixel-kraft.de$thumb"; if ($article->category->image->position) { $posX = ($article->category->image->position->x * 100); $posY = ($article->category->image->position->y * 100); $style[] = "background-position: $posX% $posY%"; } } if ($intro_image) { $style[] = "background-image: url('$intro_image')"; $style = implode(';', $style); echo "
"; } else { echo "
"; } ?> {/source}

SAISON-ENDE! Jetzt 40 % Rabatt auf alle verfügbaren PRUNION Verlängerungen & Scheren (ohne Akku).

Bis 30. September 2022! Profitieren Sie jetzt von 40 % Sofort-Rabatt auf alle ab Lager verfügbaren Akkuscheren PRUNION (ohne Akku) und die Verlängerungs-Schafte 1 m, 1,5 m und/oder 2 m für PRUNION! Jetzt beim teilnehmenden PELLENC-Fachhändler sichern. Informieren Sie sich hier oder vereinbaren Sie gleich eine Vorführung oder Beratung beim nächstgelegenen Händler (…)!

  • 40 % Rabatt auf alle Akku-Scheren PRUNION SOLO!
  • 40 % Rabatt auf alle PRUNION-Verlängerung P100, P150 und P200!  

Im teilnehmenden Händlernetz, solange Vorrat reicht.

*Aktionsbedingungen beim teilnehmenden Fachhändler und im PDF-Flyer (hier klicken für Download).

Quelle: PELLENC