3
1
Back

As indicator is not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Questionable Content (cleanup) elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Joy of Tech Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Eat That Toast bog-standard example elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game.

New Pull Request