$val ) { if( !in_array( $param, $optionHash ) ) { if( $param == 'title' ) { $guts .= ' '.$param.'="'.KernelTools::tra( 'This will open a new window: ' ).$title.'"'; }elseif( $param == 'href' && $gBitThemes->isJavascriptEnabled()){ $guts .= ' '.$param.'="javascript:void(0)"'; } else { $guts .= ' '.$param.'="'.$val.'"'; } } } if( !empty( $pParams['ibiticon'] ) ) { // $gBitSmarty->loadPlugin( 'smarty_function_biticon' ); $tmp = explode( '/', $pParams['ibiticon'] ); $ibiticon = [ 'ipackage' => $tmp[0], 'iname' => $tmp[1], 'iexplain' => $title, ]; if( !empty( $pParams['iforce'] ) ) { $ibiticon['iforce'] = $pParams['iforce']; } $img = smarty_function_biticon( $ibiticon ); } if( !empty( $pParams['img'] )) { $img_size = NULL; $file = str_replace( '//', '/', BIT_BASE_PATH.( str_replace( BIT_ROOT_URI, '', urldecode( $pParams['img'] )))); if( is_file( $file )) { if( $imgSizeHash = @getimagesize( $file )) { $img_size = $imgSizeHash[3]; } } $img = ''.$title.''; } $js = !empty( $pParams['type'] ) && $pParams['type'] == 'fullscreen' ? 'BitBase.popUpWin( \''.$pParams['href'].'\',\'fullScreen\');' : ( 'BitBase.popUpWin( \''.$pParams['href'].'\',\'standard\',' . ( !empty( $pParams['width'] ) ? $pParams['width'] : 600 ) . ',' . ( !empty( $pParams['height'] ) ? $pParams['height'] : 400 ) . ');' ); // deprecated slated for removal - onkeypress causes focus problems with browsers - if this is an ada issue get in touch -wjames5. // $guts .= ' onkeypress="'.$js.'" onclick="'.$js.'return false;"'; $guts .= ' onclick="'.$js.'return false;"'; if( !empty( $pParams['gutsonly'] ) ) { return $guts; } return ''.( !empty( $img ) ? $img : $text ).''; }