show_blog_form [ WordPress Function ]
show_blog_form ( $blogname = '', $blog_title = '', $errors = '' )
| Defined at: |
|
No description yet.
Source
<?php
function show_blog_form($blogname = '', $blog_title = '', $errors = '') {
global $current_site;
// Blog name
if ( !is_subdomain_install() )
echo '<label for="blogname">' . __('Site Name:') . '</label>';
else
echo '<label for="blogname">' . __('Site Domain:') . '</label>';
if ( $errmsg = $errors->get_error_message('blogname') ) { ?>
<p class="error"><?php echo $errmsg ?></p>
<?php }
if ( !is_subdomain_install() )
echo '<span class="prefix_address">' . $current_site->domain . $current_site->path . '</span><input name="blogname" type="text" id="blogname" value="'. esc_attr($blogname) .'" maxlength="60" /><br />';
else
echo '<input name="blogname" type="text" id="blogname" value="'.esc_attr($blogname).'" maxlength="60" /><span class="suffix_address">.' . ( $site_domain = preg_replace( '|^www\.|', '', $current_site->domain ) ) . '</span><br />';
if ( !is_user_logged_in() ) {
if ( !is_subdomain_install() )
$site = $current_site->domain . $current_site->path . __( 'sitename' );
else
$site = __( 'domain' ) . '.' . $site_domain . $current_site->path;
echo '<p>(<strong>' . sprintf( __('Your address will be %s.'), $site ) . '</strong>) ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '</p>';
}
// Blog Title
?>
<label for="blog_title"><?php _e('Site Title:') ?></label>
<?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>
<p class="error"><?php echo $errmsg ?></p>
<?php }
echo '<input name="blog_title" type="text" id="blog_title" value="'.esc_attr($blog_title).'" />';
?>
<div id="privacy">
<p class="privacy-intro">
<label for="blog_public_on"><?php _e('Privacy:') ?></label>
<?php _e( 'Allow search engines to index this site.' ); ?>
<br style="clear:both" />
<label class="checkbox" for="blog_public_on">
<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if ( !isset( $_POST['blog_public'] ) || $_POST['blog_public'] == '1' ) { ?>checked="checked"<?php } ?> />
<strong><?php _e( 'Yes' ); ?></strong>
</label>
<label class="checkbox" for="blog_public_off">
<input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if ( isset( $_POST['blog_public'] ) && $_POST['blog_public'] == '0' ) { ?>checked="checked"<?php } ?> />
<strong><?php _e( 'No' ); ?></strong>
</label>
</p>
</div>
<?php
do_action('signup_blogform', $errors);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Docs for page wp-signup.php
show_blog_form (line 61). void show_blog_form ([ $blogname = ''], [ $blog_title = ''], [ $errors = '']). $blogname; $blog_title; $errors. show_user_form (line 123) ...
phpdoc.wordpress.org - show_blog_form | A HitchHackers guide through WordPress
Feb 12, 2011 ... function show_blog_form($blogname = '', $blog_title = '', $errors = '') { global $ current_site; // Blog name if ( !is_subdomain_install() ) echo ...
hitchhackerguide.com - Editing wp-signup.php and reducing to one step registration.
Oct 20, 2008 ... <div id="content" class="widecolumn"> <div class="mu_register"> <?php function show_blog_form($blogname = '', $blog_title = '', $errors = '') { ...
www.phpfreaks.com - wp-signup.php - PHP Cross Reference of WordPress Source - Yoast
Jun 1, 2011 ... show_blog_form() validate_blog_form() show_user_form() validate_user_form() signup_another_blog() validate_another_blog_signup() ...
xref.yoast.com