summaryrefslogtreecommitdiff
path: root/smartyplugins/function.spellchecker.php
blob: 52f730c407bd336ea4f265cbe18af7c14f0e0b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
namespace Bitweaver\Plugins;

/**
 * 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"';
	}
}