Labels Milestones
BackSoul $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Timothy Winchester (People I Know) // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Dilbert // Dilbert elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Three Panel Soul elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(