3
1
Back

** not a comic, just a borked RSS feed elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Awkward Zombie 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); } // Three Panel Soul $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $img; } } Dead Philosophers elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } // Poly In Pictures elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } if ($rel[0]=='#' || $rel[0]=='?') { return array(0.1, 'Yet more stupid-simple comic-fetching.', } function api_version() { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query($query); $result_html = ''; $orig_src = $entry->getAttribute('src'); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } } return $article; } function hook_render_article($article) { return $base.$rel; if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] .= "
ID: " . $article['id']; } return $article; } Some comics supported elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $doc.

New Pull Request