3
1
Back

Wondermark (alt tag already present foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } $img->parentNode->replaceChild($new_element, $img); } function mangle_article($article) { if ($doc === NULL) { if (anchor_hole=="right" || anchor_hole=="both") { if (strpos($article["content"], "bonus panel!") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup) // Questionable Content (cleanup) // Questionable Content (cleanup) elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Assorted updates elseif (strpos($article["link"], "explosm.net/comics") .

New Pull Request