3
1
Back

'/comics/') and @class='comic_image']", $article); // Three Panel Soul * Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); Updated LICD, alter alt-textify to handle both title and alt tags foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
ID: " . $article['id']; } return $article; } if(ADD_IDS){ $article['content'] .= "
$orig_content
"; // Awkward Zombie elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content.

New Pull Request