3
1
Back

} $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "
Alt: " . $article['id']; } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present) elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } } // Scenes From A Multiverse (to get alt tags textified. If(ADD_IDS){ $article = $this->alt_textify($article); if (ADD_IDS) { $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] .

New Pull Request