Reduce dependency on inline style. Props mdawaffe. fixes #6228
git-svn-id: http://svn.automattic.com/wordpress/trunk@7307 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df240cb60c
commit
d74331ba32
|
@ -4,8 +4,15 @@
|
|||
<tr>
|
||||
|
||||
<?php $posts_columns = wp_manage_media_columns(); ?>
|
||||
<?php foreach($posts_columns as $column_display_name) { ?>
|
||||
<th scope="col"><?php echo $column_display_name; ?></th>
|
||||
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
|
||||
if ( 'cb' === $post_column_key )
|
||||
$class = ' class="check-column"';
|
||||
elseif ( 'comments' === $post_column_key )
|
||||
$class = ' class="num"';
|
||||
else
|
||||
$class = '';
|
||||
?>
|
||||
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
|
|
|
@ -97,7 +97,7 @@ if ( $page_links )
|
|||
<th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
|
||||
<th scope="col"><?php _e('Name') ?></th>
|
||||
<th scope="col"><?php _e('Description') ?></th>
|
||||
<th scope="col" style="width: 90px; text-align: center"><?php _e('Links') ?></th>
|
||||
<th scope="col" class="num" style="width: 90px;"><?php _e('Links') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="the-list" class="list:link-cat">
|
||||
|
|
|
@ -52,7 +52,7 @@ function xfn_check($class, $value = '', $deprecated = '') {
|
|||
</div>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" class="button" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
|
||||
<input type="submit" class="button button-highlighted" name="save" value="<?php _e('Save'); ?>" tabindex="4" />
|
||||
<?php
|
||||
if ( ( 'edit' == $action) && current_user_can('manage_links') )
|
||||
echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link_id", 'delete-bookmark_' . $link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete link') . "</a>";
|
||||
|
|
|
@ -111,7 +111,7 @@ if ($post_ID) {
|
|||
</div>
|
||||
|
||||
<p class="submit">
|
||||
<input type="submit" name="save" class="button" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />
|
||||
<input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" />
|
||||
<?php
|
||||
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
|
||||
?>
|
||||
|
|
|
@ -137,8 +137,15 @@ if ($posts) {
|
|||
<thead>
|
||||
<tr>
|
||||
<?php $posts_columns = wp_manage_pages_columns(); ?>
|
||||
<?php foreach($posts_columns as $column_display_name) { ?>
|
||||
<th scope="col"><?php echo $column_display_name; ?></th>
|
||||
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
|
||||
if ( 'cb' === $post_column_key )
|
||||
$class = ' class="check-column"';
|
||||
elseif ( 'comments' === $post_column_key )
|
||||
$class = ' class="num"';
|
||||
else
|
||||
$class = '';
|
||||
?>
|
||||
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
|
@ -4,8 +4,15 @@
|
|||
<tr>
|
||||
|
||||
<?php $posts_columns = wp_manage_posts_columns(); ?>
|
||||
<?php foreach($posts_columns as $column_display_name) { ?>
|
||||
<th scope="col"><?php echo $column_display_name; ?></th>
|
||||
<?php foreach($posts_columns as $post_column_key => $column_display_name) {
|
||||
if ( 'cb' === $post_column_key )
|
||||
$class = ' class="check-column"';
|
||||
elseif ( 'comments' === $post_column_key )
|
||||
$class = ' class="num"';
|
||||
else
|
||||
$class = '';
|
||||
?>
|
||||
<th scope="col"<?php echo $class; ?>><?php echo $column_display_name; ?></th>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
|
|
|
@ -157,9 +157,9 @@ if ( $page_links )
|
|||
<table class="widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
|
||||
<th scope="col" class="check-column"><input type="checkbox" onclick="checkAll(document.getElementById('posts-filter'));" /></th>
|
||||
<th scope="col"><?php _e('Name') ?></th>
|
||||
<th scope="col" style="width: 90px"><?php _e('Posts') ?></th>
|
||||
<th scope="col" class="num" style="width: 90px"><?php _e('Posts') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="the-list" class="list:tag">
|
||||
|
|
|
@ -238,7 +238,7 @@ function _tag_row( $tag, $class = '' ) {
|
|||
$out .= '<td><strong><a class="row-title" href="edit-tags.php?action=edit&tag_ID=' . $tag->term_id . '">' .
|
||||
apply_filters( 'term_name', $tag->name ) . '</a></td>';
|
||||
|
||||
$out .= "<td>$count</td>";
|
||||
$out .= "<td class='num'>$count</td>";
|
||||
$out .= '</tr>';
|
||||
|
||||
return $out;
|
||||
|
@ -545,7 +545,7 @@ function user_row( $user_object, $style = '', $role = '' ) {
|
|||
<td>$user_object->first_name $user_object->last_name</td>
|
||||
<td><a href='mailto:$email' title='" . sprintf( __('e-mail: %s' ), $email ) . "'>$email</a></td>
|
||||
<td>$role_name</td>";
|
||||
$r .= "\n\t\t<td>";
|
||||
$r .= "\n\t\t<td class='num'>";
|
||||
if ( $numposts > 0 ) {
|
||||
$r .= "<a href='edit.php?author=$user_object->ID' title='" . __( 'View posts by this author' ) . "' class='edit'>";
|
||||
$r .= $numposts;
|
||||
|
|
|
@ -335,7 +335,7 @@ unset($role_links);
|
|||
<th><?php _e('Name') ?></th>
|
||||
<th><?php _e('E-mail') ?></th>
|
||||
<th><?php _e('Role') ?></th>
|
||||
<th><?php _e('Posts') ?></th>
|
||||
<th class="num"><?php _e('Posts') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="users" class="list:user user-list">
|
||||
|
|
Loading…
Reference in New Issue