Labels Milestones
Back$this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Timothy Winchester (People I Know) $article['content'] .= "
" . $entry->textContent . "
"; } } // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] .= "" . $msg . ""; } } return $article; } Some comics supported elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Awkward Zombie $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "
Bonus comic:
" . $aftercomic . "