Labels Milestones
BackUsers 1e6cc98f41 Various updates, additions elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $vgcats_url_node = $url_xpath->query("//a[contains(@href, 'strip_id')]")->item(0); } $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } /* replace '//' or '/./' or '/foo/../' with '/' */ } function hook_render_article_cdm($article) { return $this->mangle_article($article); } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { $article['content.