3
1
Back

Is far simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($doc === NULL) { foreach ($article['debugging'] as $msg) { if ($doc === NULL) { if ($img->getAttribute('title')) { $article['content'] .= "
" . $msg . ""; } } $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } function hook_render_article_cdm($article) { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Cyanide.

New Pull Request