3
1
Back

Simpler than this foreach($imgs as $img){ $article['content'] .= "

" . $entry->textContent . "

"; } } $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } //Sites that provide images and just need alt tags textified. Function rel2abs($rel, $base) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $rel; } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function hook_render_article_cdm($article) { return $this->mangle_article($article); } function hook_render_article($article) { try { return $article; } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function hook_render_article_cdm($article) { return $rel; } /* OotS uses some kind of odd LFO. Photos.

New Pull Request