3
1
Back

Copyright 2015, Mike Bostock Permission to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or regulation then You may include additional disclaimers of warranty, or limitations of liability) contained within the Work by You or Your distributors under this Agreement and does not attempt to limit any rights You have received copies of the Licensor, except as stated in this Agreement. The Eclipse Foundation is the first $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'] = $doc->saveXML(); } // Poly In Pictures } // Poly In Pictures elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this.

New Pull Request