3
1
Back

// only keep everything starting at the first $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Joy of Tech elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Dinosaur Comics Cleanup $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { From b4b4641770af206fdb9aac874d2d59b9ecc400d1 Mon Sep 17 00:00:00 2001 Subject: [PATCH 11/13] more.

New Pull Request