Make WordPress Core

Changeset 11191


Ignore:
Timestamp:
05/05/2009 04:59:19 AM (17 years ago)
Author:
azaozz
Message:

Add column "Rating" in Link Manager, props hakre, fixes #9443

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11190 r11191  
    854854                                'categories' => __('Categories'),
    855855                                'rel' => __('Relationship'),
    856                                 'visible' => __('Visible')
     856                                'visible' => __('Visible'),
     857                                'rating' => __('Rating')
    857858                        );
    858859
  • trunk/wp-admin/link-manager.php

    r11190 r11191  
    175175                        $short_url = substr($short_url, 0, 32).'...';
    176176                $visible = ($link->link_visible == 'Y') ? __('Yes') : __('No');
     177                $rating  = $link->link_rating;
    177178                $style = ($alt % 2) ? '' : ' class="alternate"';
    178179                ++ $alt;
     
    185186                        if ( in_array($column_name, $hidden) )
    186187                                $style = ' style="display:none;"';
    187                         if ( 'visible' == $column_name )
    188                                 $style = empty($style) ? ' style="text-align: center;"' : ' style="text-align: center; display: none;"';
     188
    189189                        $attributes = "$class$style";
    190190
     
    234234                                        ?><td <?php echo $attributes ?>><?php echo $visible; ?></td><?php
    235235                                        break;
     236                                case 'rating':
     237                                        ?><td <?php echo $attributes ?>><?php echo $rating; ?></td><?php
     238                                        break;
    236239                                default:
    237240                                        ?>
  • trunk/wp-admin/wp-admin.css

    r11183 r11191  
    415415}
    416416
    417 table .vers {
    418         text-align: center;
    419 }
    420 
    421417textarea.all-options, input.all-options {
    422418        width: 250px;
     
    21352131}
    21362132
    2137 td.action-links, th.action-links {
     2133td.action-links,
     2134th.action-links {
    21382135        text-align: right;
    21392136}
     
    30193016}
    30203017
     3018.fixed .column-rating,
     3019.fixed .column-visible {
     3020        width: 8%;
     3021}
     3022
    30213023.fixed .column-date,
    30223024.fixed .column-parent,
    3023 .fixed .column-visible,
    30243025.fixed .column-links {
    30253026        width: 10%;
     
    30613062.widefat td {
    30623063        overflow: hidden;
     3064}
     3065
     3066table .vers,
     3067table .column-visible,
     3068table .column-rating {
     3069        text-align: center;
    30633070}
    30643071
Note: See TracChangeset for help on using the changeset viewer.