3
1
Back

HoleWidth); } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // } elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // only keep everything starting at the first foreach($imgs as $img){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } Some comics supported elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } } //Sites that provide images and just need alt tags.

New Pull Request