3
1
Back

Mise en scene which we love and adore. Elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Girls with Slingshots // Girls with Slingshots $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); } } Dead Philosophers elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // And get blog entry $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry){ $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, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Dilbert // Dilbert elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // only keep everything starting at the first // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'threepanelsoul.com/2') .

New Pull Request