public function keywords($content) { if (iCMS::$config['other']['keyword_limit'] == 0) { return $content; } $keywords = iCache::get('iCMS/keywords'); if ($keywords) { foreach ($keywords as $i => $val) { if ($val['times'] > 0) { $search[] = $val['keyword']; $replace[] = '<a class="keyword" target="_blank" href="' . $val['url'] . '">' . $val['keyword'] . '</a>'; } } return iCMS::str_replace_limit($search, $replace, stripslashes($content), iCMS::$config['other']['keyword_limit']); } return $content; }