3
1
Back

"satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query($query); $result_html = ''; function get_xpath_dealie($link) { } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { function rel2abs($rel, $base $path = ''; foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); // Eat That Toast elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // Drugs and Wires elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } Invisible Bread, Softer World (alt tags we don't.

New Pull Request