3
1
Back

True); class _comics extends Plugin { function hook_render_article($article) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag) // Pain Train (to get alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'comics')]", $article); } // Two Lumps elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // } elseif ($title_text && !$alt_text){ $text_element = $doc->createElement("i", $title_text); } else if (two_holes_type == "center.

New Pull Request