3
1
Back

= stem_faces); // Widening part at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } 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'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } /* dirty absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // only keep everything starting at the first if (preg_match("@.*(getAttribute('title') . ""; } if(preg_match("@.*(get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'uploads') and contains(@src, 'uploads') and contains(@src, 'png')]", $article); } // Scenes From A Multiverse (to get alt tags textified. $article['content'] .= "

" . $entry->textContent . "

"; } } 3D Printing/Pot_Knobs/10mm_potentiometer_tool.stl Executable.

New Pull Request