3
1
Back

V1.1 define("GDORN_DEBUG", False); class _comics extends Plugin { function api_version() { return $article; } $article = $this->alt_textify($article); if (ADD_IDS) { $new_element->appendChild($para_element); if ($alt_text && !$title_text){ Various updates, additions // PhD Unknown elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Some comics supported elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Timothy Winchester (People I Know foreach ($imgs as $img) { $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); } } // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions /* dirty absolute URL is ready!

New Pull Request