3
1
Back

$this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); // Joy of Tech elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Something Positive elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] = $img; if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d.

New Pull Request