<!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" />
<title>[24429] trunk/wp-admin: Add post format icons to the radio chooser.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/24429">24429</a></dd>
<dt>Author</dt> <dd>helen</dd>
<dt>Date</dt> <dd>2013-06-07 17:15:53 +0000 (Fri, 07 Jun 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add post format icons to the radio chooser. This also trims empty margins from the sprites to make them usable in RTL and make positioning numbers more sane. props ryelle, kovshenin for the initial patch. fixes <a href="http://core.trac.wordpress.org/ticket/24519">#24519</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincsscolorsclassiccss">trunk/wp-admin/css/colors-classic.css</a></li>
<li><a href="#trunkwpadmincsscolorsfreshcss">trunk/wp-admin/css/colors-fresh.css</a></li>
<li><a href="#trunkwpadmincsswpadminrtlcss">trunk/wp-admin/css/wp-admin-rtl.css</a></li>
<li><a href="#trunkwpadmincsswpadmincss">trunk/wp-admin/css/wp-admin.css</a></li>
<li><a href="#trunkwpadminimagespostformatsvspng">trunk/wp-admin/images/post-formats-vs.png</a></li>
<li><a href="#trunkwpadminimagespostformatspng">trunk/wp-admin/images/post-formats.png</a></li>
<li><a href="#trunkwpadminimagespostformats32vspng">trunk/wp-admin/images/post-formats32-vs.png</a></li>
<li><a href="#trunkwpadminimagespostformats32png">trunk/wp-admin/images/post-formats32.png</a></li>
<li><a href="#trunkwpadminincludesclasswppostslisttablephp">trunk/wp-admin/includes/class-wp-posts-list-table.php</a></li>
<li><a href="#trunkwpadminincludesmetaboxesphp">trunk/wp-admin/includes/meta-boxes.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincsscolorsclassiccss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-classic.css (24428 => 24429)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-classic.css 2013-06-07 17:01:22 UTC (rev 24428)
+++ trunk/wp-admin/css/colors-classic.css 2013-06-07 17:15:53 UTC (rev 24429)
</span><span class="lines">@@ -1460,7 +1460,7 @@
</span><span class="cx">
</span><span class="cx"> /* Post format icons */
</span><span class="cx">
</span><del>-a.post-state-format {
</del><ins>+.post-format-icon {
</ins><span class="cx"> background: url(../images/post-formats-vs.png) no-repeat;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2283,9 +2283,9 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> /* 16px post formats */
</span><del>- a.post-state-format {
</del><ins>+ .post-format-icon {
</ins><span class="cx"> background-image: url(../images/post-formats32-vs.png);
</span><del>- background-size: 32px 320px;
</del><ins>+ background-size: 16px 304px;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadmincsscolorsfreshcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-fresh.css (24428 => 24429)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-fresh.css 2013-06-07 17:01:22 UTC (rev 24428)
+++ trunk/wp-admin/css/colors-fresh.css 2013-06-07 17:15:53 UTC (rev 24429)
</span><span class="lines">@@ -1354,7 +1354,7 @@
</span><span class="cx">
</span><span class="cx"> /* Post format icons */
</span><span class="cx">
</span><del>-a.post-state-format {
</del><ins>+.post-format-icon {
</ins><span class="cx"> background: url(../images/post-formats.png) no-repeat;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -2171,9 +2171,9 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> /* 16px post formats */
</span><del>- a.post-state-format {
</del><ins>+ .post-format-icon {
</ins><span class="cx"> background-image: url(../images/post-formats32.png);
</span><del>- background-size: 32px 320px;
</del><ins>+ background-size: 16px 304px;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadmincsswpadminrtlcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin-rtl.css (24428 => 24429)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin-rtl.css 2013-06-07 17:01:22 UTC (rev 24428)
+++ trunk/wp-admin/css/wp-admin-rtl.css 2013-06-07 17:15:53 UTC (rev 24429)
</span><span class="lines">@@ -1053,6 +1053,53 @@
</span><span class="cx"> margin-left: 5px;
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+label.post-format-icon {
+ margin-left: 0;
+ margin-right: 5px;
+ padding-left: 0px;
+ padding-right: 21px;
+}
+
+.post-format-icon.post-format-standard {
+ background-position: 100% 0;
+}
+
+.post-format-icon.post-format-image {
+ background-position: 100% -32px;
+}
+
+.post-format-icon.post-format-gallery {
+ background-position: 100% -64px;
+}
+
+.post-format-icon.post-format-audio {
+ background-position: 100% -96px;
+}
+
+.post-format-icon.post-format-video {
+ background-position: 100% -128px;
+}
+
+.post-format-icon.post-format-chat {
+ background-position: 100% -160px;
+}
+
+.post-format-icon.post-format-status {
+ background-position: 100% -192px;
+}
+
+.post-format-icon.post-format-aside {
+ background-position: 100% -224px;
+}
+
+.post-format-icon.post-format-quote {
+ background-position: 100% -256px;
+}
+
+.post-format-icon.post-format-link {
+ background-position: 100% -288px;
+}
+
</ins><span class="cx"> /*------------------------------------------------------------------------------
</span><span class="cx"> 12.0 - Categories
</span><span class="cx"> ------------------------------------------------------------------------------*/
</span></span></pre></div>
<a id="trunkwpadmincsswpadmincss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin.css (24428 => 24429)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin.css 2013-06-07 17:01:22 UTC (rev 24428)
+++ trunk/wp-admin/css/wp-admin.css 2013-06-07 17:15:53 UTC (rev 24429)
</span><span class="lines">@@ -3946,43 +3946,56 @@
</span><span class="cx"> text-indent: -999em;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-image {
- background-position: -8px -40px;
</del><ins>+#post-formats-select {
+ line-height: 2em;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-gallery {
- background-position: -8px -72px;
</del><ins>+label.post-format-icon {
+ margin-left: 5px;
+ padding: 2px 0 2px 21px;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-audio {
- background-position: -8px -104px;
</del><ins>+.post-format-icon.post-format-standard {
+ background-position: 0 0;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-video {
- background-position: -8px -136px;
</del><ins>+.post-format-icon.post-format-image {
+ background-position: 0 -32px;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-chat {
- background-position: -8px -168px;
</del><ins>+.post-format-icon.post-format-gallery {
+ background-position: 0 -64px;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-status {
- background-position: -8px -200px;
</del><ins>+.post-format-icon.post-format-audio {
+ background-position: 0 -96px;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-aside {
- background-position: -8px -232px;
</del><ins>+.post-format-icon.post-format-video {
+ background-position: 0 -128px;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-quote {
- background-position: -8px -265px;
</del><ins>+.post-format-icon.post-format-chat {
+ background-position: 0 -160px;
</ins><span class="cx"> }
</span><span class="cx">
</span><del>-a.post-state-format.format-link {
- background-position: -8px -296px;
</del><ins>+.post-format-icon.post-format-status {
+ background-position: 0 -192px;
</ins><span class="cx"> }
</span><span class="cx">
</span><ins>+.post-format-icon.post-format-aside {
+ background-position: 0 -224px;
+}
</ins><span class="cx">
</span><ins>+.post-format-icon.post-format-quote {
+ background-position: 0 -256px;
+}
+
+.post-format-icon.post-format-link {
+ background-position: 0 -288px;
+}
+
+
</ins><span class="cx"> /*------------------------------------------------------------------------------
</span><span class="cx"> 12.0 - Categories
</span><span class="cx"> ------------------------------------------------------------------------------*/
</span><span class="lines">@@ -6432,8 +6445,7 @@
</span><span class="cx"> width: 250px;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-#post-visibility-select,
-#post-formats-select {
</del><ins>+#post-visibility-select {
</ins><span class="cx"> line-height: 1.5em;
</span><span class="cx"> margin-top: 3px;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadminimagespostformatsvspng"></a>
<div class="binary"><h4>Modified: trunk/wp-admin/images/post-formats-vs.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkwpadminimagespostformatspng"></a>
<div class="binary"><h4>Modified: trunk/wp-admin/images/post-formats.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkwpadminimagespostformats32vspng"></a>
<div class="binary"><h4>Modified: trunk/wp-admin/images/post-formats32-vs.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkwpadminimagespostformats32png"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/images/post-formats32.png (24428 => 24429)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/images/post-formats32.png 2013-06-07 17:01:22 UTC (rev 24428)
+++ trunk/wp-admin/images/post-formats32.png 2013-06-07 17:15:53 UTC (rev 24429)
</span><span class="lines">@@ -1,106 +1,64 @@
</span><span class="cx"> \x89PNG
</span><span class="cx">
</span><span class="cx">