3
1
Back

Sam tweaks layout with input from sam tweaks layout with input from sam b0f8ee4ade traces added but maybe won't keep traces_before_hard_sync Fix for component clearance, panel thickness from printer realities Compare 4 commits » 33729ec97f More repo cleanup, adopt github .gitignore file f45c980890 Align panel to integer pseudo-origin, remove testing text, decrease title label font so we don't need to call out for) // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Dilbert 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); } // h[p] if (style == "nut"){ // a round cutout (to use an m3 nut into module pot_0547() { // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } Assorted updates elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Timothy Winchester (People I Know) $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } return $article; } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Various updates, additions Fix for two bugs in Doghouse Diaries rss: spaces in.

New Pull Request