3
1
Back

Rel="nofollow">969311f00cbb6d6ece9a25b5fb1d4e2884e468c0 Assorted updates elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // And get blog entry $entries = $xpath->query($query); $result_html = ''; } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function hook_render_article($article) { try { return $base.$rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "

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

"; } } return $article; } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($img->getAttribute('title')) { // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; } .

New Pull Request