Labels Milestones
BackHide From d48d677c9103ec90137a6830434841a576342e9a Mon Sep 17 00:00:00 2001 Subject: [PATCH] Added The Trenches; yet more code style tweaking Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(
- X 26mm, 1x Fixation 3mm, Fischer SK486-35.
- 164.745 127.005 (end 169.1 124.9625.
- GCT, 16P, top mounted, horizontal, 5A.
- 3.34543 11.3902 vertex 0.4 -3.09564 18.7502 facet normal.