- Timestamp:
- 08/12/2015 11:32:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r9908 r10048 1541 1541 // manually call oEmbed 1542 1542 // this is needed because we're not at the beginning of the loop 1543 bp_messages_embed() 1544 ?> 1545 1546 <div class="message-box new-message <?php bp_the_thread_message_css_class(); ?>"> 1547 <div class="message-metadata"> 1548 <?php 1549 1550 /** 1551 * Fires before the single message header is displayed. 1552 * 1553 * @since BuddyPress (1.1.0) 1554 */ 1555 do_action( 'bp_before_message_meta' ); ?> 1556 <?php echo bp_loggedin_user_avatar( 'type=thumb&width=30&height=30' ); ?> 1557 1558 <strong><a href="<?php echo bp_loggedin_user_domain(); ?>"><?php bp_loggedin_user_fullname(); ?></a> <span class="activity"><?php printf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ); ?></span></strong> 1559 1560 <?php 1561 1562 /** 1563 * Fires after the single message header is displayed. 1564 * 1565 * @since BuddyPress (1.1.0) 1566 */ 1567 do_action( 'bp_after_message_meta' ); ?> 1568 </div> 1569 1570 <?php 1571 1572 /** 1573 * Fires before the message content for a private message. 1574 * 1575 * @since BuddyPress (1.1.0) 1576 */ 1577 do_action( 'bp_before_message_content' ); ?> 1578 1579 <div class="message-content"> 1580 <?php bp_the_thread_message_content(); ?> 1581 </div> 1582 1583 <?php 1584 1585 /** 1586 * Fires after the message content for a private message. 1587 * 1588 * @since BuddyPress (1.1.0) 1589 */ 1590 do_action( 'bp_after_message_content' ); ?> 1591 1592 <div class="clear"></div> 1593 </div> 1594 <?php 1543 bp_messages_embed(); 1544 1545 // add new-message css class 1546 add_filter( 'bp_get_the_thread_message_css_class', create_function( '$retval', ' 1547 $retval[] = "new-message"; 1548 return $retval; 1549 ' ) ); 1550 1551 // output single message template part 1552 bp_get_template_part( 'members/single/messages/message' ); 1553 1595 1554 // clean up the loop 1596 1555 bp_thread_messages();
Note: See TracChangeset
for help on using the changeset viewer.