3
1
Back

$title_element = $doc->createElement("i", $alt_text); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { if ($doc === NULL) { if ($img->getAttribute('title')) { // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Eat That Toast bog-standard example // Penny Arcade elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog // XKCD (alt tags we don't need to call out for Wondermark fix; added Oatmeal initial Fix for when invisible bread has no bread Pain Train alt tag, Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites Clean up code formatting; added a few more 'simple' Unseen Servant 1 year 1 day 1 day This is free for.

New Pull Request