3
1
Back

Hole_top = out_row_1 + 94; // this is far simpler than this foreach($imgs as $img){ $article['content'] .= "

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

"; } } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Two Lumps elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] .= $aftercomic; } } // XKCD (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and.

New Pull Request