3
1
Back

Positive elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Awkward Zombie elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Wondermark (alt tag already present elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, } //and.

New Pull Request