Changeset 2433
- Timestamp:
- 03/11/2005 04:53:16 PM (20 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r2411 r2433 82 82 if (0 < $numcats) $numcats = number_format($numcats); 83 83 ?> 84 <p><?php printf(__('There are currently %1$ d <a href="%2$s" title="Posts">posts</a> and %3$d <a href="%4$s" title="Comments">comments</a>, contained within %5$d<a href="%6$s" title="categories">categories</a>.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php'); ?></p>84 <p><?php printf(__('There are currently %1$s <a href="%2$s" title="Posts">posts</a> and %3$s <a href="%4$s" title="Comments">comments</a>, contained within %5$s <a href="%6$s" title="categories">categories</a>.'), $numposts, 'edit.php', $numcomms, 'edit-comments.php', $numcats, 'categories.php'); ?></p> 85 85 </div> 86 86 -
trunk/wp-admin/plugins.php
r2090 r2433 73 73 $style = ''; 74 74 foreach($plugins as $plugin_file => $plugin_data) { 75 $style = ('class="alternate"' == $style ) ? '' : 'class="alternate"';75 $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate'; 76 76 77 77 if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) { 78 78 $action = "<a href='plugins.php?action=deactivate&plugin=$plugin_file' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>"; 79 79 $plugin_data['Title'] = "<strong>{$plugin_data['Title']}</strong>"; 80 $style .= $style == 'alternate' ? ' active' : 'active'; 80 81 } else { 81 82 $action = "<a href='plugins.php?action=activate&plugin=$plugin_file' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>"; 82 83 } 83 84 $plugin_data['Description'] = wp_kses($plugin_data['Description'], array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()) ); ; 85 if ($style != '') $style = 'class="' . $style . '"'; 84 86 echo " 85 87 <tr $style> 86 <td >{$plugin_data['Title']}</td>87 <td >{$plugin_data['Version']}</td>88 <td >{$plugin_data['Author']}</td>89 <td >{$plugin_data['Description']}</td>90 <td >$action</td>88 <td class=\"name\">{$plugin_data['Title']}</td> 89 <td class=\"vers\">{$plugin_data['Version']}</td> 90 <td class=\"auth\">{$plugin_data['Author']}</td> 91 <td class=\"desc\">{$plugin_data['Description']}</td> 92 <td class=\"togl\">$action</td> 91 93 </tr>"; 92 94 } -
trunk/wp-admin/themes.php
r2325 r2433 66 66 </tr> 67 67 <?php 68 $ theme = '';68 $style = ''; 69 69 70 70 $theme_names = array_keys($themes); … … 87 87 } 88 88 89 $theme = ('class="alternate"' == $theme) ? '' : 'class="alternate"'; 89 $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate'; 90 if ($current) $style .= $style == 'alternate' ? ' active' : 'active'; 91 if ($style != '') $style = 'class="' . $style . '"'; 92 90 93 echo " 91 <tr $ theme>";94 <tr $style>"; 92 95 if ( $current ) 93 96 echo "<td><strong>$title $version</strong></td>"; … … 95 98 echo "<td>$title $version</td>"; 96 99 echo " 97 <td align='center'>$author</td>98 <td >$description</td>99 <td align='center'>$action</td>100 <td class=\"auth\">$author</td> 101 <td class=\"desc\">$description</td> 102 <td class=\"togl\">$action</td> 100 103 </tr>"; 101 104 } -
trunk/wp-admin/wp-admin.css
r2215 r2433 542 542 padding: 0 0 0 .6em; 543 543 } 544 545 546 /* emeyer additions */ 547 548 .active td {background: #BEB;} 549 .active .name {background: #9C9;} 550 .active.alternate td {background: #ADA;} 551 .active.alternate .name {background: #8B8;}
Note: See TracChangeset
for help on using the changeset viewer.