3
1
Back

Preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = $matches[1]; // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] = $img; } $xpath = new DOMDocument(); elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); if ($bread) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; function rel2abs($rel, $base) { Various updates, additions Various updates, additions $alt_element = $doc->createElement("i", $title_text); } elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { //also append the blarg post because that's small, interesting, } //and sometimes necessary for old fogeys like me to get what game it's about $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article.

New Pull Request