3
1
Back

$article); //Sites that provide images and just need alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags if both exist elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = new DOMXpath($doc); elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "
" . $msg . ""; } } } } // SatW // SatW elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $matches[1]; elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites Clean up code formatting; added a few comics; standardized appending.

New Pull Request