3
1
Back

= "Futura XBlk BT:style=Extra Black") { // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); } elseif (strpos($alt_text, $title_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif ($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 array(0.1, 'Yet more stupid-simple comic-fetching.', } function get_img_tags($xpath, $query, $article){ /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; } From 2cddc4d62d38c9e1b69839f92a19e7915eecbceb.

New Pull Request