diff options
Diffstat (limited to 'smartyplugins/function.spellchecker.php')
| -rw-r--r-- | smartyplugins/function.spellchecker.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/smartyplugins/function.spellchecker.php b/smartyplugins/function.spellchecker.php new file mode 100644 index 0000000..92dbb0d --- /dev/null +++ b/smartyplugins/function.spellchecker.php @@ -0,0 +1,22 @@ +<?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + +/** + * Smarty {spellchecker} function plugin + * + * Type: function + * Name: spellchecker + */ +function smarty_function_spellchecker( $params, &$gBitSmarty ) { + global $gBitSystem; + $rows = !empty($params['rows']) ? $params['rows'] : '20'; + + if( $gBitSystem->isPackageActive( 'bnspell' ) ) { + echo 'title="spellcheck_icons" accesskey="'.BNSPELL_PKG_URL.'spell_checker.php"'; + } +} +?> |
