3
1
Back

False){ } elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Berkeley Mews // elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Breaking Cat News $entries = $xpath->query($query); $result_html = ''; } /* absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'uploads') and contains(@src, 'png')]", $article); } // Joy of Tech elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Timothy Winchester (People I Know foreach ($imgs as $img) { From e8295830c4756e41fd19dc7b9fd77b84addfd373 Mon Sep.

New Pull Request