3
1
Back

One with an alt or title tag. Function alt_textify($article, $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('alt')); if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } $img->parentNode->replaceChild($new_element, $img); } function hook_render_article($article) { return 2; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // Something Positive From 99b8f1493d9f2a363a83835d795293cab3a675c2 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Fix for when invisible bread has no.

New Pull Request