more multisite UX rebranding, See #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@13379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-02-24 19:56:10 +00:00
parent 635409844e
commit 9ee37eb920
5 changed files with 65 additions and 65 deletions

View File

@ -22,7 +22,7 @@ $c_users = get_user_count();
$c_blogs = get_blog_count();
$user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
$blog_text = sprintf( _n( '%s blog', '%s blogs', $c_blogs ), number_format_i18n( $c_blogs ) );
$blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );
$sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
?>

View File

@ -141,14 +141,14 @@ switch ( $_GET['action'] ) {
wp_die( __('You do not have permission to access this page.') );
if ( is_array( $_POST[ 'blog' ] ) == false )
wp_die( "Can't create an empty blog." );
wp_die( "Can't create an empty site." );
$blog = $_POST['blog'];
$domain = sanitize_user( str_replace( '/', '', $blog[ 'domain' ] ) );
$email = sanitize_email( $blog[ 'email' ] );
$title = $blog[ 'title' ];
if ( empty($domain) || empty($email) )
wp_die( __('Missing blog address or email address.') );
wp_die( __('Missing site address or email address.') );
if ( !is_email( $email ) )
wp_die( __('Invalid email address') );
@ -178,8 +178,8 @@ switch ( $_GET['action'] ) {
$dashboard_blog = get_dashboard_blog();
if ( get_user_option( 'primary_blog', $user_id ) == $dashboard_blog->blog_id )
update_user_option( $user_id, 'primary_blog', $id, true );
$content_mail = sprintf( __( "New blog created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, stripslashes( $title ) );
wp_mail( get_site_option('admin_email'), sprintf(__('[%s] New Blog Created'), $current_site->site_name), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );
$content_mail = sprintf( __( "New site created by %1s\n\nAddress: http://%2s\nName: %3s"), $current_user->user_login , $newdomain.$path, stripslashes( $title ) );
wp_mail( get_site_option('admin_email'), sprintf(__('[%s] New Site Created'), $current_site->site_name), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' );
wpmu_welcome_notification( $id, $user_id, $password, $title, array( "public" => 1 ) );
wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'add-blog'), $_SERVER['HTTP_REFERER'] ) );
exit();
@ -439,7 +439,7 @@ switch ( $_GET['action'] ) {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists('language_attributes') ) language_attributes(); ?>>
<head>
<title><?php _e("WordPress MU &rsaquo; Confirm your action"); ?></title>
<title><?php _e("WordPress &rsaquo; Confirm your action"); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php wp_admin_css( 'install', true ); ?>
@ -498,7 +498,7 @@ switch ( $_GET['action'] ) {
continue;
$user = new WP_User( $val );
if ( in_array( $user->user_login, get_site_option( 'site_admins', array( 'admin' ) ) ) )
wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a site admnistrator.' ), $user->user_login ) );
wp_die( sprintf( __( 'Warning! User cannot be modified. The user %s is a network admnistrator.' ), $user->user_login ) );
if ( isset($_POST['alluser_spam']) ) {
$userfunction = 'all_spam';
$blogs = get_blogs_of_user( $val, true );

View File

@ -21,13 +21,13 @@ if (isset($_GET['updated'])) {
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php _e('Site Options') ?></h2>
<h2><?php _e('Network Options') ?></h2>
<form method="post" action="ms-edit.php?action=siteoptions">
<?php wp_nonce_field( "siteoptions" ); ?>
<h3><?php _e('Operational Settings <em>(These settings cannot be modified by blog owners)</em>') ?></h3>
<h3><?php _e('Operational Settings <em>(These settings cannot be modified by site owners)</em>') ?></h3>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('Site Name') ?></th>
<th scope="row"><?php _e('Network Name') ?></th>
<td>
<input name="site_name" type="text" id="site_name" style="width: 95%" value="<?php echo esc_attr($current_site->site_name) ?>" size="45" />
<br />
@ -36,7 +36,7 @@ if (isset($_GET['updated'])) {
</tr>
<tr valign="top">
<th scope="row"><?php _e('Site Admin Email') ?></th>
<th scope="row"><?php _e('Network Admin Email') ?></th>
<td>
<input name="admin_email" type="text" id="admin_email" style="width: 95%" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" size="45" />
<br />
@ -52,12 +52,12 @@ if (isset($_GET['updated'])) {
?>
<td>
<label><input name="registration" type="radio" id="registration1" value='none' <?php checked( get_site_option('registration'), 'none') ?> /> <?php _e('Disabled'); ?></label><br />
<label><input name="registration" type="radio" id="registration2" value='all' <?php checked( get_site_option('registration'), 'all') ?> /> <?php _e('Enabled. Blogs and user accounts can be created.'); ?></label><br />
<label><input name="registration" type="radio" id="registration2" value='all' <?php checked( get_site_option('registration'), 'all') ?> /> <?php _e('Enabled. Sites and user accounts can be created.'); ?></label><br />
<label><input name="registration" type="radio" id="registration3" value='user' <?php checked( get_site_option('registration'), 'user') ?> /> <?php _e('Only user account can be created.'); ?></label><br />
<label><input name="registration" type="radio" id="registration4" value='blog' <?php checked( get_site_option('registration'), 'blog') ?> /> <?php _e('Only logged in users can create new blogs.'); ?></label><br />
<p><?php _e('Disable or enable registration and who or what can be registered. (Default=all)'); ?></p>
<label><input name="registration" type="radio" id="registration4" value='blog' <?php checked( get_site_option('registration'), 'blog') ?> /> <?php _e('Only logged in users can create new sites.'); ?></label><br />
<p><?php _e('Disable or enable registration and who or what can be registered. (Default=Disabled)'); ?></p>
<?php if ( is_subdomain_install() ) {
echo '<p>' . __('If registration is disabled, please set "NOBLOGREDIRECT" in wp-config.php to a url you will redirect visitors to if they visit a non existant blog.') . '</p>';
echo '<p>' . __('If registration is disabled, please set "NOBLOGREDIRECT" in wp-config.php to a url you will redirect visitors to if they visit a non existant site.') . '</p>';
} ?>
</td>
</tr>
@ -71,7 +71,7 @@ if (isset($_GET['updated'])) {
<td>
<input name="registrationnotification" type="radio" id="registrationnotification1" value='yes' <?php checked( get_site_option('registrationnotification'), 'yes') ?> /> <?php _e('Yes'); ?><br />
<input name="registrationnotification" type="radio" id="registrationnotification2" value='no' <?php checked( get_site_option('registrationnotification'), 'no') ?> /> <?php _e('No'); ?><br />
<?php _e('Send the site admin an email notification every time someone registers a blog or user account.') ?>
<?php _e('Send the network admin an email notification every time someone registers a site or user account.') ?>
</td>
</tr>
@ -79,14 +79,14 @@ if (isset($_GET['updated'])) {
<th scope="row"><?php _e('Add New Users') ?></th>
<td>
<a name='addnewusers'></a>
<input name="add_new_users" type="radio" id="add_new_users1" value='1' <?php checked( get_site_option('add_new_users') ) ?> /> <?php _e('Yes'); ?><br />
<input name="add_new_users" type="radio" id="add_new_users2" value='0' <?php checked( get_site_option('add_new_users'), 0) ?> /> <?php _e('No'); ?><br />
<?php _e('Allow blog administrators to add new users to their blog via the Users->Add New page.') ?>
<input name="add_new_users" type="radio" id="add_new_users1" value='1' <?php checked( get_site_option('add_new_users'), 1 ) ?> /> <?php _e('Yes'); ?><br />
<input name="add_new_users" type="radio" id="add_new_users2" value='0' <?php checked( get_site_option('add_new_users'), 0 ) ?> /> <?php _e('No'); ?><br />
<?php _e('Allow site administrators to add new users to their site via the Users->Add New page.') ?>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Dashboard Blog') ?></th>
<th scope="row"><?php _e('Dashboard Site') ?></th>
<td>
<?php
if ( $dashboard_blog = get_site_option( 'dashboard_blog' ) ) {
@ -98,7 +98,7 @@ if (isset($_GET['updated'])) {
<input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr($blogname); ?>" />
<input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr($blogname); ?>" size="30" />
<br />
<?php _e( "Blogname ('dashboard', 'control', 'manager', etc) or blog id.<br />New users are added to this blog as subscribers (or the user role defined below) if they don't have a blog. Leave blank for the main blog. 'Subscriber' users on old blog will be moved to the new blog if changed. New blog will be created if it does not exist." ); ?>
<?php _e( "Blogname ('dashboard', 'control', 'manager', etc) or blog id.<br />New users are added to this site as subscribers (or the user role defined below) if they don't have a site. Leave blank for the main site. 'Subscriber' users on old site will be moved to the new site if changed. New site will be created if it does not exist." ); ?>
</td>
</tr>
<tr valign="top">
@ -109,7 +109,7 @@ if (isset($_GET['updated'])) {
?>
</select>
<br />
<?php _e( "The default role for new users on the Dashboard blog. This should probably be 'Subscriber' or maybe 'Contributor'." ); ?>
<?php _e( "The default role for new users on the Dashboard site. This should probably be 'Subscriber' or maybe 'Contributor'." ); ?>
</td>
</tr>
@ -118,7 +118,7 @@ if (isset($_GET['updated'])) {
<td>
<input name="illegal_names" type="text" id="illegal_names" style="width: 95%" value="<?php echo esc_attr( implode( " ", get_site_option('illegal_names') ) ); ?>" size="45" />
<br />
<?php _e('Users are not allowed to register these blogs. Separate names by spaces.') ?>
<?php _e('Users are not allowed to register these sites. Separate names by spaces.') ?>
</td>
</tr>
@ -129,7 +129,7 @@ if (isset($_GET['updated'])) {
$limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); ?>
<textarea name="limited_email_domains" id="limited_email_domains" cols='40' rows='5'><?php echo $limited_email_domains == '' ? '' : @implode( "\n", $limited_email_domains ); ?></textarea>
<br />
<?php _e('If you want to limit blog registrations to certain domains. One domain per line.') ?>
<?php _e('If you want to limit site registrations to certain domains. One domain per line.') ?>
</td>
</tr>
@ -138,7 +138,7 @@ if (isset($_GET['updated'])) {
<td>
<textarea name="banned_email_domains" id="banned_email_domains" cols='40' rows='5'><?php echo get_site_option('banned_email_domains') == '' ? '' : @implode( "\n", get_site_option('banned_email_domains') ); ?></textarea>
<br />
<?php _e('If you want to ban certain email domains from blog registrations. One domain per line.') ?>
<?php _e('If you want to ban certain email domains from site registrations. One domain per line.') ?>
</td>
</tr>
@ -147,7 +147,7 @@ if (isset($_GET['updated'])) {
<td>
<textarea name="welcome_email" id="welcome_email" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('welcome_email') ) ?></textarea>
<br />
<?php _e('The welcome email sent to new blog owners.') ?>
<?php _e('The welcome email sent to new site owners.') ?>
</td>
</tr>
<tr valign="top">
@ -163,7 +163,7 @@ if (isset($_GET['updated'])) {
<td>
<textarea name="first_post" id="first_post" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('first_post') ) ?></textarea>
<br />
<?php _e('First post on a new blog.') ?>
<?php _e('First post on a new site.') ?>
</td>
</tr>
<tr valign="top">
@ -171,7 +171,7 @@ if (isset($_GET['updated'])) {
<td>
<textarea name="first_page" id="first_page" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('first_page') ) ?></textarea>
<br />
<?php _e('First page on a new blog.') ?>
<?php _e('First page on a new site.') ?>
</td>
</tr>
<tr valign="top">
@ -179,7 +179,7 @@ if (isset($_GET['updated'])) {
<td>
<textarea name="first_comment" id="first_comment" rows='5' cols='45' style="width: 95%"><?php echo stripslashes( get_site_option('first_comment') ) ?></textarea>
<br />
<?php _e('First comment on a new blog.') ?>
<?php _e('First comment on a new site.') ?>
</td>
</tr>
<tr valign="top">
@ -187,7 +187,7 @@ if (isset($_GET['updated'])) {
<td>
<input type="text" size='40' name="first_comment_author" id="first_comment_author" value="<?php echo get_site_option('first_comment_author') ?>" />
<br />
<?php _e('Author of first comment on a new blog.') ?>
<?php _e('Author of first comment on a new site.') ?>
</td>
</tr>
<tr valign="top">
@ -195,7 +195,7 @@ if (isset($_GET['updated'])) {
<td>
<input type="text" size='40' name="first_comment_url" id="first_comment_url" value="<?php echo esc_attr(get_site_option('first_comment_url')) ?>" />
<br />
<?php _e('URL on first comment on a new blog.') ?>
<?php _e('URL on first comment on a new site.') ?>
</td>
</tr>
@ -208,14 +208,14 @@ if (isset($_GET['updated'])) {
<?php _e( 'The media upload buttons to display on the "Write Post" page. Make sure you update the "Upload File Types" below as well.' ); ?></td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Blog upload space check') ?></th>
<th scope="row"><?php _e('Site upload space check') ?></th>
<td>
<label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='0' <?php checked( get_site_option( 'upload_space_check_disabled' ), 0 ) ?>/> <?php _e( 'Enabled' ); ?></label><br />
<label><input type='radio' id="upload_space_check_disabled" name="upload_space_check_disabled" value='1' <?php checked( get_site_option( 'upload_space_check_disabled' ) ) ?>/> <?php _e( 'Disabled' ); ?></label><br />
<?php _e( 'By default there is a limit on the total size of files uploaded but it can be disabled here.' ); ?></td>
</tr>
<tr valign="top">
<th scope="row"><?php _e('Blog upload space') ?></th>
<th scope="row"><?php _e('Site upload space') ?></th>
<td><input name="blog_upload_space" type="text" id="blog_upload_space" value="<?php echo esc_attr( get_site_option('blog_upload_space', 10) ) ?>" size="3" /> MB</td>
</tr>
@ -231,25 +231,25 @@ if (isset($_GET['updated'])) {
<tr valign="top">
<th scope="row"><?php _e('Admin Notice Feed') ?></th>
<td><input name="admin_notice_feed" style="width: 95%" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br />
<?php _e( 'Display the latest post from this RSS or Atom feed on all blog dashboards. Leave blank to disable.' ); ?><br />
<?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br />
<?php if ( get_site_option( 'admin_notice_feed' ) != 'http://' . $current_site->domain . $current_site->path . 'feed/' )
echo __( "A good one to use would be the feed from your main blog: " ) . 'http://' . $current_site->domain . $current_site->path . 'feed/'; ?></td>
echo __( "A good one to use would be the feed from your main site: " ) . 'http://' . $current_site->domain . $current_site->path . 'feed/'; ?></td>
</tr>
</table>
<h3><?php _e('Administration Settings') ?></h3>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e('Site Admins') ?></th>
<th scope="row"><?php _e('Network Admins') ?></th>
<td>
<input name="site_admins" type="text" id="site_admins" style="width: 95%" value="<?php echo esc_attr( implode(' ', get_site_option( 'site_admins', array( 'admin' ) ) ) ) ?>" size="45" />
<br />
<?php _e('These users may login to the main blog and administer the site. Space separated list of usernames.') ?>
<?php _e('These users may login to the main site and administer the network. Space separated list of usernames.') ?>
</td>
</tr>
</table>
<h3><?php _e('Site Wide Settings <em>(These settings may be overridden by blog owners)</em>') ?></h3>
<h3><?php _e('Network Wide Settings <em>(These settings may be overridden by site owners)</em>') ?></h3>
<table class="form-table">
<?php
$languages = get_available_languages();

View File

@ -23,43 +23,43 @@ if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
<?php
switch ($_GET['action']) {
case 'all_notspam':
_e('Blogs mark as not spam !');
_e('Sites mark as not spam !');
break;
case 'all_spam':
_e('Blogs mark as spam !');
_e('Sites mark as spam !');
break;
case 'all_delete':
_e('Blogs deleted !');
_e('Sites deleted !');
break;
case 'delete':
_e('Blog deleted !');
_e('Site deleted !');
break;
case 'add-blog':
_e('Blog added !');
_e('Site added !');
break;
case 'archive':
_e('Blog archived !');
_e('Site archived !');
break;
case 'unarchive':
_e('Blog unarchived !');
_e('Site unarchived !');
break;
case 'activate':
_e('Blog activated !');
_e('Site activated !');
break;
case 'deactivate':
_e('Blog deactivated !');
_e('Site deactivated !');
break;
case 'unspam':
_e('Blog mark as not spam !');
_e('Site mark as not spam !');
break;
case 'spam':
_e('Blog mark as spam !');
_e('Site mark as spam !');
break;
case 'umature':
_e('Blog mark as not mature !');
_e('Site mark as not mature !');
break;
case 'mature':
_e('Blog mark as mature !');
_e('Site mark as mature !');
break;
default:
_e('Options saved !');
@ -89,7 +89,7 @@ switch ( $action ) {
<input type="hidden" name="id" value="<?php echo esc_attr($id) ?>" />
<div class='metabox-holder' style='width:49%;float:left;'>
<div id="blogedit_bloginfo" class="postbox " >
<h3 class='hndle'><span><?php _e('Blog info (wp_blogs)'); ?></span></h3>
<h3 class='hndle'><span><?php _e('Site info (wp_blogs)'); ?></span></h3>
<div class="inside">
<table class="form-table">
<tr class="form-field form-required">
@ -157,7 +157,7 @@ switch ( $action ) {
</div></div>
<div id="blogedit_blogoptions" class="postbox " >
<h3 class='hndle'><span><?php printf( __('Blog options (%soptions)'), $blog_prefix ); ?></span></h3>
<h3 class='hndle'><span><?php printf( __('Site options (%soptions)'), $blog_prefix ); ?></span></h3>
<div class="inside">
<table class="form-table">
<?php
@ -223,7 +223,7 @@ switch ( $action ) {
if ( $out != '' ) {
?>
<div id="blogedit_blogthemes" class="postbox">
<h3 class='hndle'><span><?php esc_html_e('Blog Themes'); ?></span></h3>
<h3 class='hndle'><span><?php esc_html_e('Site Themes'); ?></span></h3>
<div class="inside">
<table class="form-table">
<tr><th style="font-weight:bold;"><?php esc_html_e('Theme'); ?></th></tr>
@ -237,7 +237,7 @@ switch ( $action ) {
// Blog users
$blogusers = get_users_of_blog( $id );
if ( is_array( $blogusers ) ) {
echo '<div id="blogedit_blogusers" class="postbox"><h3 class="hndle"><span>' . __('Blog Users') . '</span></h3><div class="inside">';
echo '<div id="blogedit_blogusers" class="postbox"><h3 class="hndle"><span>' . __('Site Users') . '</span></h3><div class="inside">';
echo '<table class="form-table">';
echo "<tr><th>" . __('User') . "</th><th>" . __('Role') . "</th><th>" . __('Password') . "</th><th>" . __('Remove') . "</th></tr>";
reset($blogusers);
@ -305,7 +305,7 @@ switch ( $action ) {
</div></div>
<div id="blogedit_miscoptions" class="postbox">
<h3 class='hndle'><span><?php _e('Misc Blog Actions') ?></span></h3>
<h3 class='hndle'><span><?php _e('Misc Site Actions') ?></span></h3>
<div class="inside">
<table class="form-table">
<?php do_action( 'wpmueditblogaction', $id ); ?>
@ -507,21 +507,21 @@ switch ( $action ) {
$actions[] = "<a href='" . get_admin_url($blog['blog_id']) . "' class='edit'>" . __('Backend') . '</a>';
if ( get_blog_status( $blog['blog_id'], "deleted" ) == '1' )
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=activateblog&amp;ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to activate the blog %s" ), $blogname ) ) . '">' . __('Activate') . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=activateblog&amp;ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to activate the site %s" ), $blogname ) ) . '">' . __('Activate') . '</a>';
else
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=deactivateblog&amp;ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to deactivate the blog %s" ), $blogname ) ) . '">' . __('Deactivate') . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=deactivateblog&amp;ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to deactivate the site %s" ), $blogname ) ) . '">' . __('Deactivate') . '</a>';
if ( get_blog_status( $blog['blog_id'], "archived" ) == '1' )
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=unarchiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to unarchive the blog %s" ), $blogname ) ) . '">' . __('Unarchive') . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=unarchiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to unarchive the site %s" ), $blogname ) ) . '">' . __('Unarchive') . '</a>';
else
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=archiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to archive the blog %s" ), $blogname ) ) . '">' . __('Archive') . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=archiveblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to archive the site %s" ), $blogname ) ) . '">' . __('Archive') . '</a>';
if ( get_blog_status( $blog['blog_id'], "spam" ) == '1' )
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=unspamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to unspam the blog %s" ), $blogname ) ) . '">' . __('Not Spam') . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=unspamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to unspam the site %s" ), $blogname ) ) . '">' . __('Not Spam') . '</a>';
else
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=spamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to mark the blog %s as spam" ), $blogname ) ) . '">' . __("Spam") . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=spamblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to mark the site %s as spam" ), $blogname ) ) . '">' . __("Spam") . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=deleteblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to delete the blog %s" ), $blogname ) ) . '">' . __("Delete") . '</a>';
$actions[] = '<a class="delete" href="ms-edit.php?action=confirm&amp;action2=deleteblog&amp;id=' . $blog['blog_id'] . '&amp;msg=' . urlencode( sprintf( __( "You are about to delete the site %s" ), $blogname ) ) . '">' . __("Delete") . '</a>';
$actions[] = "<a href='" . get_home_url($blog['blog_id']) . "' rel='permalink'>" . __('Visit') . '</a>';
?>

View File

@ -125,7 +125,7 @@ if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
</div>
<?php if ( isset($_GET['s']) && $_GET['s'] != '' ) : ?>
<p><a href="ms-sites.php?action=blogs&amp;s=<?php echo urlencode( stripslashes( $s ) ); ?>&blog_name=Search+blogs+by+name"><?php _e('Search Blogs for') ?> <strong><?php echo stripslashes( $s ) ?></strong></a></p>
<p><a href="ms-sites.php?action=blogs&amp;s=<?php echo urlencode( stripslashes( $s ) ); ?>&blog_name=Search+blogs+by+name"><?php _e('Search Sites for') ?> <strong><?php echo stripslashes( $s ) ?></strong></a></p>
<?php endif; ?>
<?php
@ -145,7 +145,7 @@ if ( isset($_GET['updated']) && $_GET['updated'] == 'true' ) {
<tr>
<?php foreach( (array) $posts_columns as $column_id => $column_display_name) {
if ( $column_id == 'blogs' ) {
echo '<th scope="col">'.__('Blogs').'</th>';
echo '<th scope="col">'.__('Sites').'</th>';
} elseif ( $column_id == 'checkbox') {
echo '<th scope="col" class="check-column"><input type="checkbox" /></th>';
} else { ?>