Labels Milestones
BackPreg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; } } if(ADD_IDS){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } //noop elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } // XKCD (alt tags we don't need to call out for) // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Drugs and Wires elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] .= $aftercomic; $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(