Microweber\Utils\Parser::isolate_content_field_old PHP Метод

isolate_content_field_old() публичный Метод

    public function isolate_content_field_old($l)
    {
        require_once __DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'phpQuery.php';
        $pq = \phpQuery::newDocument($l);
        $found = false;
        foreach ($pq['[field=content][rel_type=content]:last'] as $elem) {
            $l = pq($elem)->htmlOuter();
            $found = true;
        }
        if ($found == false) {
            foreach ($pq['[field=content_body][rel_type=content]:last'] as $elem) {
                $l = pq($elem)->htmlOuter();
                $found = true;
            }
        }
        return $l;
    }