3
1
Back

Updated LICD, alter alt-textify to handle both title and alt tags textified. //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = new DOMXPath($doc); } function get_img_tags($xpath, $query, $article) { function hook_render_article($article) { try { return $rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } function hook_render_article_cdm($article) { return $rel; } if ($alt_text && $alt_text != $article['title']){ $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } //noop } // Poly In Pictures } // SatW elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "$orig_content"; // Awkward Zombie $article['content'] .= "
Alt: " . $article['id']; $article = $this->alt_textify($article); $entries = $xpath->query("//span[@class='rss-content.

New Pull Request