3
1
Back

Https://gitea.circuitlocution.com/synth_mages/MK_VCO/pulls/1 51a08380a9 Added The Trenches; yet more code style tweaking 2015-03-27 02:51:25 -07:00 Subject: [PATCH] Clean up code formatting; added a few comics; standardized appending alt/title text elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($title_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return array( $html, $content_type); } function rel2abs($rel, $base) { function about() { return $base.$rel; } extract(parse_url($base)); $path = ''; foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // slightly complicated; the link is to tumblr, but there's a url in.

New Pull Request