3
1
Back

{ Fix for when invisible bread has no bread Pain Train (to get alt tag) // Pain Train (to get alt tags textified. } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'png')]", $article); } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { // Cyanide & Happiness elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $article['content'] = $img; } $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't.

New Pull Request