3
1
Back

= $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } // Dilbert elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // Achewood (alt tag) elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions Fix for when invisiblebread has no bread Fix for when invisiblebread has no bread $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // XKCD (alt tags we don't need to mess with this. Less than 3, use the first elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { // And get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } } // Two Lumps elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic.

New Pull Request