3
1
Back

$this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'comics')]", $article); } // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } 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'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { union() { cube([board_width, board_height, thickness]); cylinder(thickness+standoff_height, r=standoff_radius, $fn=360); cube([cutout_width, cutout_height, thickness+3]); cylinder(h=thickness+standoff_height+3, r=hole_radius, $fn=360); vertex 0 -7.40505 6.86814 facet normal 2.137222e-001 -3.645506e-001 9.063253e-001 vertex -4.386413e+000 3.439340e+000 2.494118e+001 facet normal -0.528246 -0.643673 0.553752 facet normal 0.630682 0.768461 0.108208 facet normal 0.302869 -0.92061 0.246468 vertex -5.40019 -4.13797 7.76535 facet normal 0.164793 -0.491615 0.855078 facet normal 2.783082e-02 9.996126e-01 -2.490456e-06 vertex -9.698398e+01 1.060829e+02 3.455000e+01 vertex -9.108902e+01 9.542220e+01 3.455000e+01 vertex -9.500859e+01 9.211231e+01 3.455000e+01 vertex -1.024702e+02 9.381525e+01 1.855000e+01 vertex -9.390516e+01 1.051966e+02 3.455000e+01 facet normal 0.84961 0.233262 0.473025 vertex 5.03912 4.29172 7.34278 facet normal -8.443595e-01 -1.798249e-03 -5.357740e-01 facet normal 9.127763e-01 4.084597e-01 -0.000000e+00 vertex -1.038646e+02 9.578044e+01 2.655000e+01 facet normal -0.14487 -0.0600084 0.987629 vertex 4.4 2.07823.

New Pull Request