3
1
Back

Adjust parameters for. 1.0 2012-03-?? Initial release. */ // // Physical attributes, basic // // this is just going to be fixed elsewhere elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Doghouse Diaries, which has broken alt tags textified. Elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // SBMC elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= $aftercomic; } } } // Chainsawsuit // Chainsawsuit elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // $img_tag = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog //also get the blog //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries.

New Pull Request