Opened 11 years ago
Closed 10 years ago
#5238 closed enhancement (fixed)
Missing classes
Reported by: | sgr33n | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | good-first-bug |
Cc: | mercijavier@… |
Description
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() ?>">
Change History (10)
Note: See
TracTickets for help on using
tickets.
Sure, these sound good to me. There's got to be a better way to do the first one, but this is a good start.