[buddypress-trac] [BuddyPress] #5238: Missing classes

buddypress-trac noreply at wordpress.org
Tue Nov 12 17:03:05 UTC 2013


#5238: Missing classes
--------------------------+-----------------------------
 Reporter:  sgr33n        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Hi,

 following up on #5169, If you want I could update a list of missing
 classes that could be useful theming BuddyPress.

 On messages/single.php could be useful to have a new class for loggedin
 user messages.


 {{{
                 <?php while ( bp_thread_messages() ) :
 bp_thread_the_message(); ?>

                         <?php

                         // It's tricky, I've to check if the link is the
 same in order to know if the message is mine.
                         $notmine = bp_get_loggedin_user_link() !=
 bp_get_the_thread_message_sender_link() ? ' notmine' : ' mine'; ?>

                         <div class="message-box <?php
 bp_the_thread_message_alt_class(); ?> <?php echo $notmine; ?>">
                                 <div class="message-metadata">
 }}}


 Then on profile fields visibility could be useful to add to the container
 li the visibility level class, on members/single/profile/edit.php:


 {{{
                                         <?php if ( bp_current_user_can(
 'bp_xprofile_change_field_visibility' ) ) : ?>
                                                 <p class="field-
 visibility-settings-toggle <?php bp_the_profile_field_visibility_level();
 ?>" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id()
 ?>">

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5238>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list