source/Application/Model/Article.php
public function getThumbnailUrl($bSsl = null)
    {
        $sImgName = false;
        $sDirname = "product/1/";
        if (!$this->_isFieldEmpty("oxarticles__oxthumb")) {
            $sImgName = basename($this->oxarticles__oxthumb->value);
            $sDirname = "product/thumb/";
        } elseif (!$this->_isFieldEmpty("oxarticles__oxpic1")) {
            $sImgName = basename($this->oxarticles__oxpic1->value);
        }

        $sSize = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sThumbnailsize');

        return \OxidEsales\Eshop\Core\Registry::getPictureHandler()->getProductPicUrl($sDirname, $sImgName, $sSize, 0, $bSsl);
    }
public function getThumbnailUrl($bSsl = null)
    {
        $sImgName = false;
        $sDirname = "product/1/";
        if (!$this->_isFieldEmpty("oxarticles__oxthumb")) {
            $sImgName = basename($this->oxarticles__oxthumb->value);
            $sDirname = "product/thumb/";
        } elseif (!$this->_isFieldEmpty("oxarticles__oxpic1")) {
            $sImgName = basename($this->oxarticles__oxpic1->value);
        }

        $sSize = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sThumbnailsize');

        return \OxidEsales\Eshop\Core\Registry::getPictureHandler()->getProductPicUrl($sDirname, $sImgName, $sSize, 0, $bSsl);
    }
public function getThumbnailUrl ( $ bSsl = null ) { $ sImgName = false ; $ sDirname = "product/1/" ; if ( ! $ this -> _isFieldEmpty ( "oxarticles__oxthumb" ) ) { $ sImgName = basename ( $ this -> oxarticles__oxthumb -> value ) ; $ sDirname = "product/thumb/" ; } elseif ( ! $ this -> _isFieldEmpty ( "oxarticles__oxpic1" ) ) { $ sImgName = basename ( $ this -> oxarticles__oxpic1 -> value ) ; } $ sSize = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sThumbnailsize' ) ; return \ OxidEsales \ Eshop \ Core \ Registry :: getPictureHandler ( ) -> getProductPicUrl ( $ sDirname , $ sImgName , $ sSize , 0 , $ bSsl ) ; }
Returns article thumbnail picture url

@param bool $bSsl to force SSL

@return string
Returns article thumbnail picture url