3
1
Back

$doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // And get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } // Joy of Tech elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Robot Hugs elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] .= "
Alt: " . $article['id']; } function mangle_article($article) { // there's an arrow shaped cutout in the post that we want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // Cyanide & Happiness 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); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article.

New Pull Request