<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[13520] trunk: Rearrange action links in the install plugins browser.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13520">13520</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-03-01 00:50:55 +0000 (Mon, 01 Mar 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>Rearrange action links in the install plugins browser. First pass on the UI overhaul. see <a href="http://trac.wordpress.org/ticket/11050">#11050</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincssplugininstallcss">trunk/wp-admin/css/plugin-install.css</a></li>
<li><a href="#trunkwpadmincssplugininstalldevcss">trunk/wp-admin/css/plugin-install.dev.css</a></li>
<li><a href="#trunkwpadminincludesplugininstallphp">trunk/wp-admin/includes/plugin-install.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincssplugininstallcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/plugin-install.css (13519 => 13520)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/plugin-install.css        2010-03-01 00:09:30 UTC (rev 13519)
+++ trunk/wp-admin/css/plugin-install.css        2010-03-01 00:50:55 UTC (rev 13520)
</span><span class="lines">@@ -1 +1 @@
</span><del>-div.star-holder{position:relative;height:19px;width:100px;font-size:19px;}div.star{height:100%;position:absolute;top:0;left:0;background-color:transparent;letter-spacing:1ex;border:none;}.star1{width:20%;}.star2{width:40%;}.star3{width:60%;}.star4{width:80%;}.star5{width:100%;}.star img,div.star a,div.star a:hover,div.star a:visited{display:block;position:absolute;right:0;border:none;text-decoration:none;}div.star img{width:19px;height:19px;border-left:1px solid #fff;border-right:1px solid #fff;}#plugin-information-header{margin:0;padding:0 5px;font-weight:bold;position:relative;border-bottom-width:1px;border-bottom-style:solid;height:2.5em;}#plugin-information ul#sidemenu{font-weight:normal;margin:0 5px;position:absolute;left:0;bottom:-1px;}#plugin-information p.action-button{width:100%;padding-bottom:0;margin-bottom:0;margin-top:10px;-moz-border-radius:3px 0 0 3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-bottom-left-radius:3px;}#plugin-information .action-button a{text-align:center;font-weight:bold;text-decoration:none;display:block;line-height:2em;}#plugin-information h2{clear:none!important;margin-right:200px;}#plugin-information .fyi{margin:0 10px 50px;width:210px;}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-right:0;}#plugin-information .fyi h2.mainheader{padding:5px;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;}#plugin-information .fyi ul{padding:10px 5px 10px 7px;margin:0;list-style:none;-moz-border-radius-bottomleft:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-bottom-left-radius:3px;}#plugin-information .fyi li{margin-right:0;}#plugin-information #section-holder{padding:10px;}#plugin-information .section ul,#plugin-information .section ol{margin-left:16px;list-style-type:square;list-style-image:none;}#plugin-information #section-screenshots li img{vertical-align:text-top;}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px;padding-bottom:2em;}#plugin-information .updated,#plugin-information pre{margin-right:215px;}#plugin-information pre{padding:7px;}
</del><span class="cx">\ No newline at end of file
</span><ins>+div.star-holder{position:relative;height:19px;width:100px;font-size:19px;}div.action-links{font-weight:normal;margin:6px 0 0;}div.star{height:100%;position:absolute;top:0;left:0;background-color:transparent;letter-spacing:1ex;border:none;}.star1{width:20%;}.star2{width:40%;}.star3{width:60%;}.star4{width:80%;}.star5{width:100%;}.star img,div.star a,div.star a:hover,div.star a:visited{display:block;position:absolute;right:0;border:none;text-decoration:none;}div.star img{width:19px;height:19px;border-left:1px solid #fff;border-right:1px solid #fff;}#plugin-information-header{margin:0;padding:0 5px;font-weight:bold;position:relative;border-bottom-width:1px;border-bottom-style:solid;height:2.5em;}#plugin-information ul#sidemenu{font-weight:normal;margin:0 5px;position:absolute;left:0;bottom:-1px;}#plugin-information p.action-button{width:100%;padding-bottom:0;margin-bottom:0;margin-top:10px;-moz-border-radius:3px 0 0 3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-bottom-left-radius:3px;}#plugin-information .action-button a{text-align:center;font-weight:bold;text-decoration:none;display:block;line-height:2em;}#plugin-information h2{clear:none!important;margin-right:200px;}#plugin-information .fyi{margin:0 10px 50px;width:210px;}#plugin-information .fyi h2{font-size:.9em;margin-bottom:0;margin-right:0;}#plugin-information .fyi h2.mainheader{padding:5px;-moz-border-radius-topleft:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-left-radius:3px;border-top-left-radius:3px;}#plugin-information .fyi ul{padding:10px 5px 10px 7px;margin:0;list-style:none;-moz-border-radius-bottomleft:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-bottom-left-radius:3px;}#plugin-information .fyi li{margin-right:0;}#plugin-information #section-holder{padding:10px;}#plugin-information .section ul,#plugin-information .section ol{margin-left:16px;list-style-type:square;list-style-image:none;}#plugin-information #section-screenshots li img{vertical-align:text-top;}#plugin-information #section-screenshots li p{font-style:italic;padding-left:20px;padding-bottom:2em;}#plugin-information .updated,#plugin-information pre{margin-right:215px;}#plugin-information pre{padding:7px;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincssplugininstalldevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/plugin-install.dev.css (13519 => 13520)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/plugin-install.dev.css        2010-03-01 00:09:30 UTC (rev 13519)
+++ trunk/wp-admin/css/plugin-install.dev.css        2010-03-01 00:50:55 UTC (rev 13520)
</span><span class="lines">@@ -6,6 +6,11 @@
</span><span class="cx">         font-size: 19px;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+div.action-links {
+        font-weight: normal;
+        margin: 6px 0 0;
+}
+
</ins><span class="cx"> div.star {
</span><span class="cx">         height: 100%;
</span><span class="cx">         position: absolute;
</span></span></pre></div>
<a id="trunkwpadminincludesplugininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/plugin-install.php (13519 => 13520)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/plugin-install.php        2010-03-01 00:09:30 UTC (rev 13519)
+++ trunk/wp-admin/includes/plugin-install.php        2010-03-01 00:50:55 UTC (rev 13520)
</span><span class="lines">@@ -309,7 +309,6 @@
</span><span class="cx">                                 <th scope="col" class="num"><?php _e('Version'); ?></th>
</span><span class="cx">                                 <th scope="col" class="num"><?php _e('Rating'); ?></th>
</span><span class="cx">                                 <th scope="col" class="desc"><?php _e('Description'); ?></th>
</span><del>-                                <th scope="col" class="action-links"><?php _e('Actions'); ?></th>
</del><span class="cx">                         </tr>
</span><span class="cx">                 </thead>
</span><span class="cx">
</span><span class="lines">@@ -319,7 +318,6 @@
</span><span class="cx">                                 <th scope="col" class="num"><?php _e('Version'); ?></th>
</span><span class="cx">                                 <th scope="col" class="num"><?php _e('Rating'); ?></th>
</span><span class="cx">                                 <th scope="col" class="desc"><?php _e('Description'); ?></th>
</span><del>-                                <th scope="col" class="action-links"><?php _e('Actions'); ?></th>
</del><span class="cx">                         </tr>
</span><span class="cx">                 </tfoot>
</span><span class="cx">
</span><span class="lines">@@ -354,18 +352,19 @@
</span><span class="cx">
</span><span class="cx">                                 $author = wp_kses($author, $plugins_allowedtags);
</span><span class="cx">
</span><del>-                                if ( isset($plugin['homepage']) )
-                                        $title = '<a target="_blank" href="' . esc_attr($plugin['homepage']) . '">' . $title . '</a>';
-
</del><span class="cx">                                 $action_links = array();
</span><span class="cx">                                 $action_links[] = '<a href="' . admin_url('plugin-install.php?tab=plugin-information&amp;plugin=' . $plugin['slug'] .
</span><span class="cx">                                                                         '&amp;TB_iframe=true&amp;width=600&amp;height=550') . '" class="thickbox onclick" title="' .
</span><del>-                                                                        esc_attr($name) . '">' . __('Install') . '</a>';
</del><ins>+                                                                        esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __('Install') . '</a>';
+                                if ( isset( $plugin['homepage'] ) )
+                                        $action_links[] = '<a target="_blank" href="' . esc_attr( $plugin['homepage'] ) . '" title="' . esc_attr( sprintf( __( 'More information on %s' ), $name ) ) . '">' . __('Info') . '</a>';
</ins><span class="cx">
</span><span class="cx">                                 $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin);
</span><span class="cx">                         ?>
</span><span class="cx">                         <tr>
</span><del>-                                <td class="name"><?php echo $title; ?></td>
</del><ins>+                                <td class="name"><strong><?php echo $title; ?></strong>
+                                        <div class="action-links"><?php if ( !empty($action_links) ) echo implode(' | ', $action_links); ?></div>
+                                </td>
</ins><span class="cx">                                 <td class="vers"><?php echo $version; ?></td>
</span><span class="cx">                                 <td class="vers">
</span><span class="cx">                                         <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?>">
</span><span class="lines">@@ -378,7 +377,6 @@
</span><span class="cx">                                         </div>
</span><span class="cx">                                 </td>
</span><span class="cx">                                 <td class="desc"><?php echo $description, $author; ?></td>
</span><del>-                                <td class="action-links"><?php if ( !empty($action_links) )        echo implode(' | ', $action_links); ?></td>
</del><span class="cx">                         </tr>
</span><span class="cx">                         <?php
</span><span class="cx">                         }
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (13519 => 13520)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-03-01 00:09:30 UTC (rev 13519)
+++ trunk/wp-includes/script-loader.php        2010-03-01 00:50:55 UTC (rev 13520)
</span><span class="lines">@@ -471,7 +471,7 @@
</span><span class="cx">         $styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array(), '20091022' );
</span><span class="cx">         $styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20090514' );
</span><span class="cx">         $styles->add( 'login', "/wp-admin/css/login$suffix.css", array(), '20091010' );
</span><del>-        $styles->add( 'plugin-install', "/wp-admin/css/plugin-install$suffix.css", array(), '20090514' );
</del><ins>+        $styles->add( 'plugin-install', "/wp-admin/css/plugin-install$suffix.css", array(), '20100228' );
</ins><span class="cx">         $styles->add( 'theme-install', "/wp-admin/css/theme-install$suffix.css", array(), '20090610' );
</span><span class="cx">         $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
</span><span class="cx">         $styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
</span></span></pre>
</div>
</div>
</body>
</html>