3
1
Back

Fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type ); } function hook_render_article($article) { $article['content'] .= "

Bonus comic:
" . $aftercomic . ""; // Camp Weedonwantcha elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $img; if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } //noop elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { // Three Panel Soul elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { //also get blog //also get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { if ($img->getAttribute('title')) { // SatW elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } Dead.

New Pull Request