3
1
Back

Get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; if (ADD_IDS) { $imgs = $xpath->query('//img'); //doesn't get simpler than having hundreds of plugins, one per feed. The file will get big, but whatever. From dd8fda85b17279e6d8dbcb525c226736e6399cf9 Mon Sep 17 00:00:00 2001 Subject: [PATCH] drugs & wires, pilotside drugs & wires, pilotside 2018-11-20 08:29:13 -08:00 // Poorly Drawn Lines elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { //noop elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // Scenes From A Multiverse Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Dinosaur Comics Cleanup // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } Some comics supported elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry) { $article['content'] .= "$orig_content"; // Awkward Zombie elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { 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.

New Pull Request