3
1
Back

0.105308,0.02036 0.138593,0.1739229 -0.0037,0.1071966 0.233769,0.1127053 0.08159,-0.069628 0.230661,-1.4e-6 0.08159,0.069628 0.233769,-0.1127053 -0.0037,-0.1071967 0.138592,-0.1739233 0.105309,-0.02036 0.05767,-0.25303 -0.08609,-0.063984 -0.04954,-0.2168031 0.04976,-0.09502 -0.161839,-0.2028755 -0.103702,0.027396 -0.20418,-0.098309 z" d="m -12.693837,3.4536024 v 0.281728" d="m 2.9527508,8.8188983 v 0.07874" d="M 2.992121,8.8582675 H 2.913381" It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } } // Breaking Cat News $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $article['content'] = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", .

New Pull Request