3
1
Back

Plugin { catch (Exception $e) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); if ($alt_text && !$title_text){ Various updates, additions elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text //also get blog elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $doc = new DOMXPath($doc); return $xpath; } function hook_render_article_cdm($article) { } /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } /* absolute URL is ready! */ } function rel2abs($rel, $base) { if (GDORN_DEBUG && $article['debug']) { $base_url = $article['link']; From.

New Pull Request