3
1
Back

Tweaking elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Scenes From A Multiverse (to get alt tags textified. } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debug'] as $msg) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); // And get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } function hook_render_article_cdm($article) { function rel2abs($rel, $base if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } } // Cyanide & Happiness elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Dead Philosophers elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } elseif.

New Pull Request