3
1
Back

$host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function hook_render_article_cdm($article) { } module arrow_indicator() { } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Dinosaur Comics Cleanup $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] = $matches[1]; } } //Sites that provide images and just need alt tags textified. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } function hook_render_article($article) { return $this->mangle_article($article); } function init($host) { /** * Use this if.

New Pull Request