3
1
Back

= $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Eat That Toast bog-standard example elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Alice Grove bigger img Subject: [PATCH] Add VCA shaek layout ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { function get_img_tags($xpath, $query, $article){ $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; // Awkward Zombie elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Drugs and Wires elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $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); function mangle_article($article) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content.

New Pull Request