Skip to content

Commit

Permalink
去掉冗余class
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi committed Oct 12, 2013
1 parent a0d06eb commit 6e1a499
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion admin/manage-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<tbody>
<?php if($comments->have()): ?>
<?php while($comments->next()): ?>
<tr class="<?php $comments->alt(' even', ''); ?>" id="<?php $comments->theId(); ?>">
<tr id="<?php $comments->theId(); ?>">
<td valign="top">
<input type="checkbox" value="<?php $comments->coid(); ?>" name="coid[]"/>
</td>
Expand Down
2 changes: 1 addition & 1 deletion admin/manage-medias.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<?php if($attachments->have()): ?>
<?php while($attachments->next()): ?>
<?php $mime = Typecho_Common::mimeIconType($attachments->attachment->mime); ?>
<tr<?php $attachments->alt(' class="even"', ''); ?> id="<?php $attachments->theId(); ?>">
<tr id="<?php $attachments->theId(); ?>">
<td><input type="checkbox" value="<?php $attachments->cid(); ?>" name="cid[]"/></td>
<td><a href="<?php $options->adminUrl('manage-comments.php?cid=' . $attachments->cid); ?>" class="balloon-button size-<?php echo Typecho_Common::splitByCount($attachments->commentsNum, 1, 10, 20, 50, 100); ?>"><?php $attachments->commentsNum(); ?></a></td>
<td><span class="typecho-mime typecho-mime-<?php echo $mime; ?>"></span></td>
Expand Down
2 changes: 1 addition & 1 deletion admin/manage-metas.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<tbody>
<?php if($categories->have()): ?>
<?php while ($categories->next()): ?>
<tr<?php $categories->alt(' class="even"', ''); ?> id="mid-<?php $categories->theId(); ?>">
<tr id="mid-<?php $categories->theId(); ?>">
<td><input type="checkbox" value="<?php $categories->mid(); ?>" name="mid[]"/></td>
<td><a href="<?php echo $request->makeUriByRequest('mid=' . $categories->mid); ?>"><?php $categories->name(); ?></a></td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion admin/manage-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<?php Typecho_Widget::widget('Widget_Contents_Post_Admin')->to($posts); ?>
<?php if($posts->have()): ?>
<?php while($posts->next()): ?>
<tr<?php $posts->alt(' class="even"', ''); ?> id="<?php $posts->theId(); ?>">
<tr id="<?php $posts->theId(); ?>">
<td><input type="checkbox" value="<?php $posts->cid(); ?>" name="cid[]"/></td>
<td><a href="<?php $options->adminUrl('manage-comments.php?cid=' . $posts->cid); ?>" class="balloon-button size-<?php echo Typecho_Common::splitByCount($posts->commentsNum, 1, 10, 20, 50, 100); ?>"><?php $posts->commentsNum(); ?></a></td>
<td<?php if ('draft' != $posts->status && 'waiting' != $posts->status && 'private' != $posts->status && !$posts->password): ?> colspan="2"<?php endif; ?>>
Expand Down
2 changes: 1 addition & 1 deletion admin/manage-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<tbody>
<?php Typecho_Widget::widget('Widget_Users_Admin')->to($users); ?>
<?php while($users->next()): ?>
<tr<?php $users->alt(' class="even"', ''); ?> id="user-<?php $users->uid(); ?>">
<tr id="user-<?php $users->uid(); ?>">
<td><input type="checkbox" value="<?php $users->uid(); ?>" name="uid[]"/></td>
<td><a href="<?php $options->adminUrl('user.php?uid=' . $users->uid); ?>"><?php $users->name(); ?></a></td>
<td><?php $users->screenName(); ?></td>
Expand Down
4 changes: 2 additions & 2 deletions admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</thead>
<tbody>
<?php while ($activatedPlugins->next()): ?>
<tr<?php $activatedPlugins->alt(' class="even"', ''); ?> id="plugin-<?php $activatedPlugins->name(); ?>">
<tr id="plugin-<?php $activatedPlugins->name(); ?>">
<td><?php $activatedPlugins->title(); ?>
<?php if (!$activatedPlugins->dependence): ?>
<img src="<?php $options->adminUrl('images/notice.gif'); ?>" title="<?php _e('%s 无法在此版本的typecho下正常工作', $activatedPlugins->title); ?>" alt="<?php _e('%s 无法在此版本的typecho下正常工作', $activatedPlugins->title); ?>" class="tiny" />
Expand Down Expand Up @@ -95,7 +95,7 @@
<tbody>
<?php if ($deactivatedPlugins->have()): ?>
<?php while ($deactivatedPlugins->next()): ?>
<tr<?php $deactivatedPlugins->alt(' class="even"', ''); ?> id="plugin-<?php $deactivatedPlugins->name(); ?>">
<tr id="plugin-<?php $deactivatedPlugins->name(); ?>">
<td><?php $deactivatedPlugins->title(); ?></td>
<td><?php $deactivatedPlugins->description(); ?></td>
<td><?php $deactivatedPlugins->version(); ?></td>
Expand Down

0 comments on commit 6e1a499

Please sign in to comment.