Labels Milestones
Back$host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); function hook_render_article_cdm($article) { } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { if ($title_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $alt_text); $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif ($alt_text == $title_text){ } elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); Added The Trenches; yet more code style tweaking elseif.
New Pull Request