3
1
Back

(cleanup // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; } } module arrow_indicator() { } function init($host) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; // $article['content'] = preg_replace("@@", '', $article['content']); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $alt_text); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Two Lumps elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $article['content'] .= "

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

"; } } // XKCD (alt tags we don't need to call out for foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } Some comics supported VG Cats, via their tumblr rss feed since they don't have one of these already have working RSS feeds with comics embedded. I'm.

New Pull Request