3
1
Back

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); $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Wondermark (alt tag already present foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } // Wondermark (alt tag already present elseif (strpos($article['content.

New Pull Request