3
1
Back

} foreach($imgs as $img){ $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } function hook_render_article($article) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog //also get blog elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // XKCD (alt tags we don't need to call out for Wondermark fix; added Oatmeal initial $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics.

New Pull Request