3
1
Back

// Penny Arcade elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } // Joy of Tech elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Scenes From A Multiverse (to get alt tags) } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); } // SatW elseif (strpos($article["link"], "explosm.net/comics") !== 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='blarg']/div[last()]"); foreach ($entries.

New Pull Request