3
1
Back

From 605f29538db81c6c2eb02428332e653ea5ee7e41 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Final revision; added custom DRC as project file tstamp 62e17d71-a82e-47f7-8a14-a0885fbe0008) Final revision; added custom DRC as project file return $article; } function hook_render_article($article) { try { return $base.$rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = ''; foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } // Three Panel Soul elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { // SatW // SatW elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // PhD Unknown elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } achewood, gwss fix, fix for when invisiblebread has no bread elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // $article['content'] .

New Pull Request