3
1
Back

Cat News elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); // And get blog $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { $article['content'] = preg_replace("@@", '', $article['content']); Clean up code formatting; added a few due to referer checks elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Alice Grove bigger img VG Cats, via their tumblr rss feed since they don't have one.

New Pull Request