3
1
Back

False){ // there's both alt and title texts, they're both different, use both. } elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
" . $msg . ""; } if ($alt_text && $alt_text != $article['title']){ $result_html .= "
Alt: " . $article['id']; } function hook_render_article_cdm($article) { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { // only keep everything starting at the first if(preg_match("@.*(

New Pull Request