3
1
Back

(if there are quotes) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Drugs and Wires elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] .= "
Alt: " . $article['id']; } return $article; } function rel2abs($rel, $base) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } /* dirty absolute URL is ready! */ } function hook_render_article_cdm($article) { return $base.$rel; if ($rel[0] == '/') { $path = ''; function rel2abs($rel, $base) { $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' .

New Pull Request