3
1
Back

Subsystem From 9db3fb2a68fdc178fb3f74c68d22940f6cdd2e78 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Various updates, additions elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { // Something Positive Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE && Various updates, additions $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } function get_content($link) { /** * Use this if you feel like it, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function about() { return array( 0.1, 'Yet more stupid-simple comic-fetching.', ' '); ' ' ); } function rel2abs($rel, $base) { Various updates, additions $alt_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); } elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Joy of Tech elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath.

New Pull Request