3
1
Back

+ 12; row_1 = vertical_space/7; row_2 = row_1 + v_margin + 12; row_1 = bottom_row + v_margin + 12; row_2 = row_1 + v_margin + 12; //knob_radius top_row = height * rotate_vector_cos; [left_edge, rotate_vector_cos * rail_depth], // top right [left_edge + height * rotate_vector_cos, rotate_vector_sin * height + rotate_vector_sin * height], // top point? // Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // main cylinder cylinder(r1=knob_radius_bottom,r2=knob_radius_top,h=knob_height, $fn=knob_smoothness); smoothing(); } external_direction_indicator(); } } // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($vgcats_url); if (GDORN_DEBUG && $article['debug']) { } // $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= $entry->ownerDocument->saveXML($entry); Added BCN, Something Positive $alt_text = trim($entry->getAttribute('title')); $result_html .= "
Alt: " . $article['id']; } return $article; } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL is ready! */ return $scheme.'://'.$abs; return $scheme . '://' . $abs; if (preg_match("@.*(

New Pull Request