Labels Milestones
BackAlready have working RSS feeds with comics embedded. I'm also working to standardize the display of alt/title tags (making the Android client easier to use) and adjust the placement // these are some setup variables... You probably won't need to call out for foreach ($imgs as $img) { if ($img->getAttribute('title')) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Two Lumps elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Girls with Slingshots elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Dead Philosophers elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { //noop elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] = preg_replace("@
- 0.11511 -7.7227e-05 0.993353 vertex.
- Normal -0.532832 0.843291 -0.0703581 facet.
- -2.903246e-04 3.147485e-01 vertex -9.046766e+01 1.008749e+02.
- Length 6.5mm, width 1.8mm solder.