3
1
Back

"//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // Jesus & Mo elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $article['content'] = $img; } } // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } elseif (strpos($alt_text, $title_text) !== False) { if (strpos($article["content"], "bonus panel!") !== FALSE) { //noop $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Dead Philosophers elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Something Positive if.

New Pull Request