3
1
Back

Contains(@src, 'uploads') and contains(@src, 'comics')]", $article); } // Dilbert elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Dilbert elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] = $img_tag . $article['content']; } // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); // Three Panel Soul elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] .= "

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

"; } } } foreach($imgs as $img){ // Questionable Content (cleanup) $article['content'] .= "
Alt: " .

New Pull Request