3
1
Back

Additions Various updates, additions /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(ownerDocument->saveXML($entry) . "

"; // Wondermark (alt tag already present elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { // Girls with Slingshots $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags textified. } $article = $this->alt_textify($article); $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { // Poly In Pictures elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // SBMC elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link.

New Pull Request