Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@2325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
saxmatt committed Feb 14, 2005
1 parent 6898b60 commit 9eccc2d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions wp-admin/themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<th><?php _e('Name'); ?></th>
<th><?php _e('Author'); ?></th>
<th><?php _e('Description'); ?></th>
<th><?php _e('Select'); ?></th>
<th></th>
</tr>
<?php
$theme = '';
Expand All @@ -79,15 +79,21 @@
$author = $themes[$theme_name]['Author'];

if ($template == $current_template && $stylesheet == $current_stylesheet) {
$action = __('Active Theme');
$action = '<strong>' . __('Active Theme') . '</strong>';
$current = true;
} else {
$action = "<a href='themes.php?action=activate&amp;template=$template&amp;stylesheet=$stylesheet' title='" . __('Select this theme') . "' class='edit'>" . __('Select') . '</a>';
$current = false;
}

$theme = ('class="alternate"' == $theme) ? '' : 'class="alternate"';
echo "
<tr $theme>
<td>$title $version</td>
<tr $theme>";
if ( $current )
echo "<td><strong>$title $version</strong></td>";
else
echo "<td>$title $version</td>";
echo "
<td align='center'>$author</td>
<td>$description</td>
<td align='center'>$action</td>
Expand Down

0 comments on commit 9eccc2d

Please sign in to comment.