3
1
Back

Function hook_render_article($article) { return $base.$rel; } extract(parse_url($base)); $path = ''; } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. // $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; .

New Pull Request