3
1
Back

If (preg_match("@.*()@", $article['content'], $matches)) { } //Sites that provide images and just need alt tags elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // SatW elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $article['content'] = $matches[1]; $img = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // $img_tag = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Cyanide & Happiness elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old.

New Pull Request