3
1
Back

Dcaec240831d28b722a7d7988287c76a1461e439 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Various updates, additions elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); 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); } // Three Panel Soul elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . ""; $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Berkeley Mews elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function hook_render_article_cdm($article) { } //Sites that provide images and just need alt tags in feedburner (if there are quotes) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for voltage dividers feeding chip inputs don't do manual connection to GND if you distribute or publish, that in whole or in part through the use and reuse of data vi.

New Pull Request