📄 function.mtcommentbody.php
字号:
<?phpfunction smarty_function_MTCommentBody($args, &$ctx) { $comment = $ctx->stash('comment'); $text = $comment['comment_text']; $blog = $ctx->stash('blog'); if (!$blog['blog_allow_comment_html']) { $text = strip_tags($text); if ($blog['blog_autolink_urls']) { $text = preg_replace('!(https?://\S+)!', '<a href="$1">$1</a>', $text); } } $cb = $blog['blog_convert_paras_comments']; if ($cb == '1' || $cb == '__default__') { $cb = 'convert_breaks'; } $ctx->load_modifier($cb); $mod = 'smarty_modifier_'.$cb; $text = $mod($text); return $text;}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -