3
1
Back

$xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { $article['content'] = $img_tag . $article['content']; // $article['content'] = $matches[1]; $img = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Two Lumps elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Something Positive elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { // Two Lumps // Two Lumps elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'comics')]", $article); } // Camp Weedonwantcha elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Wondermark (alt tag already present) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Questionable Content (cleanup .

New Pull Request