<!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>[BuddyPress][4097] trunk/bp-xprofile: First pass at making the XProfile admin area more closely match the WordPress UI.</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, #logmsg > ol { margin-left: 0; 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>4097</dd>
<dt>Author</dt> <dd>johnjamesjacoby</dd>
<dt>Date</dt> <dd>2011-03-10 12:15:05 +0000 (Thu, 10 Mar 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>First pass at making the XProfile admin area more closely match the WordPress UI.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpxprofileadmincssadmindevcss">trunk/bp-xprofile/admin/css/admin.dev.css</a></li>
<li><a href="#trunkbpxprofilebpxprofileadminphp">trunk/bp-xprofile/bp-xprofile-admin.php</a></li>
<li><a href="#trunkbpxprofilebpxprofileclassesphp">trunk/bp-xprofile/bp-xprofile-classes.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpxprofileadmincssadmindevcss"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/admin/css/admin.dev.css (4096 => 4097)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/admin/css/admin.dev.css        2011-03-10 10:48:38 UTC (rev 4096)
+++ trunk/bp-xprofile/admin/css/admin.dev.css        2011-03-10 12:15:05 UTC (rev 4097)
</span><span class="lines">@@ -2,6 +2,17 @@
</span><span class="cx"> div#icon-buddypress {
</span><span class="cx">         background: url( ../../../bp-core/images/icons32.png ) no-repeat -4px 0px;
</span><span class="cx"> }
</span><ins>+
+#tabs-bottom {
+        background: #DFDFDF url(../../../../../wp-admin/images/gray-grad.png) repeat-x scroll 0% 0%;
+        height: 32px;
+        border: 1px solid #ccc;
+        -moz-border-radius: 0 0 5px 5px;
+        -khtml-border-radius: 0 0 5px 5px;
+        -webkit-border-radius: 0 0 5px 5px;
+        border-radius: 0 0 5px 5px;
+}
+
</ins><span class="cx"> #tabs {
</span><span class="cx">         position: relative;
</span><span class="cx">         }
</span><span class="lines">@@ -18,7 +29,7 @@
</span><span class="cx">                 ul#field-group-tabs li {
</span><span class="cx">                         float: left;
</span><span class="cx">                         margin-bottom: -1px;
</span><del>-                        background-color: #F7F6F1;
</del><ins>+                        background-color: transparent;
</ins><span class="cx">                         margin-right: 8px;
</span><span class="cx">                 }
</span><span class="cx">                 ul#field-group-tabs li.ui-state-hover {
</span><span class="lines">@@ -35,7 +46,7 @@
</span><span class="cx">                         background-color: #efe;
</span><span class="cx">                 }
</span><span class="cx">                         ul#field-group-tabs li.ui-tabs-selected.ui-state-acceptable a.ui-tab {
</span><del>-                                background-color: #fff;
</del><ins>+                                background-color: #ECECEC;
</ins><span class="cx">                                 background-image: url(../images/cross.gif);
</span><span class="cx">                         }
</span><span class="cx">                 ul#field-group-tabs li.drop-candidate a.ui-tab {
</span><span class="lines">@@ -46,26 +57,24 @@
</span><span class="cx">                 ul#field-group-tabs li a.ui-tab {
</span><span class="cx">                         display: block;
</span><span class="cx">                         margin-top: 3px;
</span><del>-                        padding: 8px 10px 8px 28px;
</del><ins>+                        padding: 5px 10px 5px 28px;
</ins><span class="cx">                         border: 1px solid #ccc;
</span><span class="cx">                         border-bottom: none;
</span><del>-                        -moz-border-radius: 5px 5px 0 0;
-                        -khtml-border-radius: 5px 5px 0 0;
-                        -webkit-border-radius: 5px 5px 0 0;
-                        border-radius: 5px 5px 0 0;
</del><ins>+                        -moz-border-radius: 6px 56x 0 0;
+                        -khtml-border-radius: 6px 6px 0 0;
+                        -webkit-border-radius: 6px 6px 0 0;
+                        border-radius: 6px 6px 0 0;
</ins><span class="cx">                         text-decoration: none;
</span><del>-                        background: url(../images/move-x.gif) 7px 55% no-repeat;
</del><ins>+                        background: #F4F4F4 url(../images/move-x.gif) 7px 55% no-repeat;
</ins><span class="cx">                         color: #888;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 /* Selected tab */
</span><del>-                ul#field-group-tabs li.ui-tabs-selected {
-                        background-color: #fff;
-                }
</del><span class="cx">                 ul#field-group-tabs li.ui-tabs-selected a.ui-tab {
</span><ins>+                        background-color: #ECECEC;
</ins><span class="cx">                         margin-top: -1px;
</span><del>-                        padding: 10px 10px 10px 28px;
-                        border: 1px solid #bbb;
</del><ins>+                        padding: 7px 10px 7px 28px;
+                        border: 1px solid #ccc;
</ins><span class="cx">                         border-bottom: 1px solid transparent;
</span><span class="cx">                         color: #000;
</span><span class="cx">                         font-weight: bold;
</span><span class="lines">@@ -73,16 +82,41 @@
</span><span class="cx"> 
</span><span class="cx">         /* Toolbar */
</span><span class="cx">         .tab-toolbar {
</span><del>-                margin-top: 1px;
</del><ins>+                background: #DFDFDF url(../../../../../wp-admin/images/gray-grad.png) repeat-x scroll 0% 0%;
+                border-width: 1px 1px 0px;
+                -moz-border-radius: 6px 6px 0 0;
+                -khtml-border-radius: 6px 6px 0 0;
+                -webkit-border-radius: 6px 6px 0 0;
+                border-radius: 6px 6px 0 0;
+                margin: -20px -21px 20px -21px;
</ins><span class="cx">                 clear: left;
</span><del>-                background-color: #fff;
</del><span class="cx">                 padding: 10px;
</span><del>-                border: 1px solid #bbb;
</del><ins>+                border: 1px solid #ccc;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        .tab-toolbar a.button {
+                padding: 5px 10px;
+        }
+
+        .tab-toolbar a.deletion {
+                color: #f00;
+                border-bottom: 1px solid #f00;
+                font-size: 11px;
+                text-decoration: none;
+                padding: 0 2px;
+                margin-top: -2px;
+        }
+
</ins><span class="cx">         div.tab-wrapper {
</span><ins>+                background-color: #f9f9f9;
</ins><span class="cx">                 clear: left;
</span><del>-                margin-bottom: 20px;
</del><ins>+                padding: 20px;
+                border-left: 1px solid #ccc;
+                border-right: 1px solid #ccc;
+                -moz-border-radius: 6px 6px 0 0;
+                -khtml-border-radius: 6px 6px 0 0;
+                -webkit-border-radius: 6px 6px 0 0;
+                border-radius: 6px 6px 0 0;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         .tab-wrapper fieldset {
</span><span class="lines">@@ -91,15 +125,22 @@
</span><span class="cx">                 -khtml-border-radius: 5px;
</span><span class="cx">                 -webkit-border-radius: 5px;
</span><span class="cx">                 border-radius: 5px;
</span><del>-                padding: 0 10px 10px;
</del><ins>+                padding: 40px 20px 20px;
</ins><span class="cx">                 margin: 10px 0 0 0;
</span><span class="cx">                 position: relative;
</span><del>-                background-color: #fff;
</del><ins>+                cursor: default !important;
+                background: #fff url(../../../../../wp-admin/images/gray-grad.png) repeat-x scroll 0% 0%;
</ins><span class="cx">         }
</span><span class="cx">         .tab-wrapper fieldset fieldset {
</span><del>-                padding: 10px 10px 20px 10px;
-                background-color: #fcfcfc;
</del><ins>+                cursor: move !important;
+                padding: 40px 10px 10px 10px;
+                background: #fcfcfc url(../../../../../wp-admin/images/gray-grad.png) repeat-x scroll 0% 0%;
</ins><span class="cx">         }
</span><ins>+        .tab-wrapper fieldset legend {
+                position: absolute;
+                top: 6px;
+                font-weight: bold;
+        }
</ins><span class="cx">                 .field-group fieldset:hover {
</span><span class="cx">                         background-color: #fafafa;
</span><span class="cx">                         border-color: #ccc;
</span><span class="lines">@@ -122,8 +163,8 @@
</span><span class="cx">         }
</span><span class="cx">         .field-group div.actions {
</span><span class="cx">                 position: absolute;
</span><del>-                right: 20px;
-                top: 0;
</del><ins>+                right: 10px;
+                top: 6px;
</ins><span class="cx">         }
</span><span class="cx">         .field-group fieldset:hover div.actions {
</span><span class="cx">                 display: block;
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofileadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-admin.php (4096 => 4097)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-admin.php        2011-03-10 10:48:38 UTC (rev 4096)
+++ trunk/bp-xprofile/bp-xprofile-admin.php        2011-03-10 12:15:05 UTC (rev 4097)
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php                                if ( $group-&gt;can_delete ) : ?&gt;
</span><span class="cx"> 
</span><del>-                                                                &lt;a class=&quot;button delete&quot; href=&quot;admin.php?page=bp-profile-setup&amp;amp;mode=delete_group&amp;amp;group_id=&lt;?php echo esc_attr( $group-&gt;id ); ?&gt;&quot;&gt;&lt;?php _e( 'Delete Group', 'buddypress' ); ?&gt;&lt;/a&gt;
</del><ins>+                                                                &lt;a class=&quot;submitdelete deletion&quot; href=&quot;admin.php?page=bp-profile-setup&amp;amp;mode=delete_group&amp;amp;group_id=&lt;?php echo esc_attr( $group-&gt;id ); ?&gt;&quot;&gt;&lt;?php _e( 'Delete Group', 'buddypress' ); ?&gt;&lt;/a&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php                                endif; ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -152,6 +152,9 @@
</span><span class="cx"> &lt;?php
</span><span class="cx">                                 endif;
</span><span class="cx"> ?&gt;
</span><ins>+                                &lt;div id=&quot;tabs-bottom&quot;&gt;
+                                        &amp;nbsp;
+                                &lt;/div&gt;
</ins><span class="cx">                         &lt;/form&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><span class="cx"> &lt;?php
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofileclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-classes.php (4096 => 4097)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-classes.php        2011-03-10 10:48:38 UTC (rev 4096)
+++ trunk/bp-xprofile/bp-xprofile-classes.php        2011-03-10 12:15:05 UTC (rev 4097)
</span><span class="lines">@@ -220,7 +220,9 @@
</span><span class="cx">                 }
</span><span class="cx"> ?&gt;
</span><span class="cx">                 &lt;div class=&quot;wrap&quot;&gt;
</span><del>-                        &lt;div class=&quot;icon32&quot; id=&quot;icon-tools&quot;&gt;&lt;br&gt;&lt;/div&gt;
</del><ins>+
+                        &lt;?php screen_icon( 'buddypress' ); ?&gt;
+
</ins><span class="cx">                         &lt;h2&gt;&lt;?php echo $title; ?&gt;&lt;/h2&gt;
</span><span class="cx">                         &lt;p&gt;&lt;?php _e( 'Fields marked * are required', 'buddypress' ) ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>