'. __( 'Manage Error Messages', 'accessible_helper' ) .'';
echo '
';
$translations = fopen( ABSPATH .
'wp-content/plugins/accessible-helper/quail/quail/guidelines/translations/en.txt', 'r' );
if ( $translations ) {
while ( $translation = fgetcsv( $translations ) ) {
i f( count( $translation ) == 4 ) {
if ( $test_info = get_option( 'accessibility_test_'. $test ) ) {
$title = $test_info['title'];
}
else {
$title = $translation[0];
}
print '- '.
$translation[1].
'
';
}
}
}
echo '
';
}
else {
wp_enqueue_script( 'post' );
if ( user_can_richedit() ) {
wp_enqueue_script( 'common' );
wp_enqueue_script( 'jquery-color' );
wp_admin_css( 'thickbox' );
wp_print_scripts( 'post' );
wp_print_scripts( 'media-upload' );
wp_print_scripts( 'jquery' );
wp_print_scripts( 'jquery-ui-core' );
wp_print_scripts( 'jquery-ui-tabs' );
wp_print_scripts( 'tiny_mce' );
wp_print_scripts( 'editor' );
wp_print_scripts( 'editor-functions' );
add_thickbox( );
wp_tiny_mce( );
wp_admin_css( );
wp_enqueue_script( 'utils' );
do_action( "admin_print_styles-post-php" );
do_action( 'admin_print_styles' );
remove_all_filters( 'mce_external_plugins' );
}
add_thickbox( );
if ( $_POST['submit'] ) {
$test = array( 'title' => stripslashes( $_POST['title'] ),
'body' => stripslashes( $_POST['content'] ) );
update_option( 'accessibility_test_'. $_POST['testname'], $test );
}
else {
$test = accessible_helper_get_test( $_GET['test'] );
}
echo ''. __( 'Update Error Message', 'accessible_helper' ) .'
';
if ( $_POST['submit'] ) {
?>