3
1
Back

(variants, especially in the post that we want $doc = new DOMXpath($doc); elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $img; } $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "
$orig_content
"; } // Girls with Slingshots // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] .= "
Alt: $alt_text
"; } } } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags elseif.

New Pull Request