Some wording fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@1474 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d24b54bed9
commit
bd36060c92
|
@ -250,18 +250,19 @@ default:
|
||||||
<th><?php _e('Website') ?></th>
|
<th><?php _e('Website') ?></th>
|
||||||
<th><?php _e('Level') ?></th>
|
<th><?php _e('Level') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
foreach ($users as $user) {
|
$style = '';
|
||||||
$user_data = get_userdata($user->ID);
|
foreach ($users as $user) {
|
||||||
$email = $user_data->user_email;
|
$user_data = get_userdata($user->ID);
|
||||||
$url = $user_data->user_url;
|
$email = $user_data->user_email;
|
||||||
$short_url = str_replace('http://', '', $url);
|
$url = $user_data->user_url;
|
||||||
$short_url = str_replace('www.', '', $short_url);
|
$short_url = str_replace('http://', '', $url);
|
||||||
if ('/' == substr($short_url, -1))
|
$short_url = str_replace('www.', '', $short_url);
|
||||||
$short_url = substr($short_url, 0, -1);
|
if ('/' == substr($short_url, -1))
|
||||||
if (strlen($short_url) > 35)
|
$short_url = substr($short_url, 0, -1);
|
||||||
$short_url = substr($short_url, 0, 32).'...';
|
if (strlen($short_url) > 35)
|
||||||
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
|
$short_url = substr($short_url, 0, 32).'...';
|
||||||
|
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
|
||||||
echo "\n<tr $style>
|
echo "\n<tr $style>
|
||||||
<td align='center'>$user_data->ID</td>
|
<td align='center'>$user_data->ID</td>
|
||||||
<td><strong>$user_data->user_nickname</strong></td>
|
<td><strong>$user_data->user_nickname</strong></td>
|
||||||
|
@ -269,24 +270,23 @@ echo "\n<tr $style>
|
||||||
<td><a href='mailto:$email' title='" . sprintf(__('e-mail: %s'), $email) . "'>$email</a></td>
|
<td><a href='mailto:$email' title='" . sprintf(__('e-mail: %s'), $email) . "'>$email</a></td>
|
||||||
<td><a href='$url' title='website: $url'>$short_url</a></td>
|
<td><a href='$url' title='website: $url'>$short_url</a></td>
|
||||||
<td align='center'>";
|
<td align='center'>";
|
||||||
if ($user_level >= 3)
|
if ($user_level >= 3)
|
||||||
echo " <a href=\"users.php?action=delete&id=".$user_data->ID."\" style=\"color:red;font-weight:bold;\">X</a> ";
|
echo " <a href=\"users.php?action=delete&id=".$user_data->ID."\" style=\"color:red;font-weight:bold;\">X</a> ";
|
||||||
echo $user_data->user_level;
|
echo $user_data->user_level;
|
||||||
if ($user_level >= 2)
|
if ($user_level >= 2)
|
||||||
echo " <a href=\"users.php?action=promote&id=".$user_data->ID."&prom=up\">+</a> ";
|
echo " <a href=\"users.php?action=promote&id=".$user_data->ID."&prom=up\">+</a> ";
|
||||||
echo "</td>\n</tr>\n";
|
echo "</td>\n</tr>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<?php _e('<p>To delete a user, bring his level to zero, then click on the red X.<br />
|
<p><?php _e('To delete an author or user, bring his level to zero, then click on the red X. <strong>Warning:</strong> Deleting a user also deletes all posts made by this user.') ?></p>
|
||||||
<strong>Warning:</strong> deleting a user also deletes all posts made by this user.</p>') ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} ?>
|
} ?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Add User') ?></h2>
|
<h2><?php _e('Add New User') ?></h2>
|
||||||
<?php printf(__('<p>Users can <a href="%s/wp-register.php">register themselves</a> or you can manually create users here.</p>'), get_settings('siteurl')); ?>
|
<?php printf(__('<p>Users can <a href="%s/wp-register.php">register themselves</a> or you can manually create users here.</p>'), get_settings('siteurl')); ?>
|
||||||
<form action="" method="post" name="adduser" id="adduser">
|
<form action="" method="post" name="adduser" id="adduser">
|
||||||
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
|
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
|
||||||
|
|
Loading…
Reference in New Issue