Labels Milestones
Back&& $article['debug']) { } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { foreach ($article['debugging'] as $msg) { if ($doc === NULL) { foreach ($article['debugging'] as $msg) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } //noop } // Dilbert elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $matches[1]; elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // replace the