source/Core/Utils.php
public function seoIsActive($blReset = false, $sShopId = null, $iActLang = null)
    {
        if (!is_null($this->_blSeoIsActive) && !$blReset) {
            return $this->_blSeoIsActive;
        }

        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        if (($this->_blSeoIsActive = $myConfig->getConfigParam('blSeoMode')) === null) {
            $this->_blSeoIsActive = true;

            $aSeoModes = $myConfig->getconfigParam('aSeoModes');
            $sActShopId = $sShopId ? $sShopId : $myConfig->getActiveShop()->getId();
            $iActLang = $iActLang ? $iActLang : (int) \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();

            // checking special config param for active shop and language
            if (is_array($aSeoModes) && isset($aSeoModes[$sActShopId]) && isset($aSeoModes[$sActShopId][$iActLang])) {
                $this->_blSeoIsActive = (bool) $aSeoModes[$sActShopId][$iActLang];
            }
        }

        return $this->_blSeoIsActive;
    }
public function seoIsActive($blReset = false, $sShopId = null, $iActLang = null)
    {
        if (!is_null($this->_blSeoIsActive) && !$blReset) {
            return $this->_blSeoIsActive;
        }

        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        if (($this->_blSeoIsActive = $myConfig->getConfigParam('blSeoMode')) === null) {
            $this->_blSeoIsActive = true;

            $aSeoModes = $myConfig->getconfigParam('aSeoModes');
            $sActShopId = $sShopId ? $sShopId : $myConfig->getActiveShop()->getId();
            $iActLang = $iActLang ? $iActLang : (int) \OxidEsales\Eshop\Core\Registry::getLang()->getBaseLanguage();

            // checking special config param for active shop and language
            if (is_array($aSeoModes) && isset($aSeoModes[$sActShopId]) && isset($aSeoModes[$sActShopId][$iActLang])) {
                $this->_blSeoIsActive = (bool) $aSeoModes[$sActShopId][$iActLang];
            }
        }

        return $this->_blSeoIsActive;
    }
public function seoIsActive ( $ blReset = false , $ sShopId = null , $ iActLang = null ) { if ( ! is_null ( $ this -> _blSeoIsActive ) && ! $ blReset ) { return $ this -> _blSeoIsActive ; } $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; if ( ( $ this -> _blSeoIsActive = $ myConfig -> getConfigParam ( 'blSeoMode' ) ) === null ) { $ this -> _blSeoIsActive = true ; $ aSeoModes = $ myConfig -> getconfigParam ( 'aSeoModes' ) ; $ sActShopId = $ sShopId ? $ sShopId : $ myConfig -> getActiveShop ( ) -> getId ( ) ; $ iActLang = $ iActLang ? $ iActLang : ( int ) \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) -> getBaseLanguage ( ) ; // checking special config param for active shop and language if ( is_array ( $ aSeoModes ) && isset ( $ aSeoModes [ $ sActShopId ] ) && isset ( $ aSeoModes [ $ sActShopId ] [ $ iActLang ] ) ) { $ this -> _blSeoIsActive = ( bool ) $ aSeoModes [ $ sActShopId ] [ $ iActLang ] ; } } return $ this -> _blSeoIsActive ; }
Checks if Seo mode should be used

@param bool   $blReset  used to reset cached SEO mode
@param string $sShopId  shop id (optional; if not passed active session shop id will be used)
@param int    $iActLang language id (optional; if not passed active session language will be used)

@return bool
Checks if Seo mode should be used