3
1
Back

"Alt: " . $img->getAttribute('title') . ""; } //noop elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // SatW elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog // XKCD (alt tags we don't need to call out for) $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $img; } } // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // not a comic, 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'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Wondermark (alt tag already present) // Wondermark (alt tag already present elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { .

New Pull Request