3
1
Back

$article['link']); $entry->setAttribute('src', $new_src); $result_html .= "Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*( (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Girls with Slingshots elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] = $matches[1]; elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Breaking Cat News elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMDocument(); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text elseif (strpos($article['link'], 'alicegrove.com') !== FALSE.

New Pull Request