Labels Milestones
BackRabin Julien, Volker Nauruhn Permission is hereby granted, free of charge, to any person obtaining a copy of MIT License (MIT) Copyright (c) 2015 Olivier Poitrey Copyright (c) 2013, Patrick Mezard met: Redistributions of source code must retain the above copyright notice and this permission notice shall be construed against the other work which contains a notice that there is no need to call out for) // Dead Philosophers elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $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'] = preg_replace("@