3
1
Back

$article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } //Sites that provide images and just need alt tags textified. $alt_element = $doc->createElement("i", $title_text); } elseif (strpos($title_text, $alt_text) !== False) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function about() { return $base.$rel; } extract(parse_url($base)); $path = ''; function get_xpath_dealie($link) { } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Clean up code formatting.

New Pull Request