<!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][4287] trunk: Correct zebra striping.</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>4287</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2011-04-24 21:34:40 +0000 (Sun, 24 Apr 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Correct zebra striping. Fixes #3074</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivityscreensphp">trunk/bp-activity/bp-activity-screens.php</a></li>
<li><a href="#trunkbpcoredeprecated13php">trunk/bp-core/deprecated/1.3.php</a></li>
<li><a href="#trunkbpfriendsbpfriendsscreensphp">trunk/bp-friends/bp-friends-screens.php</a></li>
<li><a href="#trunkbpgroupsbpgroupsscreensphp">trunk/bp-groups/bp-groups-screens.php</a></li>
<li><a href="#trunkbpmessagesbpmessagesscreensphp">trunk/bp-messages/bp-messages-screens.php</a></li>
<li><a href="#trunkbpthemesbpdefault_incglobaljs">trunk/bp-themes/bp-default/_inc/global.js</a></li>
<li><a href="#trunkbpthemesbpdefaultforumsforumsloopphp">trunk/bp-themes/bp-default/forums/forums-loop.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglemessagesmessagesloopphp">trunk/bp-themes/bp-default/members/single/messages/messages-loop.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglemessagesnoticesloopphp">trunk/bp-themes/bp-default/members/single/messages/notices-loop.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglemessagessinglephp">trunk/bp-themes/bp-default/members/single/messages/single.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssingleprofileprofileloopphp">trunk/bp-themes/bp-default/members/single/profile/profile-loop.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssingleprofileprofilewpphp">trunk/bp-themes/bp-default/members/single/profile/profile-wp.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivityscreensphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-screens.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-screens.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-activity/bp-activity-screens.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -140,7 +140,7 @@
</span><span class="cx">         if ( !$reply = get_user_meta( $bp-&gt;displayed_user-&gt;id, 'notification_activity_new_reply', true ) )
</span><span class="cx">                 $reply = 'yes'; ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;table class=&quot;notification-settings zebra&quot; id=&quot;activity-notification-settings&quot;&gt;
</del><ins>+        &lt;table class=&quot;notification-settings&quot; id=&quot;activity-notification-settings&quot;&gt;
</ins><span class="cx">                 &lt;thead&gt;
</span><span class="cx">                         &lt;tr&gt;
</span><span class="cx">                                 &lt;th class=&quot;icon&quot;&gt;&amp;nbsp;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkbpcoredeprecated13php"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/deprecated/1.3.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/deprecated/1.3.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-core/deprecated/1.3.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -242,7 +242,7 @@
</span><span class="cx"> &lt;div class=&quot;bp-widget wp-profile&quot;&gt;
</span><span class="cx">         &lt;h4&gt;&lt;?php _e( 'My Profile' ) ?&gt;&lt;/h4&gt;
</span><span class="cx"> 
</span><del>-        &lt;table class=&quot;wp-profile-fields zebra&quot;&gt;
</del><ins>+        &lt;table class=&quot;wp-profile-fields&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">                 &lt;?php if ( $ud-&gt;display_name ) : ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpfriendsbpfriendsscreensphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends/bp-friends-screens.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends/bp-friends-screens.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-friends/bp-friends-screens.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">                 $accept_requests = 'yes';
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;table class=&quot;notification-settings zebra&quot; id=&quot;friends-notification-settings&quot;&gt;
</del><ins>+        &lt;table class=&quot;notification-settings&quot; id=&quot;friends-notification-settings&quot;&gt;
</ins><span class="cx">                 &lt;thead&gt;
</span><span class="cx">                         &lt;tr&gt;
</span><span class="cx">                                 &lt;th class=&quot;icon&quot;&gt;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupsscreensphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-screens.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-screens.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-groups/bp-groups-screens.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -790,7 +790,7 @@
</span><span class="cx">                 $group_request = 'yes';
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;table class=&quot;notification-settings zebra&quot; id=&quot;groups-notification-settings&quot;&gt;
</del><ins>+        &lt;table class=&quot;notification-settings&quot; id=&quot;groups-notification-settings&quot;&gt;
</ins><span class="cx">                 &lt;thead&gt;
</span><span class="cx">                         &lt;tr&gt;
</span><span class="cx">                                 &lt;th class=&quot;icon&quot;&gt;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkbpmessagesbpmessagesscreensphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-messages/bp-messages-screens.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-messages/bp-messages-screens.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-messages/bp-messages-screens.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -111,7 +111,7 @@
</span><span class="cx">                 $new_notices  = 'yes';
</span><span class="cx"> ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;table class=&quot;notification-settings zebra&quot; id=&quot;messages-notification-settings&quot;&gt;
</del><ins>+        &lt;table class=&quot;notification-settings&quot; id=&quot;messages-notification-settings&quot;&gt;
</ins><span class="cx">                 &lt;thead&gt;
</span><span class="cx">                         &lt;tr&gt;
</span><span class="cx">                                 &lt;th class=&quot;icon&quot;&gt;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_incglobaljs"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/global.js (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/global.js        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-themes/bp-default/_inc/global.js        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -853,21 +853,6 @@
</span><span class="cx">                 return false;
</span><span class="cx">         });
</span><span class="cx"> 
</span><del>-        /** Alternate Highlighting ******************************************/
-
-        jq('body#bp-default table.zebra tbody tr').mouseover( function() {
-                jq(this).addClass('over');
-        }).mouseout( function() {
-                jq(this).removeClass('over');
-        });
-
-        jq('body#bp-default table.zebra tbody tr:odd').addClass('alt');
-
-        jq('div.message-box').each( function(i) {
-                if ( i % 2 == 1 )
-                        jq(this).addClass('alt');
-        });
-
</del><span class="cx">         /** Private Messaging ******************************************/
</span><span class="cx"> 
</span><span class="cx">         /* AJAX send reply functionality */
</span><span class="lines">@@ -906,12 +891,6 @@
</span><span class="cx">                                         jq(&quot;div.new-message&quot;).hide().slideDown( 200, function() {
</span><span class="cx">                                                 jq('div.new-message').removeClass('new-message');
</span><span class="cx">                                         });
</span><del>-
-                                        jq('div.message-box').each( function(i) {
-                                                jq(this).removeClass('alt');
-                                                if ( i % 2 != 1 )
-                                                        jq(this).addClass('alt');
-                                        });
</del><span class="cx">                                 }
</span><span class="cx">                                 jq('form#send-reply span.ajax-loader').toggle();
</span><span class="cx">                         });
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultforumsforumsloopphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/forums/forums-loop.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/forums/forums-loop.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-themes/bp-default/forums/forums-loop.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx"> 
</span><span class="cx">         &lt;?php do_action( 'bp_before_directory_forums_list' ); ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;table class=&quot;forum zebra&quot;&gt;
</del><ins>+        &lt;table class=&quot;forum&quot;&gt;
</ins><span class="cx">                 &lt;thead&gt;
</span><span class="cx">                         &lt;tr&gt;
</span><span class="cx">                                 &lt;th id=&quot;th-title&quot;&gt;&lt;?php _e( 'Topic Title', 'buddypress' ); ?&gt;&lt;/th&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssinglemessagesmessagesloopphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/messages/messages-loop.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/messages/messages-loop.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-themes/bp-default/members/single/messages/messages-loop.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -17,10 +17,10 @@
</span><span class="cx">         &lt;?php do_action( 'bp_after_member_messages_pagination' ) ?&gt;
</span><span class="cx">         &lt;?php do_action( 'bp_before_member_messages_threads' ) ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;table id=&quot;message-threads&quot; class=&quot;zebra messages-notices&quot;&gt;
</del><ins>+        &lt;table id=&quot;message-threads&quot; class=&quot;messages-notices&quot;&gt;
</ins><span class="cx">                 &lt;?php while ( bp_message_threads() ) : bp_message_thread(); ?&gt;
</span><span class="cx"> 
</span><del>-                        &lt;tr id=&quot;m-&lt;?php bp_message_thread_id() ?&gt;&quot;&lt;?php if ( bp_message_thread_has_unread() ) : ?&gt; class=&quot;unread&quot;&lt;?php else: ?&gt; class=&quot;read&quot;&lt;?php endif; ?&gt;&gt;
</del><ins>+                        &lt;tr id=&quot;m-&lt;?php bp_message_thread_id() ?&gt;&quot; class=&quot;&lt;?php bp_message_css_class(); ?&gt;&lt;?php if ( bp_message_thread_has_unread() ) : ?&gt; unread&quot;&lt;?php else: ?&gt; read&quot;&lt;?php endif; ?&gt;&gt;
</ins><span class="cx">                                 &lt;td width=&quot;1%&quot; class=&quot;thread-count&quot;&gt;
</span><span class="cx">                                         &lt;span class=&quot;unread-count&quot;&gt;&lt;?php bp_message_thread_unread_count() ?&gt;&lt;/span&gt;
</span><span class="cx">                                 &lt;/td&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssinglemessagesnoticesloopphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/messages/notices-loop.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/messages/notices-loop.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-themes/bp-default/members/single/messages/notices-loop.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -17,9 +17,9 @@
</span><span class="cx">         &lt;?php do_action( 'bp_after_notices_pagination' ) ?&gt;
</span><span class="cx">         &lt;?php do_action( 'bp_before_notices' ) ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;table id=&quot;message-threads&quot; class=&quot;zebra messages-notices&quot;&gt;
</del><ins>+        &lt;table id=&quot;message-threads&quot; class=&quot;messages-notices&quot;&gt;
</ins><span class="cx">                 &lt;?php while ( bp_message_threads() ) : bp_message_thread(); ?&gt;
</span><del>-                        &lt;tr id=&quot;notice-&lt;?php bp_message_notice_id() ?&gt;&quot;&gt;
</del><ins>+                        &lt;tr id=&quot;notice-&lt;?php bp_message_notice_id() ?&gt;&quot; class=&quot;&lt;?php bp_message_css_class(); ?&gt;&quot;&gt;
</ins><span class="cx">                                 &lt;td width=&quot;1%&quot;&gt;
</span><span class="cx">                                 &lt;/td&gt;
</span><span class="cx">                                 &lt;td width=&quot;38%&quot;&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssinglemessagessinglephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/messages/single.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/messages/single.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-themes/bp-default/members/single/messages/single.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?&gt;
</span><span class="cx"> 
</span><del>-                        &lt;div class=&quot;message-box&quot;&gt;
</del><ins>+                        &lt;div class=&quot;message-box &lt;?php bp_the_thread_message_alt_class(); ?&gt;&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;div class=&quot;message-metadata&quot;&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssingleprofileprofileloopphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/profile/profile-loop.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/profile/profile-loop.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-themes/bp-default/members/single/profile/profile-loop.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx">                                         &lt;h4&gt;&lt;?php bp_the_profile_group_name() ?&gt;&lt;/h4&gt;
</span><span class="cx">                                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                                &lt;table class=&quot;profile-fields zebra&quot;&gt;
</del><ins>+                                &lt;table class=&quot;profile-fields&quot;&gt;
</ins><span class="cx">                                         &lt;?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;?php if ( bp_field_has_data() ) : ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssingleprofileprofilewpphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/profile/profile-wp.php (4286 => 4287)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/profile/profile-wp.php        2011-04-24 21:30:32 UTC (rev 4286)
+++ trunk/bp-themes/bp-default/members/single/profile/profile-wp.php        2011-04-24 21:34:40 UTC (rev 4287)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx">         &lt;div class=&quot;bp-widget wp-profile&quot;&gt;
</span><span class="cx">                 &lt;h4&gt;&lt;?php bp_is_my_profile() ? _e( 'My Profile' ) : printf( __( &quot;%s's Profile&quot;, 'buddypress' ), bp_get_displayed_user_fullname() ); ?&gt;&lt;/h4&gt;
</span><span class="cx"> 
</span><del>-                &lt;table class=&quot;wp-profile-fields zebra&quot;&gt;
</del><ins>+                &lt;table class=&quot;wp-profile-fields&quot;&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;?php if ( $ud-&gt;display_name ) : ?&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>