3
1
Back

17:38:43 -08:00 } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] .= $aftercomic; } } // SBMC // SBMC elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog //also get the blog $entries = $xpath->query("//div[@class='entry']"); // VG Cats elseif (strpos($article["content"], "//www.vgcats.com/comics/?strip_id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // only keep everything starting at the first if (preg_match("@.*(

New Pull Request