3
1
Back

"www.phdunknown.com/index.php?id=") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { // Two Lumps elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog //also get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // And get blog elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { //noop elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath .

New Pull Request