' . __('Configure', 'sitepress') . ''; } return $links; } if(defined('ICL_DEBUG_MODE') && ICL_DEBUG_MODE && !function_exists('icl_error_handler')){ ini_set('error_reporting',E_ALL & ~E_NOTICE & ~E_DEPRECATED); ini_set('display_errors', 'on'); function icl_error_handler($errno, $errstr, $errfile, $errline){ global $icl_errors_stack; $err = ''.$errstr.' ('. $errno . ')
'; $err .= 'File: '.$errfile.'
'; $err .= 'Line: '.$errline.'
'; $err .= '
'; $icl_errors_stack[] = $err; return true; } if(defined('WP_ADMIN')){ add_action('admin_footer', 'icl_display_errors_stack'); }else{ add_action('wp_footer', 'icl_display_errors_stack'); } function icl_display_errors_stack($onactivate = false){ global $icl_errors_stack, $EZSQL_ERROR; if(isset($icl_errors_stack) || $EZSQL_ERROR){ echo '
'; if(!$onactivate){ echo '[close]
'; } foreach($icl_errors_stack as $ies){ echo $ies; } if(isset($EZSQL_ERROR)){ foreach($EZSQL_ERROR as $k=>$v){ echo $v['error_str'] . '
'; echo 'Query: ' . $v['query']; echo '
'; } } echo '
'; if($onactivate){ $errc = count($EZSQL_ERROR)+count($icl_errors_stack); $frameheight = ( $errc * 70 < 550)?$errc * 70:550; echo ''; die(); } } } set_error_handler("icl_error_handler",E_ALL & ~E_NOTICE & ~E_DEPRECATED); } function icl_js_escape($str){ $str = esc_js($str); $str = htmlspecialchars_decode($str); return $str; } ?>