function otf_commentsnippetword($option_key, $result, $ext) { $len = 100; $more = ''; $link = 'nolink'; if ($ext) { $s = explode(':', $ext); if ($s[0]) { $len = $s[0]; } if ($s[1]) { $more = $s[1]; } if ($s[2]) { $link = $s[2]; } } if ($link === 'link') { $url = otf_commenturl($option_key, $result, ''); $more = '<a href="' . $url . '">' . $more . '</a>'; } return oth_format_snippet($result->comment_content, $option_key, 'word', $len, $more); }
function otf_commentsnippetword($option_key, $result, $ext) { if (!$ext) { $ext = 100; } return oth_format_snippet($result->comment_content, $option_key, 'word', $ext); }