<!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">                                 &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Version'); ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Rating'); ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;th scope=&quot;col&quot; class=&quot;desc&quot;&gt;&lt;?php _e('Description'); ?&gt;&lt;/th&gt;
</span><del>-                                &lt;th scope=&quot;col&quot; class=&quot;action-links&quot;&gt;&lt;?php _e('Actions'); ?&gt;&lt;/th&gt;
</del><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                 &lt;/thead&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -319,7 +318,6 @@
</span><span class="cx">                                 &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Version'); ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;th scope=&quot;col&quot; class=&quot;num&quot;&gt;&lt;?php _e('Rating'); ?&gt;&lt;/th&gt;
</span><span class="cx">                                 &lt;th scope=&quot;col&quot; class=&quot;desc&quot;&gt;&lt;?php _e('Description'); ?&gt;&lt;/th&gt;
</span><del>-                                &lt;th scope=&quot;col&quot; class=&quot;action-links&quot;&gt;&lt;?php _e('Actions'); ?&gt;&lt;/th&gt;
</del><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                 &lt;/tfoot&gt;
</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 = '&lt;a target=&quot;_blank&quot; href=&quot;' . esc_attr($plugin['homepage']) . '&quot;&gt;' . $title . '&lt;/a&gt;';
-
</del><span class="cx">                                 $action_links = array();
</span><span class="cx">                                 $action_links[] = '&lt;a href=&quot;' . admin_url('plugin-install.php?tab=plugin-information&amp;amp;plugin=' . $plugin['slug'] .
</span><span class="cx">                                                                         '&amp;amp;TB_iframe=true&amp;amp;width=600&amp;amp;height=550') . '&quot; class=&quot;thickbox onclick&quot; title=&quot;' .
</span><del>-                                                                        esc_attr($name) . '&quot;&gt;' . __('Install') . '&lt;/a&gt;';
</del><ins>+                                                                        esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '&quot;&gt;' . __('Install') . '&lt;/a&gt;';
+                                if ( isset( $plugin['homepage'] ) )
+                                        $action_links[] = '&lt;a target=&quot;_blank&quot; href=&quot;' . esc_attr( $plugin['homepage'] ) . '&quot; title=&quot;' . esc_attr( sprintf( __( 'More information on %s' ), $name ) ) . '&quot;&gt;' . __('Info') . '&lt;/a&gt;';
</ins><span class="cx"> 
</span><span class="cx">                                 $action_links = apply_filters('plugin_install_action_links', $action_links, $plugin);
</span><span class="cx">                         ?&gt;
</span><span class="cx">                         &lt;tr&gt;
</span><del>-                                &lt;td class=&quot;name&quot;&gt;&lt;?php echo $title; ?&gt;&lt;/td&gt;
</del><ins>+                                &lt;td class=&quot;name&quot;&gt;&lt;strong&gt;&lt;?php echo $title; ?&gt;&lt;/strong&gt;
+                                        &lt;div class=&quot;action-links&quot;&gt;&lt;?php if ( !empty($action_links) ) echo implode(' | ', $action_links); ?&gt;&lt;/div&gt;
+                                &lt;/td&gt;
</ins><span class="cx">                                 &lt;td class=&quot;vers&quot;&gt;&lt;?php echo $version; ?&gt;&lt;/td&gt;
</span><span class="cx">                                 &lt;td class=&quot;vers&quot;&gt;
</span><span class="cx">                                         &lt;div class=&quot;star-holder&quot; title=&quot;&lt;?php printf(_n('(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings']), number_format_i18n($plugin['num_ratings'])) ?&gt;&quot;&gt;
</span><span class="lines">@@ -378,7 +377,6 @@
</span><span class="cx">                                         &lt;/div&gt;
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                                 &lt;td class=&quot;desc&quot;&gt;&lt;?php echo $description, $author; ?&gt;&lt;/td&gt;
</span><del>-                                &lt;td class=&quot;action-links&quot;&gt;&lt;?php if ( !empty($action_links) )        echo implode(' | ', $action_links); ?&gt;&lt;/td&gt;
</del><span class="cx">                         &lt;/tr&gt;
</span><span class="cx">                         &lt;?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-&gt;add( 'press-this', &quot;/wp-admin/css/press-this$suffix.css&quot;, array(), '20091022' );
</span><span class="cx">         $styles-&gt;add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20090514' );
</span><span class="cx">         $styles-&gt;add( 'login', &quot;/wp-admin/css/login$suffix.css&quot;, array(), '20091010' );
</span><del>-        $styles-&gt;add( 'plugin-install', &quot;/wp-admin/css/plugin-install$suffix.css&quot;, array(), '20090514' );
</del><ins>+        $styles-&gt;add( 'plugin-install', &quot;/wp-admin/css/plugin-install$suffix.css&quot;, array(), '20100228' );
</ins><span class="cx">         $styles-&gt;add( 'theme-install', &quot;/wp-admin/css/theme-install$suffix.css&quot;, array(), '20090610' );
</span><span class="cx">         $styles-&gt;add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
</span><span class="cx">         $styles-&gt;add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
</span></span></pre>
</div>
</div>

</body>
</html>