3
1
Back

DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "

" . $entry->textContent . "

"; } } if(ADD_IDS){ $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $doc = new DOMXPath($doc); return $xpath; } function get_xpath_dealie($link) { } function get_content($link) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type ); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { function about() { return array( $html, $content_type); } function hook_render_article_cdm($article) { return 2; } } //Sites that provide images and just need alt tags if both exist elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Alice Grove bigger img Subject: [PATCH] Update README.md 2015-02-23 04:37:33 -08:00 It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could.

New Pull Request