3
1
Back

.= "
Alt: " . $img->getAttribute('title') . ""; } } if(ADD_IDS){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } /* absolute URL is ready! */ } function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } //noop elseif.

New Pull Request