src/ShopBundle/objects/WebModules/MTShopPageMetaCore/MTShopPageMetaCore.class.php
protected function GetSeoPatternString($dont_replace = false)
    {
        //return ''; //why? //#7767
        $sPattern = ''; //"[{PORTAL_NAME}] - [{PAGE_NAME}]";
        /** @var $oSeoRenderer TCMSRenderSeoPattern */
        $oSeoRenderer = new TCMSRenderSeoPattern();

        $sTmpPattern = parent::GetSeoPatternString(true);
        if (strlen(trim($sTmpPattern)) > 0) {
            $sPattern = $sTmpPattern;
        }

        $oActiveArticle = TdbShop::GetActiveItem();
        if ($oActiveArticle) {
            $arrRepl = $oActiveArticle->GetSeoPattern($sPattern);
            $oSeoRenderer->AddPatternReplaceValues($arrRepl);

            return $oSeoRenderer->RenderPattern($sPattern);
        } else {
            $oActiveCategory = TdbShop::GetActiveCategory();
            if ($oActiveCategory) {
                $arrRepl = $oActiveCategory->GetSeoPattern($sPattern);
                $oSeoRenderer->AddPatternReplaceValues($arrRepl);

                return $oSeoRenderer->RenderPattern($sPattern);
            }
        }

        return parent::GetSeoPatternString();
    }
protected function GetSeoPatternString($dont_replace = false)
    {
        //return ''; //why? //#7767
        $sPattern = ''; //"[{PORTAL_NAME}] - [{PAGE_NAME}]";
        /** @var $oSeoRenderer TCMSRenderSeoPattern */
        $oSeoRenderer = new TCMSRenderSeoPattern();

        $sTmpPattern = parent::GetSeoPatternString(true);
        if (strlen(trim($sTmpPattern)) > 0) {
            $sPattern = $sTmpPattern;
        }

        $oActiveArticle = TdbShop::GetActiveItem();
        if ($oActiveArticle) {
            $arrRepl = $oActiveArticle->GetSeoPattern($sPattern);
            $oSeoRenderer->AddPatternReplaceValues($arrRepl);

            return $oSeoRenderer->RenderPattern($sPattern);
        } else {
            $oActiveCategory = TdbShop::GetActiveCategory();
            if ($oActiveCategory) {
                $arrRepl = $oActiveCategory->GetSeoPattern($sPattern);
                $oSeoRenderer->AddPatternReplaceValues($arrRepl);

                return $oSeoRenderer->RenderPattern($sPattern);
            }
        }

        return parent::GetSeoPatternString();
    }
protected function GetSeoPatternString ( $ dont_replace = false ) { //return ''; //why? //#7767 $ sPattern = '' ; //"[{PORTAL_NAME}] - [{PAGE_NAME}]"; /** @var $oSeoRenderer TCMSRenderSeoPattern */ $ oSeoRenderer = new TCMSRenderSeoPattern ( ) ; $ sTmpPattern = parent :: GetSeoPatternString ( true ) ; if ( strlen ( trim ( $ sTmpPattern ) ) > 0 ) { $ sPattern = $ sTmpPattern ; } $ oActiveArticle = TdbShop :: GetActiveItem ( ) ; if ( $ oActiveArticle ) { $ arrRepl = $ oActiveArticle -> GetSeoPattern ( $ sPattern ) ; $ oSeoRenderer -> AddPatternReplaceValues ( $ arrRepl ) ; return $ oSeoRenderer -> RenderPattern ( $ sPattern ) ; } else { $ oActiveCategory = TdbShop :: GetActiveCategory ( ) ; if ( $ oActiveCategory ) { $ arrRepl = $ oActiveCategory -> GetSeoPattern ( $ sPattern ) ; $ oSeoRenderer -> AddPatternReplaceValues ( $ arrRepl ) ; return $ oSeoRenderer -> RenderPattern ( $ sPattern ) ; } } return parent :: GetSeoPatternString ( ) ; }
Get SEO pattern string.

@param bool $dont_replace Do not replace pattern with values

@return string
Get SEO pattern string .