3
1
Back

$article['content']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'cad-comic.com/cad/') !== 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) . $article['content']; } // PhD Unknown elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Dead Philosophers elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Poly In Pictures } // Three Panel Soul elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Cyanide & Happiness elseif (strpos($article["link.

New Pull Request