本文整理汇总了PHP中form_option函数的典型用法代码示例。如果您正苦于以下问题:PHP form_option函数的具体用法?PHP form_option怎么用?PHP form_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_option函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: constantTest
protected function constantTest()
{
$post_id_1 = 0;
$time = microtime(true);
for ($i = 0; $i < $this->runNumber; $i++) {
form_option("");
}
$time = microtime(true) - $time;
$this->enterResult($time);
}
开发者ID:AkimBolushbek,项目名称:wordpress-soc-2007,代码行数:10,代码来源:Miscellaneous.php
示例2: nskw_app_id_field
function nskw_app_id_field()
{
?>
<input name="nskw_ogp_app_id" id="nskw_ogp_app_id" type="text" value="<?php
form_option('nskw_ogp_app_id');
?>
" /><br />
<?php
_e('Input your facebook App ID. Your App ID can be found <a href="https://www.facebook.com/help/community/question/?id=372967692803654">here.</a>', 'ogp-generator');
}
开发者ID:ShinichiNishikawa,项目名称:OGP-Generator,代码行数:10,代码来源:nskw-ogp-generator.php
示例3: _e
<td>
<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
<input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" size="6" />
<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
<input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" size="6" /><br />
<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Medium size') ?></th>
<td>
<label for="medium_size_w"><?php _e('Max Width'); ?></label>
<input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" />
<label for="medium_size_h"><?php _e('Max Height'); ?></label>
<input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
</td>
</tr>
</table>
<table class="form-table">
<tr>
<th scope="row" class="th-full">
<label for="use_linksupdate">
<input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_option('use_linksupdate')); ?> />
<?php _e('Track Links’ Update Times') ?>
</label>
</th>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:options-misc.php
示例4: _e
<p><?php
_e('Note: If you use the <code><!--more--></code> feature, it will cut off posts in RSS feeds.');
?>
</p>
</td>
</tr>
</table>
</fieldset>
<table width="100%" cellspacing="2" cellpadding="5" class="optiontable editform">
<tr valign="top">
<th width="33%" scope="row"><?php
_e('Encoding for pages and feeds:');
?>
</th>
<td><input name="blog_charset" type="text" id="blog_charset" value="<?php
form_option('blog_charset');
?>
" size="20" class="code" /><br />
<?php
_e('The character encoding you write your blog in (UTF-8 is <a href="http://developer.apple.com/documentation/macos8/TextIntlSvcs/TextEncodingConversionManager/TEC1.5/TEC.b0.html">recommended</a>)');
?>
</td>
</tr>
</table>
<p>
<label><input type="checkbox" name="gzipcompression" value="1" <?php
checked('1', get_option('gzipcompression'));
?>
/>
<?php
_e('WordPress should compress articles (gzip) if browsers ask for them');
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:options-reading.php
示例5: _e
?>
</span></legend>
<label for="large_size_w"><?php
_e('Max Width');
?>
</label>
<input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php
form_option('large_size_w');
?>
" class="small-text" />
<label for="large_size_h"><?php
_e('Max Height');
?>
</label>
<input name="large_size_h" type="number" step="1" min="0" id="large_size_h" value="<?php
form_option('large_size_h');
?>
" class="small-text" />
</fieldset></td>
</tr>
<?php
do_settings_fields('media', 'default');
?>
</table>
<?php
/**
* @global array $wp_settings
*/
开发者ID:sonvq,项目名称:passioninvestment,代码行数:31,代码来源:options-media.php
示例6: wp_dropdown_roles
<select name="default_role" id="default_role"><?php
wp_dropdown_roles(get_option('default_role'));
?>
</select>
</td>
</tr>
<?php
} else {
?>
<tr>
<th scope="row"><label for="new_admin_email"><?php
_e('E-mail Address');
?>
</label></th>
<td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php
form_option('admin_email');
?>
" class="regular-text ltr" />
<p class="description"><?php
_e('This address is used for admin purposes. If you change this we will send you an e-mail at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>');
?>
</p>
<?php
$new_admin_email = get_option('new_admin_email');
if ($new_admin_email && $new_admin_email != get_option('admin_email')) {
?>
<div class="updated inline">
<p><?php
printf(__('There is a pending change of the admin e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html($new_admin_email), esc_url(admin_url('options.php?dismiss=new_admin_email')));
?>
</p>
开发者ID:Telemedellin,项目名称:feriadelasfloresmedellin,代码行数:31,代码来源:options-general.php
示例7: _e
</tr>
<tr valign="top">
<th scope="row"><?php _e('Default post by mail category:') ?></th>
<td><select name="default_email_category" id="default_email_category">
<?php
//Alreay have $categories from default_category
foreach ($categories as $category) :
if ($category->cat_ID == get_settings('default_email_category')) $selected = " selected='selected'";
else $selected = '';
echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
endforeach;
?>
</select></td>
</tr>
</table>
</fieldset>
<fieldset class="options">
<legend><?php _e('Update Services') ?></legend>
<p><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service URIs with line breaks.') ?></p>
<textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php form_option('ping_sites'); ?></textarea>
</fieldset>
<p class="submit">
<input type="submit" name="Submit" value="<?php _e('Update Options') ?> »" />
</p>
</form>
</div>
<?php include('./admin-footer.php') ?>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:options-writing.php
示例8: _e
?>
</textarea>
</p>
</fieldset>
<fieldset class="options">
<legend><?php
_e('Comment Blacklist');
?>
</legend>
<p><?php
_e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so "press" will match "WordPress".');
?>
</p>
<p>
<textarea name="blacklist_keys" cols="60" rows="4" id="blacklist_keys" style="width: 98%; font-size: 12px;" class="code"><?php
form_option('blacklist_keys');
?>
</textarea>
</p>
</fieldset>
<p class="submit">
<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="default_pingback_flag,default_ping_status,default_comment_status,comments_notify,moderation_notify,comment_moderation,require_name_email,comment_whitelist,comment_max_links,moderation_keys,blacklist_keys" />
<input type="submit" name="Submit" value="<?php
_e('Update Options »');
?>
" />
</p>
</form>
</div>
开发者ID:helmonaut,项目名称:owb-mirror,代码行数:30,代码来源:options-discussion.php
示例9: _e
<table class="form-table">
<tr>
<th scope="row"><label for="mailserver_url"><?php _e('Mail Server') ?></label></th>
<td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" class="regular-text code" />
<label for="mailserver_port"><?php _e('Port') ?></label>
<input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" class="small-text" />
</td>
</tr>
<tr>
<th scope="row"><label for="mailserver_login"><?php _e('Login Name') ?></label></th>
<td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" class="regular-text ltr" /></td>
</tr>
<tr>
<th scope="row"><label for="mailserver_pass"><?php _e('Password') ?></label></th>
<td>
<input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" class="regular-text ltr" />
</td>
</tr>
<tr>
<th scope="row"><label for="default_email_category"><?php _e('Default Mail Category') ?></label></th>
<td>
<?php
wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_category', 'orderby' => 'name', 'selected' => get_option('default_email_category'), 'hierarchical' => true));
?>
</td>
</tr>
<?php do_settings_fields('writing', 'post_via_email'); ?>
</table>
<?php } ?>
<?php
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:options-writing.php
示例10: _e
</th>
<td>
<label for="embed_size_w"><?php
_e('Width');
?>
</label>
<input name="embed_size_w" type="number" step="1" min="0" id="embed_size_w" value="<?php
form_option('embed_size_w');
?>
" class="small-text" />
<label for="embed_size_h"><?php
_e('Height');
?>
</label>
<input name="embed_size_h" type="number" step="1" min="0" id="embed_size_h" value="<?php
form_option('embed_size_h');
?>
" class="small-text" />
<?php
if (!empty($content_width)) {
echo '<p class="description">' . __('If the width value is left blank, embeds will default to the max width of your theme.') . '</p>';
}
?>
</td>
</tr>
<?php
do_settings_fields('media', 'embeds');
?>
</table>
开发者ID:batruji,项目名称:metareading,代码行数:30,代码来源:options-media.php
示例11: settings_fields
?>
</h2>
<form method="post" action="options.php">
<?php
settings_fields('writing');
?>
<table class="form-table">
<tr valign="top">
<th scope="row"><label for="default_post_edit_rows"> <?php
_e('Size of the post box');
?>
</label></th>
<td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php
form_option('default_post_edit_rows');
?>
" class="small-text" />
<?php
_e('lines');
?>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php
_e('Formatting');
?>
</th>
<td><fieldset><legend class="screen-reader-text"><span><?php
_e('Formatting');
?>
开发者ID:jinpingv,项目名称:website_wrapper,代码行数:31,代码来源:options-writing.php
示例12: _e
<th scope="row"><?php _e('Medium size') ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size'); ?></span></legend>
<label for="medium_size_w"><?php _e('Max Width'); ?></label>
<input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
<label for="medium_size_h"><?php _e('Max Height'); ?></label>
<input name="medium_size_h" type="number" step="1" min="0" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
</fieldset></td>
</tr>
<tr>
<th scope="row"><?php _e('Large size') ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size'); ?></span></legend>
<label for="large_size_w"><?php _e('Max Width'); ?></label>
<input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
<label for="large_size_h"><?php _e('Max Height'); ?></label>
<input name="large_size_h" type="number" step="1" min="0" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
</fieldset></td>
</tr>
<?php do_settings_fields('media', 'default'); ?>
</table>
<?php
/**
* @global array $wp_settings
*/
if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : ?>
<h3 class="title"><?php _e('Embeds') ?></h3>
<table class="form-table">
<?php do_settings_fields( 'media', 'embeds' ); ?>
</table>
开发者ID:ShankarVellal,项目名称:WordPress,代码行数:31,代码来源:options-media.php
示例13: _e
<th scope="row"><?php _e('Membership') ?></th>
<td> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register">
<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> />
<?php _e('Anyone can register') ?></label>
</fieldset></td>
</tr>
<tr>
<th scope="row"><label for="default_role"><?php _e('New User Default Role') ?></label></th>
<td>
<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select>
</td>
</tr>
<?php } else { ?>
<tr>
<th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>
<td><input name="new_admin_email" type="email" id="new_admin_email" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" />
<p class="description"><?php _e('This address is used for admin purposes. If you change this we will send you an e-mail at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>') ?></p>
<?php
$new_admin_email = get_option( 'new_admin_email' );
if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?>
<div class="updated inline">
<p><?php printf( __('There is a pending change of the admin e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html( $new_admin_email ), esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?></p>
</div>
<?php endif; ?>
</td>
</tr>
<?php } ?>
<tr>
<?php
$current_offset = get_option('gmt_offset');
$tzstring = get_option('timezone_string');
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:options-general.php
示例14: field_renderer
function field_renderer($args)
{
$field_name = $args['field_name'];
$field_title = @$args['title'] ?: $field_name;
$field_type = @$args['type'] ?: 'text';
$field_class = @$args['class'] ?: 'regular-text ltr';
$field_description = @$args['description'] ?: '';
if ($field_type == 'textarea') {
?>
<textarea class="<?php
echo $field_class;
?>
"
type="<?php
echo $field_type;
?>
"
id="<?php
echo $field_name;
?>
"
name="<?php
echo $field_name;
?>
"
rows="8"
aria-describedby="<?php
echo $field_name;
?>
-description"
<?php
echo @$args['readonly'] ? 'readonly' : '';
?>
><?php
form_option($field_name);
?>
</textarea>
<?php
} elseif ($field_type == 'text') {
?>
<input class="<?php
echo $field_class;
?>
"
type="<?php
echo $field_type;
?>
"
id="<?php
echo $field_name;
?>
"
value="<?php
form_option($field_name);
?>
"
name="<?php
echo $field_name;
?>
"
aria-describedby="<?php
echo $field_name;
?>
-description"
<?php
echo @$args['readonly'] ? 'readonly' : '';
?>
/>
<?php
}
?>
<p class="description"
id="<?php
echo $field_name;
?>
-description"><?php
echo $field_description;
?>
</p>
<?php
}
开发者ID:EaseCloud,项目名称:WP-Hotlinking,代码行数:81,代码来源:index.php
示例15: alfred_admin_setting_callback_
/**
* Production setting field
*
* @since Alfred 0.1
*
* @uses form_option() To output the option value
*/
function alfred_admin_setting_callback_() {
?>
<input name="alfred_" type="text" id="alfred_title" value="<?php form_option( 'alfred_' ); ?>" class="regular-text" />
<label for="alfred_"><?php _e( '', 'alfred' ); ?></label>
<?php
}
开发者ID:redfourzero,项目名称:Alfred,代码行数:13,代码来源:settings.php
示例16: _e
</tr>
</table>
</fieldset>
<fieldset class="options">
<legend><?php
_e('Update Services');
?>
</legend>
<p><?php
_e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service URIs with line breaks.');
?>
</p>
<textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php
form_option('ping_sites');
?>
</textarea>
</fieldset>
<p class="submit">
<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="default_post_edit_rows,use_smilies,rich_editing,ping_sites,mailserver_url,mailserver_port,mailserver_login,mailserver_pass,default_category,default_email_category,use_balanceTags" />
<input type="submit" name="Submit" value="<?php
_e('Update Options');
?>
»" />
</p>
</form>
</div>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:30,代码来源:options-writing.php
示例17: form_option
<input id="k2-entry-meta-1" name="k2[entrymeta1]" type="text" value="<?php
form_option('unwakeable_entrymeta1');
?>
" />
</td>
</tr>
<tr>
<th scope="row">
<label for="k2-entry-meta-2"><?php
_e('Bottom Meta:', 'unwakeable');
?>
</label>
</th>
<td>
<input id="k2-entry-meta-2" name="k2[entrymeta2]" type="text" value="<?php
form_option('unwakeable_entrymeta2');
?>
" />
</td>
</tr>
</tbody>
</table>
<div id="meta-preview" class="postbox">
<h3 class="hndle"><span><?php
_e('Preview', 'unwakeable');
?>
</span></h3>
<?php
query_posts('showposts=1&what_to_show=posts&order=desc');
开发者ID:r15ch13,项目名称:unwakeable,代码行数:31,代码来源:options.php
示例18: wpua_options_page
//.........这里部分代码省略.........
</fieldset>
<fieldset>
<label for="wp_user_avatar_edit_avatar">
<input name="wp_user_avatar_edit_avatar" type="checkbox" id="wp_user_avatar_edit_avatar" value="1" <?php
checked($wpua_edit_avatar, 1);
?>
/>
<?php
_e('Allow users to edit avatars', 'wp-user-avatar');
?>
</label>
</fieldset>
<fieldset>
<label for="wp_user_avatar_resize_upload">
<input name="wp_user_avatar_resize_upload" type="checkbox" id="wp_user_avatar_resize_upload" value="1" <?php
checked($wpua_resize_upload, 1);
?>
/>
<?php
_e('Resize avatars on upload', 'wp-user-avatar');
?>
</label>
</fieldset>
<fieldset id="wpua-resize-sizes"<?php
echo $hide_resize;
?>
<br />
<br />
<label for="wp_user_avatar_resize_w"><?php
_e('Width');
?>
</label>
<input name="wp_user_avatar_resize_w" type="number" step="1" min="0" id="wp_user_avatar_resize_w" value="<?php
form_option('wp_user_avatar_resize_w');
?>
" class="small-text" />
<label for="wp_user_avatar_resize_h"><?php
_e('Height');
?>
</label>
<input name="wp_user_avatar_resize_h" type="number" step="1" min="0" id="wp_user_avatar_resize_h" value="<?php
form_option('wp_user_avatar_resize_h');
?>
" class="small-text" />
<br />
<input name="wp_user_avatar_resize_crop" type="checkbox" id="wp_user_avatar_resize_crop" value="1" <?php
checked('1', $wpua_resize_crop);
?>
/>
<label for="wp_user_avatar_resize_crop"><?php
_e('Crop avatars to exact dimensions', 'wp-user-avatar');
?>
</label>
</fieldset>
</td>
</tr>
</table>
</div>
<h3 class="title"><?php
_e('Avatars');
?>
</h3>
<p><?php
_e('An avatar is an image that follows you from weblog to weblog appearing beside your name when you comment on avatar enabled sites. Here you can enable the display of avatars for people who comment on your site.');
?>
</p>
开发者ID:par-orillonsoft,项目名称:elearning-wordpress,代码行数:67,代码来源:wp-user-avatar.php
示例19: _e
" /><br />
<?php
_e('Output:');
?>
<strong><?php
echo mysql2date(get_settings('date_format'), current_time('mysql'));
?>
</strong></td>
</tr>
<tr>
<th scope="row"><?php
_e('Default time format:');
?>
</th>
<td><input name="time_format" type="text" id="time_format" size="30" value="<?php
form_option('time_format');
?>
" /><br />
<?php
_e('Output:');
?>
<strong><?php
echo gmdate(get_settings('time_format'), current_time('timestamp'));
?>
</strong></td>
</tr>
<tr>
<th scope="row"><?php
_e('Weeks in the calendar should start on:');
?>
</th>
开发者ID:BackupTheBerlios,项目名称:steampress-svn,代码行数:31,代码来源:options-general.php
示例20: _e
?>
</legend>
<label for="medium_size_w"><?php
_e('Max Width');
?>
</label>
<input name="medium_size_w" type="text" id="medium_size_w" value="<?php
form_option('medium_size_w');
?>
" size="6" />
<label for="medium_size_h"><?php
_e('Max Height');
?>
</label>
<input name="medium_size_h" type="text" id="medium_size_h" value="<?php
form_option('medium_size_h');
?>
" size="6" />
</fieldset></td>
</tr>
</table>
<table class="form-table">
<tr>
<th scope="row" class="th-full">
<label for="use_linksupdate">
<input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php
checked('1', get_option('use_linksupdate'));
开发者ID:nurpax,项目名称:saastafi,代码行数:31,代码来源:options-misc.php
注:本文中的form_option函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论