3
1
Back

$this->get_xpath_dealie($article['link']); //and sometimes necessary for old fogeys like me to get what game it's about $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Something Positive Some comics supported elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = 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'] = $img_tag . $article['content']; } // Gunnerkrigg Court elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) .

New Pull Request