JFactory::getDocument()->addStylesheet(str_replace(JPATH_ROOT, '', dirname(__FILE__)) . '/assets/headerimage.css'); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); //init vars $sTekstregel1 = false; $sTekstregel2 = false; $sImagepath = false; $iWidth = 0; $iHeight = 0; //joomla request uitlezen $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); //productpagina? if ($option == 'com_bixprintshop' && $view == 'productdetails') { $iProductID = JRequest::getInt('productID', 0); if ($iProductID) { $bixProduct = BixTools::getproductClass($iProductID); $sTekstregel1 = $bixProduct->get('tekstregel1', '-', 'params', true); $sTekstregel2 = $bixProduct->get('tekstregel2', '-', 'params', true); $sImagepath = $bixProduct->get('image', '', 'params', true); } } //contentcategorie? if ($option == 'com_content' && $view == 'article') { $iArticleID = JRequest::getInt('id', 0); if ($iArticleID) { $db = JFactory::getDbo(); $db->setQuery("SELECT images FROM #__content WHERE id = {$iArticleID}"); $sImages = $db->loadResult(); if ($sImages) { $rImages = new JRegistry(); $rImages->loadString($sImages);