3
1
Back

Class _comics extends Plugin { catch (Exception $e) { $article['content'] .= "Bonus comic:" . $aftercomic . ""; $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } Some comics supported elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $img; } } function hook_render_article($article) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); .

New Pull Request