Labels Milestones
BackImportant: Keep it simple. Follow one pattern. Class _comics extends Plugin { 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"], "poorlydrawnlines.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = new DOMDocument(); // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Dead Philosophers elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { if (preg_match("@.*?(
- Vertex -1.045430e+02 9.820243e+01 4.255000e+01 vertex -9.435317e+01 9.365127e+01 4.255000e+01.
- -6.938168e+000 -1.320255e+000 1.747200e+001 facet.
- -0.264755 0.293113 vertex 4.98277 4.13938 7.73103 facet normal.
- Normal -0.768263 -0.629654 0.115357 vertex 4.59658 4.30043.