3
1
Back

Otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { catch (Exception $e) { $article['content'] .= "
$orig_content
"; } // Wondermark (alt tag already present elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $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); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // Achewood (alt tag) elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // Chainsawsuit elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = new DOMDocument(); // replace the.

New Pull Request