当前位置: 首页>>代码示例>>PHP>>正文


PHP mu_dropdown_languages函数代码示例

本文整理汇总了PHP中mu_dropdown_languages函数的典型用法代码示例。如果您正苦于以下问题:PHP mu_dropdown_languages函数的具体用法?PHP mu_dropdown_languages怎么用?PHP mu_dropdown_languages使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了mu_dropdown_languages函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: do_settings_fields

</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();
开发者ID:Telemedellin,项目名称:feriadelasfloresmedellin,代码行数:31,代码来源:options-general.php

示例2: get_site_option

            $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">
开发者ID:alx,项目名称:blogsfera,代码行数:31,代码来源:wpmu-options.php

示例3: edit_user_profile

    /**
     * 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 
    }
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:28,代码来源:class-Multilingual_Press_User_Backend_Language.php

示例4: printf

				<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' );
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:settings.php

示例5: signup_language_signup_form

/**
 * 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 
}
开发者ID:nayabbukhari,项目名称:circulocristiano,代码行数:36,代码来源:signup-language.php


注:本文中的mu_dropdown_languages函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。