Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/03/2010 09:40:51 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Add missing CSS class functions for messages component

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-messages/bp-messages-templatetags.php

    r3145 r3156  
    246246        }
    247247
     248function bp_message_css_class() {
     249        echo bp_get_message_css_class();
     250}
     251
     252        function bp_get_message_css_class() {
     253                global $messages_template;
     254
     255                $class = false;
     256
     257                if ( $messages_template->current_thread % 2 == 1 )
     258                        $class .= 'alt';
     259
     260                return apply_filters( 'bp_get_message_css_class', trim( $class ) );
     261        }
     262
    248263function bp_message_thread_has_unread() {
    249264        global $messages_template;
Note: See TracChangeset for help on using the changeset viewer.