<!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->displayed_user->id, 'notification_activity_new_reply', true ) )
</span><span class="cx">                 $reply = 'yes'; ?>
</span><span class="cx">
</span><del>-        <table class="notification-settings zebra" id="activity-notification-settings">
</del><ins>+        <table class="notification-settings" id="activity-notification-settings">
</ins><span class="cx">                 <thead>
</span><span class="cx">                         <tr>
</span><span class="cx">                                 <th class="icon">&nbsp;</th>
</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"> <div class="bp-widget wp-profile">
</span><span class="cx">         <h4><?php _e( 'My Profile' ) ?></h4>
</span><span class="cx">
</span><del>-        <table class="wp-profile-fields zebra">
</del><ins>+        <table class="wp-profile-fields">
</ins><span class="cx">
</span><span class="cx">                 <?php if ( $ud->display_name ) : ?>
</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"> ?>
</span><span class="cx">
</span><del>-        <table class="notification-settings zebra" id="friends-notification-settings">
</del><ins>+        <table class="notification-settings" id="friends-notification-settings">
</ins><span class="cx">                 <thead>
</span><span class="cx">                         <tr>
</span><span class="cx">                                 <th class="icon"></th>
</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"> ?>
</span><span class="cx">
</span><del>-        <table class="notification-settings zebra" id="groups-notification-settings">
</del><ins>+        <table class="notification-settings" id="groups-notification-settings">
</ins><span class="cx">                 <thead>
</span><span class="cx">                         <tr>
</span><span class="cx">                                 <th class="icon"></th>
</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"> ?>
</span><span class="cx">
</span><del>-        <table class="notification-settings zebra" id="messages-notification-settings">
</del><ins>+        <table class="notification-settings" id="messages-notification-settings">
</ins><span class="cx">                 <thead>
</span><span class="cx">                         <tr>
</span><span class="cx">                                 <th class="icon"></th>
</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("div.new-message").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">         <?php do_action( 'bp_before_directory_forums_list' ); ?>
</span><span class="cx">
</span><del>-        <table class="forum zebra">
</del><ins>+        <table class="forum">
</ins><span class="cx">                 <thead>
</span><span class="cx">                         <tr>
</span><span class="cx">                                 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ); ?></th>
</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">         <?php do_action( 'bp_after_member_messages_pagination' ) ?>
</span><span class="cx">         <?php do_action( 'bp_before_member_messages_threads' ) ?>
</span><span class="cx">
</span><del>-        <table id="message-threads" class="zebra messages-notices">
</del><ins>+        <table id="message-threads" class="messages-notices">
</ins><span class="cx">                 <?php while ( bp_message_threads() ) : bp_message_thread(); ?>
</span><span class="cx">
</span><del>-                        <tr id="m-<?php bp_message_thread_id() ?>"<?php if ( bp_message_thread_has_unread() ) : ?> class="unread"<?php else: ?> class="read"<?php endif; ?>>
</del><ins>+                        <tr id="m-<?php bp_message_thread_id() ?>" class="<?php bp_message_css_class(); ?><?php if ( bp_message_thread_has_unread() ) : ?> unread"<?php else: ?> read"<?php endif; ?>>
</ins><span class="cx">                                 <td width="1%" class="thread-count">
</span><span class="cx">                                         <span class="unread-count"><?php bp_message_thread_unread_count() ?></span>
</span><span class="cx">                                 </td>
</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">         <?php do_action( 'bp_after_notices_pagination' ) ?>
</span><span class="cx">         <?php do_action( 'bp_before_notices' ) ?>
</span><span class="cx">
</span><del>-        <table id="message-threads" class="zebra messages-notices">
</del><ins>+        <table id="message-threads" class="messages-notices">
</ins><span class="cx">                 <?php while ( bp_message_threads() ) : bp_message_thread(); ?>
</span><del>-                        <tr id="notice-<?php bp_message_notice_id() ?>">
</del><ins>+                        <tr id="notice-<?php bp_message_notice_id() ?>" class="<?php bp_message_css_class(); ?>">
</ins><span class="cx">                                 <td width="1%">
</span><span class="cx">                                 </td>
</span><span class="cx">                                 <td width="38%">
</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">                 <?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?>
</span><span class="cx">
</span><del>-                        <div class="message-box">
</del><ins>+                        <div class="message-box <?php bp_the_thread_message_alt_class(); ?>">
</ins><span class="cx">
</span><span class="cx">                                 <div class="message-metadata">
</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">                                         <h4><?php bp_the_profile_group_name() ?></h4>
</span><span class="cx">                                 <?php endif; ?>
</span><span class="cx">
</span><del>-                                <table class="profile-fields zebra">
</del><ins>+                                <table class="profile-fields">
</ins><span class="cx">                                         <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
</span><span class="cx">
</span><span class="cx">                                                 <?php if ( bp_field_has_data() ) : ?>
</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">         <div class="bp-widget wp-profile">
</span><span class="cx">                 <h4><?php bp_is_my_profile() ? _e( 'My Profile' ) : printf( __( "%s's Profile", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></h4>
</span><span class="cx">
</span><del>-                <table class="wp-profile-fields zebra">
</del><ins>+                <table class="wp-profile-fields">
</ins><span class="cx">
</span><span class="cx">                         <?php if ( $ud->display_name ) : ?>
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>