3
1
Back

Present foreach($imgs as $img){ $article['content'] .= "

" . $entry->textContent . ""; // Softer World (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Two Lumps $orig_content = strip_tags($article['content']); // Awkward Zombie $orig_content = strip_tags($article['content']); // Awkward Zombie elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Two Lumps elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE.

New Pull Request