3
1
Back

[Stem (optional)] */ // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); function hook_render_article_cdm($article) { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "
ID: " . $article['id']; } return $article; } function hook_render_article_cdm($article) { } //Sites that provide images and just need alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // PhD Unknown // Robot Hugs elseif (strpos($article['link'], 'www.robot-hugs.com/') !== 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); } // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); elseif.

New Pull Request