3
1
Back

If(ADD_IDS){ $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { foreach ($article['debug'] as $msg) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // slightly complicated; the link is to tumblr, but there's a url in the post that we want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= $aftercomic; } } // Joy of Tech } // Scenes From A Multiverse (to get alt tags textified. } //Sites that provide images and just need alt tags in feedburner (if there are two overlapping.

New Pull Request