diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-18 09:05:53 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-18 09:05:53 +0100 |
| commit | 2aaa48aa8003645c5087f8fd966faa642ec5b8b9 (patch) | |
| tree | 233cee51ac78dc1fe7c47f82b9c9f5cc9cb4794e /smartyplugins | |
| parent | d729e91a69c82eeeadefe0f8d3a1139ec5492e63 (diff) | |
| download | themes-2aaa48aa8003645c5087f8fd966faa642ec5b8b9.tar.gz themes-2aaa48aa8003645c5087f8fd966faa642ec5b8b9.tar.bz2 themes-2aaa48aa8003645c5087f8fd966faa642ec5b8b9.zip | |
Remove legacy code
Diffstat (limited to 'smartyplugins')
| -rwxr-xr-x | smartyplugins/function.jscalendar.php | 63 | ||||
| -rwxr-xr-x | smartyplugins/function.spellchecker.php | 23 |
2 files changed, 0 insertions, 86 deletions
diff --git a/smartyplugins/function.jscalendar.php b/smartyplugins/function.jscalendar.php deleted file mode 100755 index 64631cb..0000000 --- a/smartyplugins/function.jscalendar.php +++ /dev/null @@ -1,63 +0,0 @@ -<?php -namespace Bitweaver\Plugins; - -use Bitweaver\BitDate; - -/** - * Smarty plugin - * @package Smarty - * @subpackage plugins - */ - -/** - * Smarty {jscalendar} plugin - * - * Type: function<br> - * Name: jscalendar<br> - * Purpose: Prints the dropdowns for date selection. - * - * ChangeLog:<br> - * - 1.0 initial release - * @version 1.0 - * @author Stephan Borg - * @param array - * @param array Smarty - * @return string -*/ -function smarty_function_jscalendar($params, &$gBitSmarty) { - global $gBitSystem; - if( $gBitSystem->isFeatureActive( 'site_use_jscalendar' ) ) { - - // Default values - $inputField = ''; // ID of the input field - $fieldFormat = '%s'; // format of the input field - $electric = 'false'; // ID of the span where the date is to be shown - $time = time(); // override the currently set date - $onUpdate = ''; // execute the following javascript function when a link is pressed - $daFormat = $gBitSystem->getConfig( 'site_short_date_format' ).' '.$gBitSystem->getConfig( 'site_short_time_format' ); // format of output date - $displayArea = ''; - - // override default values - extract( $params ); - - $time = $gBitSystem->mServerTimestamp->getDisplayDateFromUTC( $time ); - $time = BitDate::strftime( "%m/%d/%Y %H:%M", $time ); - - $html_result = $readonly ? $time - : "<script type=\"text/javascript\">//<![CDATA[ - Calendar.setup({ - date : \"$time\", - inputField : \"$inputField\", - ifFormat : \"$fieldFormat\", - daFormat : \"$daFormat\", - displayArea : \"$displayArea\", - electric : $electric, - onUpdate : $onUpdate - }); - //]]></script>"; - - return $html_result; - } - return ''; - -} diff --git a/smartyplugins/function.spellchecker.php b/smartyplugins/function.spellchecker.php deleted file mode 100755 index 52f730c..0000000 --- a/smartyplugins/function.spellchecker.php +++ /dev/null @@ -1,23 +0,0 @@ -<?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"'; - } -} |
