Labels Milestones
Back$doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@
Error processing via _comics plugin!
" . $e->getMessage(); } } // Questionable Content (cleanup) elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'questionablecontent') !== 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, "//p[@id='comic_body']//img", $article); $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; // only keep everything starting at the first