3
1
Back

Again 605f29538db81c6c2eb02428332e653ea5ee7e41 edits README.md file 4f6e9e0984 Updated LICD, alter alt-textify to handle both title and alt tags foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; $img_tag = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Dead Philosophers elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Least I Could Do (wtf image size?) // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { if (preg_match("@.*( 87811 bytes sr1_full.png | Bin 12821 -> 0 bytes elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // $article['content'] = $img_tag . $article['content']; } // Breaking Cat News $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; // Awkward Zombie elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Dead Philosophers Dead Philosophers elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // text(string, size.

New Pull Request