} (staring with 0) to select a given tab * or you can use the url to do so: page.php?jstab= * Abstract: Used to enclose a set of tabs */ function smarty_block_jstabs( $pParams, $pContent, &$gBitSmarty ) { global $gBitSystem; extract( $pParams ); $alwaysTab = ( isset( $alwaysTab )) ? ( boolean )$alwaysTab : FALSE; // Work out if we want to insert tabs at all on this page // This is necessary since we insert tabs dynamically using services preg_match_all( '#
#', $pContent, $tabs ); if( !empty( $tabs[0] ) && count( $tabs[0] ) <= 1 && $alwaysTab === FALSE ) { $pContent = preg_replace( "#]*tab.*?#", '', $pContent ); return $pContent; } // When tabs are disabled, we simply wrap the tabs with the appropriate div for styling if( $gBitSystem->isFeatureActive( 'site_disable_jstabs' ) ) { $ret = '
'; } else { // @TODO review this conditional or comment its purpose, $tab never seems to be set if( isset( $tab ) || isset( $_REQUEST['jstab'] ) ) { // make sure we aren't passed any evil shit if( !isset( $tab ) && isset( $_REQUEST['jstab'] ) && preg_match( "!^\d+$!", $_REQUEST['jstab'] ) ) { $tab = $_REQUEST['jstab']; } $ret = '
'; $ret .= ""; $ret .= $pContent; $ret .= ""; $ret .= '
'; } else { $ret = '
/**/"; $ret .= '
'; } } return $ret; } ?>