3
1
Back

{ $article['content'] .= "" . $msg . ""; } } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tags in feedburner (if there are quotes elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } Various updates, additions /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } function rel2abs($rel, $base) .

New Pull Request