3
1
Back

"www.pilotside.us/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } //Sites that provide images and just need alt tags textified. $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } } // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } Some comics supported elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $doc = new DOMXPath($doc); return $xpath; } function rel2abs($rel, $base) { Fix for when invisiblebread has no bread Pain Train alt tag, Alice Grove (get bigger image elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } if(ADD_IDS){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $article['content'] = $doc->saveXML(); } // Dilbert elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { .

New Pull Request