3
1
Back

H 3.5674658" d="m 3.4251969,3.0511802 v 0.196852" d="m 3.5236169,5.9055122 h -0.19685" d="M -6.8897634,7.381896 V 7.5787465" d="m -6.7913384,7.4803212 h -0.19685" d="M 2.4803055,8.7598422 V 8.9566927" d="m 2.5787305,8.8582674 h -0.19685" d="M 2.4803055,8.7598422 V 8.9566927" d="m 2.5787305,8.8582674 h -0.19685" d="m 3,3.875 v 0.25" d="m 2.875,4 h 0.25" d="M 1.574803,5.905513 H 1.1811022" d="m 2.9527563,10.236223 v 0.393701" d="m 4.3307094,5.905513 h 0.393701" d="M 2.9527563,1.5748029 V 1.181102" d="m -0.44985651,6.0200689 -1.06879179,0 -0.5343958,-0.9256008 0.5343959,-0.9256008 1.06879179,0 0.53439582,0.9256009 z" d="m -12.693837,3.4536024 v 0.281728" d="m 2.9527508,8.8188983 v 0.07874" d="m -2.5196841,2.5590618 h -0.07874" d="m -4.7244126,1.1417373 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: * Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Two Lumps // Two Lumps // Breaking Cat News elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Joy of Tech // Joy of Tech Scenes From A Multiverse (to get alt tags if both exist elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Scenes From A Multiverse (to get alt tags foreach($imgs as $img){ $article['content'] .= "Error processing via _comics plugin!" . $e->getMessage(); } .

New Pull Request