</select></td> </tr> <?php do_settings_fields('general', 'default'); $languages = get_available_languages(); if (is_multisite() && !empty($languages)) { ?> <tr> <th width="33%" scope="row"><?php _e('Site Language'); ?> </th> <td> <select name="WPLANG" id="WPLANG"> <?php mu_dropdown_languages($languages, get_option('WPLANG')); ?> </select> </td> </tr> <?php } ?> </table> <?php do_settings_sections('general'); ?> <?php submit_button();
$lang_files[] = $lang_file; } } } $lang = get_site_option('WPLANG'); if (is_array($lang_files) && !empty($lang_files)) { ?> <tr valign="top"> <th width="33%"><?php _e('Default Language'); ?> </th> <td> <select name="WPLANG" id="WPLANG"> <?php mu_dropdown_languages($lang_files, get_site_option('WPLANG')); ?> </select> </td> </tr> <?php } // languages ?> </table> <h3><?php _e('Menus <em>(Enable or disable WP Backend Menus)</em>'); ?> </h3> <table class="form-table">
/** * Display Users Extra Fields * * @access public * @since 0.1 * @uses get_available_languages, mu_dropdown_languages, _e * @return void */ public function edit_user_profile($user) { $languages = get_available_languages(); $user_language = $this->get_user_language($user->data->ID); ?> <tr> <th><label for="mlp_user_language"><?php _e('Choose the language which you want to use in the backend', 'multilingualpress'); ?> </label></th> <td> <select name="mlp_user_language" id="mlp_user_language"> <?php mu_dropdown_languages($languages, $user_language); ?> </select> </td> </tr> <?php }
<td><?php printf( _x( '%s KB', 'File size in kilobytes' ), '<input name="fileupload_maxk" type="number" min="0" style="width: 100px" id="fileupload_maxk" value="' . esc_attr( get_site_option( 'fileupload_maxk', 300 ) ) . '" />' ); ?></td> </tr> </table> <?php $languages = get_available_languages(); if ( ! empty( $languages ) ) { $lang = get_site_option( 'WPLANG' ); ?> <h3><?php _e( 'Language Settings' ); ?></h3> <table class="form-table"> <tr> <th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th> <td> <select name="WPLANG" id="WPLANG"> <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?> </select> </td> </tr> </table> <?php } // languages ?> <h3><?php _e( 'Menu Settings' ); ?></h3> <table id="menu" class="form-table"> <tr> <th scope="row"><?php _e( 'Enable administration menus' ); ?></th> <td> <?php $menu_perms = get_site_option( 'menu_items' );
/** * Renders the selection box on signup form * * @since 1.0 */ function signup_language_signup_form($errors) { include_once ABSPATH . 'wp-admin/includes/ms.php'; $languages = get_available_languages(); ?> <div id="language-selection"> <p class="language-option"> <label for="language"><?php _e('Select a language', 'signup_language'); ?> </label> <?php if ($errmsg = $errors->get_error_message('language')) { ?> <p class="error"><?php echo $errmsg; ?> </p> <?php } ?> <select name="language" id="language"> <?php mu_dropdown_languages($languages, get_site_option('WPLANG')); ?> </select> </p> </div> <?php }