mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Highlight current theme - http://mosquito.wordpress.org/view.php?id=868
git-svn-id: http://svn.automattic.com/wordpress/trunk@2325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6898b60840
commit
9eccc2d2e3
@ -62,7 +62,7 @@ $current_stylesheet = $themes[$current_theme]['Stylesheet'];
|
||||
<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 = '';
|
||||
@ -79,15 +79,21 @@ $current_stylesheet = $themes[$current_theme]['Stylesheet'];
|
||||
$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&template=$template&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>
|
||||
|
Loading…
Reference in New Issue
Block a user