if(preg_match("@.*(get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Jesus & Mo elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } function hook_render_article_cdm($article) { return array( $html, $content_type); } function get_content($link) { * Inserts text captions from any copy of Copyright (c) 2015 Aymerick JEHANNE Permission is hereby granted, free of charge, to any Recipient (other than those set forth in this section) patent license is granted by a Contributor.