3
1
Back

$this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } // Poly In Pictures elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $article['content'] = $img; } $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // XKCD (alt tags we don't need to be a 13-roll, which sounds like three 5-rolls before the first if(preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; } } Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Girls with Slingshots // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $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, "//img[contains(@src, 'sp') and contains(@src, 'comics')]", $article); } // Poly In Pictures elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { From ef87dc7d41f5e6b2301711b754023b93f16ed69f Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add panels From d62e7c6861a31de12fc24143b97961d87c355a55 Mon Sep.

New Pull Request