3
1
Back

Simpler than this foreach ($imgs as $img) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } // SBMC elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Poly In Pictures // Poly In Pictures } // SBMC elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE.

New Pull Request