Labels Milestones
Back2 d89db83df1 revised README.md to rev 2 beta edits README.md file again edits README.md file 4f6e9e0984 Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Drugs and Wires elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text Added The Trenches; yet more code style tweaking elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { // Penny Arcade elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_text) !== false){ } elseif (strpos($alt_text, $title_text) !== False) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } Clean up code formatting; added a few due to referer checks Added BCN, Something Positive Added BCN, Something Positive.