} (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 */ class BlockJstabs implements BlockHandlerInterface { public function handle( $params, $content, Template $template, &$repeat): string { global $gBitSystem, $jsTabLinks; if( $repeat ){ $jsTabLinks = []; } else { extract( $params ); $tabId = !empty( $params['id'] ) ? $params['id'] : substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10); if( 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']; } $setupJs = '$(\'#'.$tabId.' a[href="#profile"]\').tab(\'show\');'; } else { $setupJs = "$('#$tabId a:first').tab('show');"; } $tabType = BitBase::getParameter( $params, 'tabtype', 'tab' ); $ret = '
'.$content.'
'; $ret .= ' '; $jsTabLinks = NULL; return $ret; } return ''; } public function isCacheable(): bool { return true; } }