Labels Milestones
BackForeach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags in feedburner (if there are quotes) // Doghouse Diaries, which has broken alt tags textified. Elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // And get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $article['content'] .= "
Bonus comic:
" . $aftercomic . "