3
1
Back

Oatmeal $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "" . $msg . ""; } } // Joy of Tech elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); Assorted updates elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $article['content'] .= "Bonus comic:" . $aftercomic . ""; $img_tag = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Eat That Toast elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Cyanide & Happiness elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Something Positive Added BCN, Something Positive elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse (to get alt tags if.

New Pull Request