3
1
Back

//doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] .= "
Alt: " . $article['id']; $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { // PhD Unknown elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users) 2015-03-02 17:38:43 -08:00 } $article = $this->alt_textify($article); if (ADD_IDS) { $article['content'] .= "
Alt: $alt_text
"; } } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just.

New Pull Request