3
1
Back

(strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($doc === NULL) { foreach ($article['debugging'] as $msg) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath.

New Pull Request