3
1
Back

Foreach ($article['debug'] as $msg) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } Clean up code formatting; added a few more 'simple' Unseen Servant functions adds ideas for a few comics; standardized appending alt/title text //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } // Breaking Cat News elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "
Alt: " . $article['id']; } return $article; } /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*( New Pull Request