Labels Milestones
BackFrom 81f5cdc2cd0ea2f7c6a63827426db16f9b2cd3fd 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"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // Poly In Pictures } // Something Positive elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Pain Train alt tag, Alice Grove bigger img elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] .= "
$orig_content"; } // Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] = $doc->saveXML(); } Some comics supported elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Invisible Bread (make the bread visible) // Invisible Bread (make the bread visible if (preg_match("@.*(