3
1
Back

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

"; } } } // } // Something Positive elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $article['content'] .= "

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

"; } } } // Breaking Cat News $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } } return $result_html; } function rel2abs($rel, $base) { if (GDORN_DEBUG && $article['debug']) { foreach ($article['debug'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img.

New Pull Request