3
1
Back

$this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Chainsawsuit // Poorly Drawn Lines elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] .= "" . $entry->textContent . "

"; } } // Breaking Cat News elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // $xpath .

New Pull Request