3
1
Back

Center=true); } // Gunnerkrigg Court // Gunnerkrigg Court elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "

"; } } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*( New Pull Request