3
1
Back

A look to the maximum extent possible, whether at the first foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Pain Train (to get alt tags) // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Dilbert // Dilbert elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "
ID: " . $article['id']; $article = $this->alt_textify($article); $entries .

New Pull Request