3
1
Back

Lumps $orig_content = strip_tags($article['content']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text function get_content($link) { /** * Use this if you feel like it, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function init($host) { // draw a horizontal wall (across the panel // h = knob_height, $fn = top_rounding_faces square(top_rounding_radius + pad, top_rounding_radius + pad); rotate_extrude(convexity = 5, $fn = top_rounding_faces cylinder(h = stem_transition_height, r1 = stem_radius, $fn = smooth } module external_direction_indicator() { if(pointy_external_indicator == true module set_screw_hole() { if(set_screw == true } module arrow_indicator() { } else if (bottom_element=="switch") { } // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Invisible Bread (make the bread visible) // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Some comics supported VG Cats, via their tumblr rss feed since they don't have one of its.

New Pull Request