Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 357 | Revision 359 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 357 Revision 358
Zeile 40... Zeile 40...
40
    }
40
    }
Zeile 41... Zeile 41...
41
 
41
 
42
    function parseCMSPage( $content )
42
    function parseCMSPage( $content )
43
    {
43
    {
-
 
44
        $doc = new DomDocument;
44
        $doc = new DomDocument;
45
        $content = str_replace( array( "<hader", "</header" ), "", $content );
45
        $doc->validateOnParse = true;
46
        $doc->validateOnParse = true;
46
        $doc->loadHtml( $content );
47
        $doc->loadHtml( $content );
47
        $menu = $doc->getElementById( "menu" )->nodeValue;
48
        $menu = $doc->getElementById( "menu" )->nodeValue;
48
        $content = $doc->getElementById( "content" )->nodeValue;
49
        $content = $doc->getElementById( "content" )->nodeValue;
Zeile 138... Zeile 139...
138
    {
139
    {
139
        $url = $GLOBALS["INI"]["typo3"]["url"] . "/" . $slug;
140
        $url = $GLOBALS["INI"]["typo3"]["url"] . "/" . $slug;
140
        $res = getCMSPage( $url );
141
        $res = getCMSPage( $url );
141
        $arr = parseCMSPage( $res );
142
        $arr = parseCMSPage( $res );
142
        $content = $arr["content"];
143
        $content = $arr["content"];
143
        return view( 'subdir', [
144
        return view( 'service_center_conent', [
144
            "content"     => $content,
145
            "content"     => $content,
145
            "nav"         => $GLOBALS["menu"],
146
            "nav"         => $GLOBALS["menu"],
146
            "ini"         => $GLOBALS["INI"],
147
            "ini"         => $GLOBALS["INI"],
147
            "langstrings" => $GLOBALS["langstrings"],
148
            "langstrings" => $GLOBALS["langstrings"],
148
        ] );
149
        ] );