<!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>[12781] trunk/wp-admin: Screen icons for site admin pages.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12781">12781</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-01-20 22:35:21 +0000 (Wed, 20 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Screen icons for site admin pages. Using temp icon until new ones are done. see <a href="http://trac.wordpress.org/ticket/11644">#11644</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
<li><a href="#trunkwpadminmsadminphp">trunk/wp-admin/ms-admin.php</a></li>
<li><a href="#trunkwpadminmsoptionsphp">trunk/wp-admin/ms-options.php</a></li>
<li><a href="#trunkwpadminmssitesphp">trunk/wp-admin/ms-sites.php</a></li>
<li><a href="#trunkwpadminmsthemesphp">trunk/wp-admin/ms-themes.php</a></li>
<li><a href="#trunkwpadminmsupgradesitephp">trunk/wp-admin/ms-upgrade-site.php</a></li>
<li><a href="#trunkwpadminmsusersphp">trunk/wp-admin/ms-users.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (12780 => 12781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2010-01-20 22:11:02 UTC (rev 12780)
+++ trunk/wp-admin/includes/template.php        2010-01-20 22:35:21 UTC (rev 12781)
</span><span class="lines">@@ -3747,7 +3747,12 @@
</span><span class="cx">                         $name = $screen-&gt;parent_base;
</span><span class="cx">                 else
</span><span class="cx">                         $name = $screen-&gt;base;
</span><ins>+
+                // @todo Remove this once we have a site admin icon
+                if ( 'ms-admin' == $screen-&gt;parent_base )
+                        $name = 'tools';
</ins><span class="cx">         }
</span><ins>+
</ins><span class="cx"> ?&gt;
</span><span class="cx">         &lt;div id=&quot;icon-&lt;?php echo $name; ?&gt;&quot; class=&quot;icon32&quot;&gt;&lt;br /&gt;&lt;/div&gt;
</span><span class="cx"> &lt;?php
</span></span></pre></div>
<a id="trunkwpadminmsadminphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-admin.php (12780 => 12781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-admin.php        2010-01-20 22:11:02 UTC (rev 12780)
+++ trunk/wp-admin/ms-admin.php        2010-01-20 22:35:21 UTC (rev 12781)
</span><span class="lines">@@ -29,6 +29,7 @@
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><ins>+        &lt;?php screen_icon(); ?&gt;
</ins><span class="cx">         &lt;h2&gt;&lt;?php echo esc_html( $title ); ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;ul class=&quot;subsubsub&quot;&gt;
</span></span></pre></div>
<a id="trunkwpadminmsoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-options.php (12780 => 12781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-options.php        2010-01-20 22:11:02 UTC (rev 12780)
+++ trunk/wp-admin/ms-options.php        2010-01-20 22:35:21 UTC (rev 12781)
</span><span class="lines">@@ -20,6 +20,7 @@
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><ins>+        &lt;?php screen_icon(); ?&gt;
</ins><span class="cx">         &lt;h2&gt;&lt;?php _e('Site Options') ?&gt;&lt;/h2&gt;
</span><span class="cx">         &lt;form method=&quot;post&quot; action=&quot;ms-edit.php?action=siteoptions&quot;&gt;
</span><span class="cx">                 &lt;?php wp_nonce_field( &quot;siteoptions&quot; ); ?&gt;
</span></span></pre></div>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (12780 => 12781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-01-20 22:11:02 UTC (rev 12780)
+++ trunk/wp-admin/ms-sites.php        2010-01-20 22:35:21 UTC (rev 12781)
</span><span class="lines">@@ -79,6 +79,7 @@
</span><span class="cx">                 $editblog_roles = get_blog_option( $id, &quot;{$blog_prefix}user_roles&quot; );
</span><span class="cx">                 ?&gt;
</span><span class="cx">                 &lt;div class=&quot;wrap&quot;&gt;
</span><ins>+                &lt;?php screen_icon(); ?&gt;
</ins><span class="cx">                 &lt;h2&gt;&lt;?php _e('Edit Blog'); ?&gt; - &lt;a href='http://&lt;?php echo $details['domain'].$details['path']; ?&gt;'&gt;http://&lt;?php echo $details['domain'].$details['path']; ?&gt;&lt;/a&gt;&lt;/h2&gt;
</span><span class="cx">                 &lt;form method=&quot;post&quot; action=&quot;ms-edit.php?action=updateblog&quot;&gt;
</span><span class="cx">                         &lt;?php wp_nonce_field('editblog'); ?&gt;
</span><span class="lines">@@ -369,6 +370,7 @@
</span><span class="cx">                 ?&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;wrap&quot; style=&quot;position:relative;&quot;&gt;
</span><ins>+                &lt;?php screen_icon(); ?&gt;
</ins><span class="cx">                 &lt;h2&gt;&lt;?php _e('Blogs') ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;form action=&quot;ms-sites.php&quot; method=&quot;get&quot; id=&quot;ms-search&quot;&gt;
</span><span class="lines">@@ -579,6 +581,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx">                         &lt;a name=&quot;form-add-blog&quot;&gt;&lt;/a&gt;
</span><ins>+                        &lt;?php screen_icon(); ?&gt;
</ins><span class="cx">                         &lt;h2&gt;&lt;?php _e('Add Blog') ?&gt;&lt;/h2&gt;
</span><span class="cx">                         &lt;form method=&quot;post&quot; action=&quot;ms-edit.php?action=addblog&quot;&gt;
</span><span class="cx">                                 &lt;?php wp_nonce_field('add-blog') ?&gt;
</span></span></pre></div>
<a id="trunkwpadminmsthemesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-themes.php (12780 => 12781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-themes.php        2010-01-20 22:11:02 UTC (rev 12780)
+++ trunk/wp-admin/ms-themes.php        2010-01-20 22:35:21 UTC (rev 12781)
</span><span class="lines">@@ -20,6 +20,7 @@
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx">         &lt;form action='ms-edit.php?action=updatethemes' method='post'&gt;
</span><ins>+                &lt;?php screen_icon(); ?&gt;
</ins><span class="cx">                 &lt;h2&gt;&lt;?php _e('Site Themes') ?&gt;&lt;/h2&gt;
</span><span class="cx">                 &lt;p&gt;&lt;?php _e('Disable themes site-wide. You can enable themes on a site by site basis.') ?&gt;&lt;/p&gt;
</span><span class="cx">                 &lt;table class=&quot;widefat&quot;&gt;
</span></span></pre></div>
<a id="trunkwpadminmsupgradesitephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-upgrade-site.php (12780 => 12781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-upgrade-site.php        2010-01-20 22:11:02 UTC (rev 12780)
+++ trunk/wp-admin/ms-upgrade-site.php        2010-01-20 22:35:21 UTC (rev 12781)
</span><span class="lines">@@ -14,6 +14,7 @@
</span><span class="cx">         wp_die( __('You do not have permission to access this page.') );
</span><span class="cx"> 
</span><span class="cx"> echo '&lt;div class=&quot;wrap&quot;&gt;';
</span><ins>+screen_icon();
</ins><span class="cx"> echo '&lt;h2&gt;'.__('Upgrade Site').'&lt;/h2&gt;';
</span><span class="cx"> switch( $_GET['action'] ) {
</span><span class="cx">         case &quot;upgrade&quot;:
</span></span></pre></div>
<a id="trunkwpadminmsusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-users.php (12780 => 12781)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-users.php        2010-01-20 22:11:02 UTC (rev 12780)
+++ trunk/wp-admin/ms-users.php        2010-01-20 22:35:21 UTC (rev 12781)
</span><span class="lines">@@ -54,29 +54,26 @@
</span><span class="cx">                 $query .= &quot; WHERE user_login LIKE '$search' OR user_email LIKE '$search'&quot;;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( !isset($_GET['sortby']) ) {
</del><ins>+        if ( !isset($_GET['sortby']) )
</ins><span class="cx">                 $_GET['sortby'] = 'id';
</span><del>-        }
</del><span class="cx"> 
</span><del>-        if ( $_GET['sortby'] == 'email' ) {
</del><ins>+        if ( $_GET['sortby'] == 'email' )
</ins><span class="cx">                 $query .= ' ORDER BY user_email ';
</span><del>-        } elseif ( $_GET['sortby'] == 'id' ) {
</del><ins>+        elseif ( $_GET['sortby'] == 'id' )
</ins><span class="cx">                 $query .= ' ORDER BY ID ';
</span><del>-        } elseif ( $_GET['sortby'] == 'login' ) {
</del><ins>+        elseif ( $_GET['sortby'] == 'login' )
</ins><span class="cx">                 $query .= ' ORDER BY user_login ';
</span><del>-        } elseif ( $_GET['sortby'] == 'name' ) {
</del><ins>+        elseif ( $_GET['sortby'] == 'name' )
</ins><span class="cx">                 $query .= ' ORDER BY display_name ';
</span><del>-        } elseif ( $_GET['sortby'] == 'registered' ) {
</del><ins>+        elseif ( $_GET['sortby'] == 'registered' )
</ins><span class="cx">                 $query .= ' ORDER BY user_registered ';
</span><del>-        }
</del><span class="cx"> 
</span><span class="cx">         $query .= ( $_GET['order'] == 'DESC' ) ? 'DESC' : 'ASC';
</span><span class="cx"> 
</span><del>-        if ( !empty( $s )) {
</del><ins>+        if ( !empty( $s ) )
</ins><span class="cx">                 $total = $wpdb-&gt;get_var( str_replace('SELECT *', 'SELECT COUNT(ID)', $query) );
</span><del>-        } else {
</del><ins>+        else
</ins><span class="cx">                 $total = $wpdb-&gt;get_var( &quot;SELECT COUNT(ID) FROM {$wpdb-&gt;users}&quot;);
</span><del>-        }
</del><span class="cx"> 
</span><span class="cx">         $query .= &quot; LIMIT &quot; . intval( ( $apage - 1 ) * $num) . &quot;, &quot; . intval( $num );
</span><span class="cx"> 
</span><span class="lines">@@ -101,7 +98,8 @@
</span><span class="cx"> 
</span><span class="cx">         ?&gt;
</span><span class="cx">         &lt;div class=&quot;wrap&quot;&gt;
</span><del>-        &lt;h2&gt;&lt;?php _e( $current_site-&gt;site_name ); ?&gt; &lt;?php _e(&quot;Users&quot;); ?&gt;&lt;/h2&gt;
</del><ins>+        &lt;?php screen_icon(); ?&gt;
+        &lt;h2&gt;&lt;?php esc_html_e(&quot;Users&quot;); ?&gt;&lt;/h2&gt;
</ins><span class="cx">         &lt;form action=&quot;ms-users.php&quot; method=&quot;get&quot; class=&quot;search-form&quot;&gt;
</span><span class="cx">                 &lt;p class=&quot;search-box&quot;&gt;
</span><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php if ( isset($_GET['s']) ) esc_attr( stripslashes( $s ) ); ?&gt;&quot; class=&quot;search-input&quot; id=&quot;user-search-input&quot; /&gt;
</span></span></pre>
</div>
</div>

</body>
</html>