3
1
Back

Initial Wondermark fix; added Oatmeal initial $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); // Alice Grove (get bigger image // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Two Lumps elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Cyanide & Happiness elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $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); // Pain Train alt tag, Alice Grove (get bigger image elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { if (anchor_hole=="right" || anchor_hole=="both") { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; if (ADD_IDS) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article.

New Pull Request