3
1
Back

Users // $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Three Panel Soul elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } // replace the (containing project wonderful) with nothing $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL is ready! */ return $scheme.'://'.$abs; } function rel2abs($rel, $base) { Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text Added The Trenches; yet more code style tweaking // The Oatmeal $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "
$orig_content
"; } // Three Panel Soul elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } /* OotS uses some kind of odd LFO. .

New Pull Request