From a19739c746b3e1ee611000baaaad60026b4e78a9 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 23 Oct 2005 14:40:24 +0000 Subject: merge recent changes into HEAD --- smarty_bit/block.jstabs.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'smarty_bit/block.jstabs.php') diff --git a/smarty_bit/block.jstabs.php b/smarty_bit/block.jstabs.php index 8124fc1..b34aa85 100644 --- a/smarty_bit/block.jstabs.php +++ b/smarty_bit/block.jstabs.php @@ -13,12 +13,21 @@ * Input: * Abstract: Used to enclose a set of tabs */ -function smarty_block_jstabs($params, $content, &$gBitSmarty) { +function smarty_block_jstabs( $params, $content, &$gBitSmarty ) { global $gBitSystem; - $ret = '
'.$content.'
'; - if( $gBitSystem->mPrefs['disable_jstabs'] != 'y' ) { - $ret .= ""; + extract( $params ); + + if( $gBitSystem->mPrefs['disable_jstabs'] == 'y' ) { + $ret .= '
'.$content.'
'; + } else { + $id = 1000000 * microtime(); + $ret .= '
'; + $ret .= ""; + $ret .= $content; + $ret .= ""; + $ret .= '
'; } + return $ret; } ?> -- cgit v1.3