Make WordPress Core

Changeset 2433


Ignore:
Timestamp:
03/11/2005 04:53:16 PM (20 years ago)
Author:
ryan
Message:

Fix number formatting in dashboard stats for numbers > 999. http://mosquito.wordpress.org/view.php?id=1074 Hat tip: dougal

Location:
trunk/wp-admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r2411 r2433  
    8282if (0 < $numcats) $numcats = number_format($numcats);
    8383?>
    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>
    8585</div>
    8686
  • trunk/wp-admin/plugins.php

    r2090 r2433  
    7373    $style = '';
    7474    foreach($plugins as $plugin_file => $plugin_data) {
    75         $style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
     75        $style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
    7676
    7777        if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
    7878            $action = "<a href='plugins.php?action=deactivate&amp;plugin=$plugin_file' title='".__('Deactivate this plugin')."' class='delete'>".__('Deactivate')."</a>";
    7979            $plugin_data['Title'] = "<strong>{$plugin_data['Title']}</strong>";
     80            $style .= $style == 'alternate' ? ' active' : 'active';
    8081        } else {
    8182            $action = "<a href='plugins.php?action=activate&amp;plugin=$plugin_file' title='".__('Activate this plugin')."' class='edit'>".__('Activate')."</a>";
    8283        }
    8384        $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 . '"';
    8486        echo "
    8587    <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>
    9193    </tr>";
    9294    }
  • trunk/wp-admin/themes.php

    r2325 r2433  
    6666    </tr>
    6767<?php
    68     $theme = '';
     68    $style = '';
    6969
    7070    $theme_names = array_keys($themes);
     
    8787        }
    8888
    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
    9093        echo "
    91       <tr $theme>";
     94      <tr $style>";
    9295if ( $current )
    9396    echo "<td><strong>$title $version</strong></td>";
     
    9598    echo "<td>$title $version</td>";
    9699echo "
    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>
    100103      </tr>";
    101104    }
  • trunk/wp-admin/wp-admin.css

    r2215 r2433  
    542542    padding: 0 0 0 .6em;
    543543}
     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.