Make WordPress Core


Ignore:
Timestamp:
03/01/2010 12:50:55 AM (16 years ago)
Author:
nacin
Message:

Rearrange action links in the install plugins browser. First pass on the UI overhaul. see #11050

File:
1 edited

Legend:

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

    r12859 r13520  
    310310                <th scope="col" class="num"><?php _e('Rating'); ?></th>
    311311                <th scope="col" class="desc"><?php _e('Description'); ?></th>
    312                 <th scope="col" class="action-links"><?php _e('Actions'); ?></th>
    313312            </tr>
    314313        </thead>
     
    320319                <th scope="col" class="num"><?php _e('Rating'); ?></th>
    321320                <th scope="col" class="desc"><?php _e('Description'); ?></th>
    322                 <th scope="col" class="action-links"><?php _e('Actions'); ?></th>
    323321            </tr>
    324322        </tfoot>
     
    355353                $author = wp_kses($author, $plugins_allowedtags);
    356354
    357                 if ( isset($plugin['homepage']) )
    358                     $title = '<a target="_blank" href="' . esc_attr($plugin['homepage']) . '">' . $title . '</a>';
    359 
    360355                $action_links = array();
    361356                $action_links[] = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
    362357                                    '&amp;TB_iframe=true&amp;width=600&amp;height=550') . '" class="thickbox onclick" title="' .
    363                                     esc_attr($name) . '">' . __('Install') . '</a>';
     358                                    esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __('Install') . '</a>';
     359                if ( isset( $plugin['homepage'] ) )
     360                    $action_links[] = '<a target="_blank" href="' . esc_attr( $plugin['homepage'] ) . '" title="' . esc_attr( sprintf( __( 'More information on %s' ), $name ) ) . '">' . __('Info') . '</a>';
    364361
    365362                $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin);
    366363            ?>
    367364            <tr>
    368                 <td class="name"><?php echo $title; ?></td>
     365                <td class="name"><strong><?php echo $title; ?></strong>
     366                    <div class="action-links"><?php if ( !empty($action_links) ) echo implode(' | ', $action_links); ?></div>
     367                </td>
    369368                <td class="vers"><?php echo $version; ?></td>
    370369                <td class="vers">
     
    379378                </td>
    380379                <td class="desc"><?php echo $description, $author; ?></td>
    381                 <td class="action-links"><?php if ( !empty($action_links) ) echo implode(' | ', $action_links); ?></td>
    382380            </tr>
    383381            <?php
Note: See TracChangeset for help on using the changeset viewer.