Labels Milestones
Back4579d541a87627c8f72d8a9f964497261ff44987 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Added BCN, Something Positive elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $img = $matches[1]; } } // Timothy Winchester (People I Know) $article['content'] .= "
" . $entry->textContent . "
"; } } foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } function rel2abs($rel, $base) { Various updates, additions Updated LICD, alter alt-textify to handle both title and alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMDocument(); // replace the