3
1
Back

One pattern. Class _comics extends Plugin { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Dilbert // Dilbert // Dilbert elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { Cumulative fixes from v1.0 (the one that.

New Pull Request