3
1
Back

... 8e97a73397 Dead Philosophers // Dead Philosophers Dead Philosophers elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Timothy Winchester (People I Know foreach ($imgs as $img) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $title_text); } function init($host) { * Inserts text captions from any image with an alt or title tag. Function alt_textify($article, $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE .

New Pull Request