Labels Milestones
BackH[p] if (style == "nut"){ From 76dd29636a4f24671e78194743554d11ed4d24e9 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Assorted updates Assorted updates elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] .= "Bonus comic:" . $aftercomic . ""; $img_tag = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Dead Philosophers elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); // replace the