3
1
Back

{ $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type); } function hook_render_article($article) { return $rel; } if ($alt_text && !$title_text){ Various updates, additions // PhD Unknown // Robot Hugs elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // And get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or.

New Pull Request