Labels Milestones
BackAbout $orig_content = strip_tags($article['content']); // Awkward Zombie // Awkward Zombie elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // Dead Philosophers // Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'jpg')]", $article, "http://vgcats.com/comics/"); // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // XKCD (alt tags we don't need to call out for) $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $img; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { //also append the blarg post because that's small.