3
1
Back

} function mangle_article($article) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $article['content'] = $img_tag . $article['content']; } // Wondermark (alt tag already present) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // Penny Arcade elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // CTRL+ALT+DEL // Three Panel Soul // Two Lumps // Two Lumps elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Clean up code formatting; added a few comics; standardized.

New Pull Request