3
1
Back

$this); } Some comics supported elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { if ($img->getAttribute('title')) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } // SatW elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } // Three Panel Soul elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); function mangle_article($article) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { main MK_VCO/Panels/FireballSpell_Large_bw.png.svg 58 lines Feed of " /VCA"

New Pull Request